|
||||||||||
| 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. |
ModuleBDDField |
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.util.Vector<net.sf.javabdd.BDD> |
getAllIniRestrictions()
|
java.util.Vector<net.sf.javabdd.BDD> |
getAllTransRestrictions()
|
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 |
idleStep()
Construct a BDD representing the idle transition of 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. |
net.sf.javabdd.BDDVarSet |
modulePrimeVars()
Getter for the primed variable of this module. |
net.sf.javabdd.BDDVarSet |
moduleUnprimeVars()
Getter for the unprimed variable of this module. |
net.sf.javabdd.BDD |
popLastJustice()
Removes the last justice added to this module. |
void |
removeAllIniRestrictions()
|
void |
removeAllTransRestrictions()
|
void |
removeIniRestriction(int id)
|
void |
removeTransRestriction(int id)
|
int |
restrictIni(net.sf.javabdd.BDD temp_ini)
|
int |
restrictTrans(net.sf.javabdd.BDD temp_trans)
|
void |
setAllIniRestrictions(java.util.Vector<net.sf.javabdd.BDD> toSet)
|
void |
setAllTransRestrictions(java.util.Vector<net.sf.javabdd.BDD> toSet)
|
void |
setInitial(net.sf.javabdd.BDD to_add)
Set the initial condition with the given condition. |
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.ModuleWithWeakFairness |
|---|
feasible, feasible2 |
| Methods inherited from class edu.wis.jtlv.env.module.Module |
|---|
allPred, allSucc, controlStates, elimSuccChains, hasSuccessorsTo, moduleVars, pred, reachable, shortestPath, succ, yieldStates |
| 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 ModuleBDDField addVar(java.lang.String new_var)
throws ModuleException,
ModuleVariableException
ModuleAdd a variable to the module.
addVar in class Modulenew_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
ModuleConjunct the initial condition with the given condition.
addInitial in class Moduleto_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(),
Module.setInitial(BDD)public int restrictIni(net.sf.javabdd.BDD temp_ini)
restrictIni in class Modulepublic void removeIniRestriction(int id)
removeIniRestriction in class Modulepublic void removeAllIniRestrictions()
removeAllIniRestrictions in class Modulepublic java.util.Vector<net.sf.javabdd.BDD> getAllIniRestrictions()
getAllIniRestrictions in class Modulepublic void setAllIniRestrictions(java.util.Vector<net.sf.javabdd.BDD> toSet)
setAllIniRestrictions in class Module
public void setInitial(net.sf.javabdd.BDD to_add)
throws ModuleException
ModuleSet the initial condition with the given condition.
setInitial in class Moduleto_add - The condition to set to the module.
ModuleException - If there was a problem with setting the condition, e.g. a
there where primed variables in the condition.Module.initial(),
Module.addInitial(BDD)
public void conjunctTrans(net.sf.javabdd.BDD to_add)
throws ModuleException
ModuleConjunct the transition relation with the given condition.
conjunctTrans in class Moduleto_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
ModuleDisjunct the transition relation with the given condition.
disjunctTrans in class Moduleto_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 int restrictTrans(net.sf.javabdd.BDD temp_trans)
restrictTrans in class Modulepublic void removeTransRestriction(int id)
removeTransRestriction in class Modulepublic void removeAllTransRestrictions()
removeAllTransRestrictions in class Modulepublic java.util.Vector<net.sf.javabdd.BDD> getAllTransRestrictions()
getAllTransRestrictions in class Modulepublic void setAllTransRestrictions(java.util.Vector<net.sf.javabdd.BDD> toSet)
setAllTransRestrictions in class Module
public void addJustice(net.sf.javabdd.BDD to_add)
throws ModuleException
ModuleWithWeakFairnessAdd weak (justice) winning condition to the module.
addJustice in class ModuleWithWeakFairnessto_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 popLastJustice()
ModuleWithWeakFairnessRemoves the last justice added to this module.
popLastJustice in class ModuleWithWeakFairnesspublic net.sf.javabdd.BDD initial()
ModuleGetter for the initial states in the module.
initial in class ModuleModule.addInitial(BDD),
Module.setInitial(BDD)public net.sf.javabdd.BDD trans()
ModuleGetter for the transition relation of the module.
trans in class ModuleModule.disjunctTrans(BDD),
Module.conjunctTrans(BDD),
Module.idleStep()public net.sf.javabdd.BDD idleStep()
ModuleConstruct a BDD representing the idle transition of this module. If the process has a synchronously composed inner module (possible only in SMVModule), then it will also construct its idle step.
idleStep in class ModuleModule.disjunctTrans(BDD),
Module.conjunctTrans(BDD),
Module.trans()public int justiceNum()
ModuleWithWeakFairnessGetter for the number of justice condition defined in the module.
justiceNum in class ModuleWithWeakFairnessModuleWithWeakFairness.addJustice(BDD),
ModuleWithWeakFairness.justiceAt(int)public net.sf.javabdd.BDD justiceAt(int i)
ModuleWithWeakFairnessGetter for a justice condition defined at the given index in the module.
justiceAt in class ModuleWithWeakFairnessi - The index of the justice condition to return.
ModuleWithWeakFairness.addJustice(BDD),
ModuleWithWeakFairness.justiceNum()public ModuleBDDField[] getAllFields()
ModuleGetter for all fields declared in this module.
getAllFields in class Modulepublic java.lang.String toString()
ModulePrepare a string describing the module, its variables, define, statement, etc.
toString in class Modulepublic java.lang.String getFullInstName()
ModuleGetter for the instance string.
getFullInstName in class Modulepublic java.lang.String getName()
ModuleGetter for the declared field name which holds this instance.
getName in class Modulepublic java.lang.String getPath()
ModuleThe path leading to this module.
getPath in class Modulepublic net.sf.javabdd.BDDVarSet modulePrimeVars()
ModuleGetter for the primed variable of this module.
modulePrimeVars in class Modulepublic net.sf.javabdd.BDDVarSet moduleUnprimeVars()
ModuleGetter for the unprimed variable of this module.
moduleUnprimeVars in class Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||