Package eu.simuline.relana.expressions
Class Formula.Var
- java.lang.Object
-
- eu.simuline.relana.expressions.Formula
-
- eu.simuline.relana.expressions.Formula.Var
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.simuline.relana.expressions.Formula
Formula.Comp, Formula.Const, Formula.Var
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Formulaadd(SInstance serv, Deficiency def)Set<Deficiency>getConst()Returns the constant represented by this formula, if any.Set<Deficiency>getMax()Set<Deficiency>getMin()Set<SInstance>getVars()Formularemove(SInstance serv, Deficiency def)Formulasubstitute(SInstance serv, Formula form)StringtoString()-
Methods inherited from class eu.simuline.relana.expressions.Formula
equals, getFormula, hashCode, main
-
-
-
-
Method Detail
-
remove
public Formula remove(SInstance serv, Deficiency def)
-
add
public Formula add(SInstance serv, Deficiency def)
-
substitute
public Formula substitute(SInstance serv, Formula form)
- Specified by:
substitutein classFormula
-
getConst
public Set<Deficiency> getConst()
Description copied from class:FormulaReturns the constant represented by this formula, if any. If this is not a constant formula, i.e. an instance ofFormula.Const, thennullis returned.- Specified by:
getConstin classFormula- Returns:
-
The constant represented by this formula
if this is an instance of
Formula.Const. -
nullotherwise.
-
The constant represented by this formula
if this is an instance of
-
getMax
public Set<Deficiency> getMax()
-
getMin
public Set<Deficiency> getMin()
-
-