|
||||||||||
| 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(BDD to_add)
Conjunct the initial condition with the given condition. |
void |
addJustice(BDD to_add)
Add weak (justice) winning condition to the module. |
ModuleBDDField |
addVar(java.lang.String new_var)
Add a variable to the module. |
BDD[] |
allJustice()
Getter for all the justice requirements of the module. |
void |
asyncComposition(Module inner)
This functionality is not implemented for FDSModule yet. |
void |
conjunctTrans(BDD to_add)
Conjunct the transition relation with the given condition. |
void |
decompose(Module inner)
This functionality is not implemented for FDSModule yet. |
void |
disjunctTrans(BDD to_add)
Disjunct the transition relation with the given condition. |
ModuleBDDField[] |
getAllFields()
Getter for all fields declared in this module. |
java.util.Vector<BDD> |
getAllIniRestrictions()
Get all restrictions on the initial states. |
java.util.Vector<BDD> |
getAllTransRestrictions()
Get all restrictions on the transitions. |
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. |
BDD |
idleStep()
Construct a BDD representing the idle transition of this module. |
BDD |
initial()
Getter for the initial states in the module. |
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. |
BDDVarSet |
modulePrimeVars()
Getter for the primed variable of this module. |
BDDVarSet |
moduleUnprimeVars()
Getter for the unprimed variable of this module. |
BDD |
popLastJustice()
Removes the last justice added to this module. |
void |
removeAllIniRestrictions()
Remove all restrictions from the initial states. |
void |
removeAllTransRestrictions()
Remove all restrictions from the transitions. |
void |
removeIniRestriction(int id)
Remove a restriction from the initial states. |
void |
removeTransRestriction(int id)
Remove a restriction from the transitions. |
int |
restrictIni(BDD temp_ini)
Add a restriction to the initial states. |
int |
restrictTrans(BDD temp_trans)
Add a restriction to the transitions. |
void |
setAllIniRestrictions(java.util.Vector<BDD> toSet)
Set all restrictions for the initial states. |
void |
setAllTransRestrictions(java.util.Vector<BDD> toSet)
Set all restrictions for the transitions. |
void |
setInitial(BDD to_add)
Set the initial condition with the given condition. |
void |
syncComposition(Module inner)
This functionality is not implemented for FDSModule yet. |
java.lang.String |
toString()
Prepare a string describing the module, its variables, define, statement, etc. |
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)
The main constructor for this kind of module, which creates an empty module.
player_name - The player name.
public FDSModule(java.lang.String player_name,
java.lang.String[] var_names)
A constructor which receive an array of variables to be declared with initiation.
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(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(BDD temp_ini)
ModuleAdd a restriction to the initial states.
restrictIni in class Moduletemp_ini - The BDD to restrict with.
public void removeIniRestriction(int id)
ModuleRemove a restriction from the initial states.
removeIniRestriction in class Moduleid - The index of restriction to remove.public void removeAllIniRestrictions()
ModuleRemove all restrictions from the initial states.
removeAllIniRestrictions in class Modulepublic java.util.Vector<BDD> getAllIniRestrictions()
ModuleGet all restrictions on the initial states.
getAllIniRestrictions in class Modulepublic void setAllIniRestrictions(java.util.Vector<BDD> toSet)
ModuleSet all restrictions for the initial states.
setAllIniRestrictions in class ModuletoSet - A vector of restrictions to set.
public void setInitial(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(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(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(BDD temp_trans)
ModuleAdd a restriction to the transitions.
restrictTrans in class Moduletemp_trans - The BDD to restrict with.
public void removeTransRestriction(int id)
ModuleRemove a restriction from the transitions.
removeTransRestriction in class Moduleid - The index of restriction to remove.public void removeAllTransRestrictions()
ModuleRemove all restrictions from the transitions.
removeAllTransRestrictions in class Modulepublic java.util.Vector<BDD> getAllTransRestrictions()
ModuleGet all restrictions on the transitions.
getAllTransRestrictions in class Modulepublic void setAllTransRestrictions(java.util.Vector<BDD> toSet)
ModuleSet all restrictions for the transitions.
setAllTransRestrictions in class ModuletoSet - A vector of restrictions to set.
public void addJustice(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),
ModuleWithWeakFairness.popLastJustice(),
ModuleWithWeakFairness.allJustice()public BDD popLastJustice()
ModuleWithWeakFairnessRemoves the last justice added to this module.
popLastJustice in class ModuleWithWeakFairnessModuleWithWeakFairness.addJustice(BDD),
ModuleWithWeakFairness.justiceNum(),
ModuleWithWeakFairness.justiceAt(int),
ModuleWithWeakFairness.allJustice()public BDD initial()
ModuleGetter for the initial states in the module.
initial in class ModuleModule.addInitial(BDD),
Module.setInitial(BDD)public BDD trans()
ModuleGetter for the transition relation of the module.
trans in class ModuleModule.disjunctTrans(BDD),
Module.conjunctTrans(BDD),
Module.idleStep()public BDD idleStep()
ModuleConstruct a BDD representing the idle transition of this module. If the process has a synchronously composed inner module, 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),
ModuleWithWeakFairness.popLastJustice(),
ModuleWithWeakFairness.allJustice()public 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(),
ModuleWithWeakFairness.popLastJustice(),
ModuleWithWeakFairness.allJustice()public BDD[] allJustice()
ModuleWithWeakFairnessGetter for all the justice requirements of the module.
allJustice in class ModuleWithWeakFairnessModuleWithWeakFairness.addJustice(BDD),
ModuleWithWeakFairness.justiceNum(),
ModuleWithWeakFairness.justiceAt(int),
ModuleWithWeakFairness.popLastJustice()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 BDDVarSet modulePrimeVars()
ModuleGetter for the primed variable of this module.
modulePrimeVars in class Modulepublic BDDVarSet moduleUnprimeVars()
ModuleGetter for the unprimed variable of this module.
moduleUnprimeVars in class Modulepublic void asyncComposition(Module inner)
This functionality is not implemented for FDSModule yet.
asyncComposition in class Moduleinner - The module to compose this instance with.
java.lang.RuntimeException - Always.Module.asyncComposition(edu.wis.jtlv.env.module.Module)public void decompose(Module inner)
This functionality is not implemented for FDSModule yet.
decompose in class Moduleinner - The module to remove from this instance.
java.lang.RuntimeException - Always.Module.decompose(edu.wis.jtlv.env.module.Module)public void syncComposition(Module inner)
This functionality is not implemented for FDSModule yet.
syncComposition in class Moduleinner - The module to compose this instance with.
java.lang.RuntimeException - Always.Module.syncComposition(edu.wis.jtlv.env.module.Module)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||