|
||||||||||
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.Variable
public class Variable
Implements a variable in a formula. It represents the name and the information whether it is a primed or unprimed variable.
Field Summary | |
---|---|
private java.lang.String |
name
The identifier (name) of this variable. |
private boolean |
primed
Tells whether the variable is primed or not. |
Fields inherited from class de.upb.swt.mcie.formulas.Formula |
---|
step, temporal |
Constructor Summary | |
---|---|
Variable(java.lang.String name,
boolean primed)
Constructs a variable. |
Method Summary | |
---|---|
void |
addChangedVariables(ChangeSet changeset)
Adds all variables that occur primed within the formula to the given change set. |
boolean |
isStateFormula()
Checks whether the formula is a state formula. |
boolean |
isStepFormula()
Checks whether the formula is a step formula. |
boolean |
isTemporalFormula()
Checks whether the formula is a temporal formula. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private boolean primed
Constructor Detail |
---|
public Variable(java.lang.String name, boolean primed)
name
- the identifier (name) of the variableprimed
- indicates whether the variable is primed or notMethod Detail |
---|
public boolean isTemporalFormula()
isTemporalFormula
in class Formula
public boolean isStepFormula()
isStepFormula
in class Formula
public boolean isStateFormula()
isStateFormula
in class Formula
public ROBDD toROBDD(Context context)
createVariable
of class ROBDDs
.
toROBDD
in class Formula
context
- the context, in which the ROBDD should be generated
public ROBDD toROBDD(Model model)
createVariable
of class ROBDDs
.
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 |