Package transsys :: Class ExpressionNodeIdentifier
[hide private]
[frames] | no frames]

Class ExpressionNodeIdentifier

source code

    object --+    
             |    
ExpressionNode --+
                 |
                ExpressionNodeIdentifier

Node representing an identifier, i.e. a factor, possibly qualified by a transsys label.

Qualification by a transsys label occurs within L-transsys contexts.

Instance Methods [hide private]
 
__init__(self, factor, transsys_label=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
factor_name(self) source code
 
resolve(self, tp) source code
 
unresolved_copy(self)
Return an unresolved copy of this node.
source code
 
getIdentifierNodes(self)
Returns itself (obviously).
source code
 
evaluate(self, transsys_instance)
transsys_instance may either be a single instance or a list of instances (in a L-transsys context)
source code

Inherited from ExpressionNode: getValueNodes

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Instance Variables [hide private]
Either a Factor instance (resolved case) or a string (unresolved case). factor
The factor identified by this node
string transsys_label
the transsys label, None if no label
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, factor, transsys_label=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

resolve(self, tp)

source code 
Overrides: ExpressionNode.resolve

unresolved_copy(self)

source code 

Return an unresolved copy of this node.

Overrides: ExpressionNode.unresolved_copy
(inherited documentation)

getIdentifierNodes(self)

source code 

Returns itself (obviously). Notice, however, that an ExpressionNodeIdentifier might also have a transsys_label. The current mechanism is ok for use with self-contained transsys programs, but might need further thought for use with lsys programs.

Overrides: ExpressionNode.getIdentifierNodes