Package empro :: Module empro :: Module core :: Class Expression
[frames] | no frames]

Class Expression

Updatable --+    
            |    
   Selectable --+
                |
               Expression
Known Subclasses:

Interface to an expression. Expressions are used as a generalized concept of a basic data unit. They can contain references to parameters, basic arithmetic and units.

Class Hierarchy for Expression
Class Hierarchy for Expression

Expressions are often expected as argument in constructors or are the type of a member. Whenever possible Python will try to convert the type given into an Expression. By default string, float, int and complex are converted into Expression objects when required. Depending on the context coercion may occur but will always be performed in a safe manner.

Instance Methods
 
__abs__(x)
abs(x)
 
__add__(x, y)
x+y
 
__div__(x, y)
x/y
 
__float__(x)
float(x)
 
__iadd__(x, y)
x+=y
 
__idiv__(x, y)
x/=y
 
__imul__(x, y)
x*=y
 
__int__(x)
int(x)
 
__isub__(x, y)
x-=y
 
__itruediv__(x, y)
x/=y
 
__mul__(x, y)
x*y
 
__neg__(x)
-x
 
__pos__(x)
+x
 
__pow__(x, y, z=...)
pow(x, y[, z])
 
__radd__(x, y)
y+x
 
__rdiv__(x, y)
y/x
 
__rmul__(x, y)
y*x
 
__rpow__(y, x, z=...)
pow(x, y[, z])
 
__rsub__(x, y)
y-x
 
__rtruediv__(x, y)
y/x
 
__sub__(x, y)
x-y
 
__truediv__(x, y)
x/y
variant
evaluate()
Returns the current value of the complex expression.
string
formula()
Returns the current formula of the complex expression.
 
isParametric(...)
No documentation available.
 
isValid(...)
No documentation available.
 
setFormula(...)
No documentation available.
 
setGlobalParameterList(...)
No documentation available.
 
toDouble(...)
 
toInt(...)
 
unitClass(...)
No documentation available.

Inherited from Selectable: clone, isSelected

Inherited from Updatable: __enter__, __exit__, hash, reasonWhyInvalid

Properties

Inherited from Selectable: metaData, name, notes

Method Details

isValid(...)

 

No documentation available.

Overrides: Updatable.isValid