Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes | Static Package Attributes
rene.zirkel.expression.SimulationExpression Class Reference
Inheritance diagram for rene.zirkel.expression.SimulationExpression:
Inheritance graph
[legend]
Collaboration diagram for rene.zirkel.expression.SimulationExpression:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimulationExpression (ConstructionObject so, ConstructionObject c, BasicExpression e, ConstructionObject f)
double getValue () throws ConstructionException
void translate ()
void reset ()
String toString ()
boolean isNumber ()
boolean isLogical ()

Static Public Member Functions

static BasicExpression scan (ExpressionText t) throws ConstructionException
static BasicExpression scan (ExpressionText t, int sign) throws ConstructionException
static BasicExpression scanBracket (ExpressionText t) throws ConstructionException

Package Attributes

ConstructionObject SO
ConstructionObject Container
ConstructionObject F
BasicExpression E
Construction C

Static Package Attributes

static final int MINUS = -1
static final int PLUS = 1

Detailed Description

Definition at line 478 of file Expression.java.


Constructor & Destructor Documentation

Definition at line 484 of file Expression.java.

       {      SO=so; Container=c; E=e; F=f;
              C=c.getConstruction();
       }

Here is the call graph for this function:


Member Function Documentation

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 490 of file Expression.java.

       {      if (C.BlockSimulation)
                     throw new ConstructionException(
                            Zirkel.name("exception.simmulation.block")); 
              try
              {      double aa=E.getValue();
                     C.BlockSimulation=true;
                     ((SimulationObject)SO).setSimulationValue(aa);
                     F.getConstruction().validate(F,SO);
                     double res=F.getValue();
                     ((SimulationObject)SO).resetSimulationValue();
                     F.getConstruction().validate(F,SO);
                     C.BlockSimulation=false;
                     return res;
              }
              catch (Exception e)
              {      C.BlockSimulation=false;
                     throw new ConstructionException("");
              }
       }

Here is the call graph for this function:

Reimplemented in rene.zirkel.expression.OrExpression, rene.zirkel.expression.AndExpression, rene.zirkel.expression.NotExpression, and rene.zirkel.expression.CompareExpression.

Definition at line 143 of file Expression.java.

       {      return false;
       }

Here is the caller graph for this function:

Reimplemented in rene.zirkel.expression.MinusExpression, rene.zirkel.expression.ElementaryExpression, rene.zirkel.expression.BracketExpression, and rene.zirkel.expression.DoubleExpression.

Definition at line 135 of file Expression.java.

       {      return false;
       }

Here is the caller graph for this function:

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 518 of file Expression.java.

       {      E.reset();
       }

Here is the call graph for this function:

static BasicExpression rene.zirkel.expression.BasicExpression.scan ( ExpressionText  t,
int  sign 
) throws ConstructionException [inline, static, inherited]

Definition at line 107 of file Expression.java.

       {      if (sign==MINUS)
              {      if (t.next()=='(') return new MinusExpression(scanBracket(t));
                     return new MinusExpression(ElementaryExpression.scan(t));
              }
              if (t.next()=='(') return scanBracket(t);
              return ElementaryExpression.scan(t);
       }

Here is the call graph for this function:

Definition at line 118 of file Expression.java.

       {      t.advance();
              BasicExpression E=TopExpression.scan(t);
              if (t.next()==')') t.advance();
              else
                     throw new ConstructionException(Zirkel.name("exception.bracket"));
              return E;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 522 of file Expression.java.

       {      return "simulate("+SO.getName()+","+E.toString()+","+F.getName()+")";
       }

Here is the call graph for this function:

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 511 of file Expression.java.

Here is the call graph for this function:


Member Data Documentation

Definition at line 482 of file Expression.java.

Definition at line 480 of file Expression.java.

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 481 of file Expression.java.

Definition at line 480 of file Expression.java.

final int rene.zirkel.expression.BasicExpression.MINUS = -1 [static, package, inherited]

Definition at line 91 of file Expression.java.

final int rene.zirkel.expression.BasicExpression.PLUS = 1 [static, package, inherited]

Definition at line 91 of file Expression.java.

Definition at line 479 of file Expression.java.


The documentation for this class was generated from the following file: