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

Class ExpressionNodeValue

source code

    object --+    
             |    
ExpressionNode --+
                 |
                ExpressionNodeValue

Expression node holding a constant floating point value.

Instance Methods [hide private]
 
__init__(self, v)
Constructor.
source code
 
__str__(self)
str(x)
source code
 
evaluate(self, transsys_instance_list) source code
list
getValueNodes(self)
Return all constant value nodes in expression subtree.
source code
 
clip(self, minValue=None, maxValue=None)
Clip value to [minValue, maxValue].
source code

Inherited from ExpressionNode: getIdentifierNodes, resolve, unresolved_copy

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

Instance Variables [hide private]
float value
the value
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, v)
(Constructor)

source code 

Constructor.

Parameters:
  • v (float) - the constant value
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

getValueNodes(self)

source code 

Return all constant value nodes in expression subtree. This is the default implementation which returns an empty list.

Returns: list
a list of value nodes in the subtree rooted at this node
Overrides: ExpressionNode.getValueNodes
(inherited documentation)

clip(self, minValue=None, maxValue=None)

source code 

Clip value to [minValue, maxValue].

Both parameters may be None to specify an open-ended interval.