DSL_generalEquation

<< Click to Display Table of Contents >>

Navigation:  Reference Manual >

DSL_generalEquation

Header file: generalequation.h

DSL_generalEquation objects are used to store the parsed representation of node equations. Equation nodes manage their DSL_generalEquation members. This reference only lists const methods.


void Write(std::string &s) const;

Writes the equation to its output string parameter.


bool IsConstant() const;

Returns true if the equation is a constant. For example, x=3.14 and x=Sin(3+0.13) are constants. x=a+1 is not constant, even if node a is deterministic.


bool IsDeterministic() const;

Returns true if the equation is deterministic (does not contain random generator functions). x=Normal(0,1) is not deterministic. x=a+1 is deterministic, even if node a is not deterministic.