Package eu.simuline.relana.expressions
Class Formula.Comp
- java.lang.Object
-
- eu.simuline.relana.expressions.Formula
-
- eu.simuline.relana.expressions.Formula.Comp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.simuline.relana.expressions.Formula
Formula.Comp, Formula.Const, Formula.Var
-
-
Field Summary
Fields Modifier and Type Field Description private Set<Formula>
args
private Set<Deficiency>
max
private Set<Deficiency>
min
private Operation.Eval
oper
-
Fields inherited from class eu.simuline.relana.expressions.Formula
EMPTY_EXPRESSION
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Comp(Operation.Eval oper, Set<Formula> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Formula
add(SInstance serv, Deficiency def)
private static Formula.Comp
create(Operation.Eval oper, Set<Formula> args)
Set<Deficiency>
getConst()
Returns the constant represented by this formula, if any.Set<Deficiency>
getMax()
Set<Deficiency>
getMin()
Set<SInstance>
getVars()
Formula
remove(SInstance serv, Deficiency def)
Formula
substitute(SInstance serv, Formula form)
String
toString()
-
Methods inherited from class eu.simuline.relana.expressions.Formula
equals, getFormula, hashCode, main
-
-
-
-
Field Detail
-
min
private Set<Deficiency> min
-
max
private Set<Deficiency> max
-
oper
private final Operation.Eval oper
-
-
Constructor Detail
-
Comp
private Comp(Operation.Eval oper, Set<Formula> args)
-
-
Method Detail
-
create
private static Formula.Comp create(Operation.Eval oper, Set<Formula> args)
-
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:
substitute
in classFormula
-
getConst
public Set<Deficiency> getConst()
Description copied from class:Formula
Returns the constant represented by this formula, if any. If this is not a constant formula, i.e. an instance ofFormula.Const
, thennull
is returned.- Specified by:
getConst
in classFormula
- Returns:
-
The constant represented by this formula
if this is an instance of
Formula.Const
. -
null
otherwise.
-
The constant represented by this formula
if this is an instance of
-
getMax
public Set<Deficiency> getMax()
-
getMin
public Set<Deficiency> getMin()
-
-