|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wis.jtlv.env.module.Module
edu.wis.jtlv.env.module.ModuleWithWeakFairness
edu.wis.jtlv.env.module.FDSModule
public class FDSModule
An object which represent an FDS module.
Env.loadModule(String)
Constructor Summary | |
---|---|
FDSModule(java.lang.String player_name)
The main constructor for this kind of module, which creates an empty module. |
|
FDSModule(java.lang.String player_name,
java.lang.String[] var_names)
A constructor which receive an array of variables to be declared with initiation. |
Method Summary | |
---|---|
void |
addInitial(net.sf.javabdd.BDD to_add)
Conjunct the initial condition with the given condition. |
void |
addJustice(net.sf.javabdd.BDD to_add)
Add weak (justice) winning condition to the module. |
void |
addVar(java.lang.String new_var)
Add a variable to the module. |
void |
conjunctTrans(net.sf.javabdd.BDD to_add)
Conjunct the transition relation with the given condition. |
void |
disjunctTrans(net.sf.javabdd.BDD to_add)
Disjunct the transition relation with the given condition. |
ModuleBDDField[] |
getAllFields()
Getter for all fields declared in this module. |
java.lang.String |
getFullInstName()
Getter for the instance string. |
java.lang.String |
getName()
Getter for the declared field name which holds this instance. |
java.lang.String |
getPath()
The path leading to this module. |
net.sf.javabdd.BDD |
initial()
Getter for the initial states in the module. |
net.sf.javabdd.BDD |
justiceAt(int i)
Getter for a justice condition defined at the given index in the module. |
int |
justiceNum()
Getter for the number of justice condition defined in the module. |
java.lang.String |
toString()
Prepare a string describing the module, its variables, define, statement, etc. |
net.sf.javabdd.BDD |
trans()
Getter for the transition relation of the module. |
Methods inherited from class edu.wis.jtlv.env.module.Module |
---|
allPred, allSucc, pred, prime, primeVars, succ, unprime, unprimeVars |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FDSModule(java.lang.String player_name)
player_name
- The player name.public FDSModule(java.lang.String player_name, java.lang.String[] var_names)
player_name
- The player name.var_names
- An array of variables.
ModuleException
- If there is a duplicate variable name.FDSModule(String)
Method Detail |
---|
public void addVar(java.lang.String new_var) throws ModuleException, ModuleVariableException
Module
Add a variable to the module.
addVar
in class Module
new_var
- The name of the new variable to add.
ModuleException
- If there was a problem with adding the variable, e.g. a
variable with this name already exists.
ModuleVariableException
public void addInitial(net.sf.javabdd.BDD to_add) throws ModuleException
Module
Conjunct the initial condition with the given condition.
addInitial
in class Module
to_add
- The condition to add to the module.
ModuleException
- If there was a problem with adding the condition, e.g. a
there where primed variables in the condition.Module.initial()
public void conjunctTrans(net.sf.javabdd.BDD to_add) throws ModuleException
Module
Conjunct the transition relation with the given condition.
conjunctTrans
in class Module
to_add
- The transition to conjunct with the module's transitions.
ModuleException
- If there was a problem with adding relation.Module.trans()
,
Module.disjunctTrans(BDD)
public void disjunctTrans(net.sf.javabdd.BDD to_add) throws ModuleException
Module
Disjunct the transition relation with the given condition.
disjunctTrans
in class Module
to_add
- The transition disjunct with to the module's transitions.
ModuleException
- If there was a problem with adding relation.Module.trans()
,
Module.conjunctTrans(BDD)
public void addJustice(net.sf.javabdd.BDD to_add) throws ModuleException
ModuleWithWeakFairness
Add weak (justice) winning condition to the module.
addJustice
in class ModuleWithWeakFairness
to_add
- The winning condition to add to the module.
ModuleException
- If there was a problem with adding the condition.ModuleWithWeakFairness.justiceNum()
,
ModuleWithWeakFairness.justiceAt(int)
public net.sf.javabdd.BDD initial()
Module
Getter for the initial states in the module.
initial
in class Module
Module.addInitial(BDD)
public net.sf.javabdd.BDD trans()
Module
Getter for the transition relation of the module.
trans
in class Module
Module.disjunctTrans(BDD)
,
Module.conjunctTrans(BDD)
public int justiceNum()
ModuleWithWeakFairness
Getter for the number of justice condition defined in the module.
justiceNum
in class ModuleWithWeakFairness
ModuleWithWeakFairness.addJustice(BDD)
,
ModuleWithWeakFairness.justiceAt(int)
public net.sf.javabdd.BDD justiceAt(int i)
ModuleWithWeakFairness
Getter for a justice condition defined at the given index in the module.
justiceAt
in class ModuleWithWeakFairness
i
- The index of the justice condition to return.
ModuleWithWeakFairness.addJustice(BDD)
,
ModuleWithWeakFairness.justiceNum()
public ModuleBDDField[] getAllFields()
Module
Getter for all fields declared in this module.
getAllFields
in class Module
public java.lang.String toString()
Module
Prepare a string describing the module, its variables, define, statement, etc.
toString
in class Module
public java.lang.String getFullInstName()
Module
Getter for the instance string.
getFullInstName
in class Module
public java.lang.String getName()
Module
Getter for the declared field name which holds this instance.
getName
in class Module
public java.lang.String getPath()
Module
The path leading to this module.
getPath
in class Module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |