class Expression Expression is the ancestor of all expression classes
Expression is the ancestor of all expression classes. Expression classes are used to build expressions for discrete chance node tables and utility tables (see also class Model).
Example: The following code Expression *result=new IfExpression(new BooleanExpression(true), new NumberExpression(1), new DistributionDistribution(new NumberExpression(1), new NumberExpression(2))); can be written like this: Expression *result=NetworkModel::stringToExpression("if(true, 1, Distribution(1,2))", domain);
virtual bool isConstantExpression()
virtual bool isNodeExpression()
static Expression* stringToExpression(const std::string& str, Domain dom) throw( ExceptionHugin )
dom - The domain in which the Expression is generated
static Expression* stringToExpression(const std::string& str, NetworkModel* dom) throw( ExceptionHugin )
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de