|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.swt.mcie.formulas.Formula
de.upb.swt.mcie.formulas.Constant
public class Constant
Implements a constants, which can be true or false. This is one of the leaf nodes of a formula. Its value is either 0 or 1. Currently, it is possible to instantiate a constant with other values; but it is forbidden anyway.
TerminalNode
Field Summary | |
---|---|
private int |
value
The value of the constant. |
Fields inherited from class de.upb.swt.mcie.formulas.Formula |
---|
step, temporal |
Constructor Summary | |
---|---|
Constant(int value)
Constructs a constant with the provided value. |
Method Summary | |
---|---|
void |
addChangedVariables(ChangeSet changeset)
Adds all variables that occur primed within the formula to the given change set. |
ROBDD |
toROBDD(Context context)
Returns the ROBDD that represents the set of all states in which this formula is valid. |
ROBDD |
toROBDD(Model model)
Returns the ROBDD that represents the set of all states in which this formula is valid. |
java.lang.String |
toString()
|
Methods inherited from class de.upb.swt.mcie.formulas.Formula |
---|
isStateFormula, isStepFormula, isTemporalFormula |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int value
Constructor Detail |
---|
public Constant(int value)
value
- the value of the constant; it should be 0 or 1Method Detail |
---|
public ROBDD toROBDD(Context context)
toROBDD
in class Formula
context
- the context
public ROBDD toROBDD(Model model)
toROBDD
in class Formula
model
- the model (only its context is relevant)
public void addChangedVariables(ChangeSet changeset)
addChangedVariables
in class Formula
changeset
- the changesetpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |