|
||||||||||
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
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(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()
,
Module.setInitial(BDD)
public int restrictIni(BDD temp_ini)
Module
Add a restriction to the initial states.
restrictIni
in class Module
temp_ini
- The BDD to restrict with.
public void removeIniRestriction(int id)
Module
Remove a restriction from the initial states.
removeIniRestriction
in class Module
id
- The index of restriction to remove.public void removeAllIniRestrictions()
Module
Remove all restrictions from the initial states.
removeAllIniRestrictions
in class Module
public java.util.Vector<BDD> getAllIniRestrictions()
Module
Get all restrictions on the initial states.
getAllIniRestrictions
in class Module
public void setAllIniRestrictions(java.util.Vector<BDD> toSet)
Module
Set all restrictions for the initial states.
setAllIniRestrictions
in class Module
toSet
- A vector of restrictions to set.public void setInitial(BDD to_add) throws ModuleException
Module
Set the initial condition with the given condition.
setInitial
in class Module
to_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
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(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 int restrictTrans(BDD temp_trans)
Module
Add a restriction to the transitions.
restrictTrans
in class Module
temp_trans
- The BDD to restrict with.
public void removeTransRestriction(int id)
Module
Remove a restriction from the transitions.
removeTransRestriction
in class Module
id
- The index of restriction to remove.public void removeAllTransRestrictions()
Module
Remove all restrictions from the transitions.
removeAllTransRestrictions
in class Module
public java.util.Vector<BDD> getAllTransRestrictions()
Module
Get all restrictions on the transitions.
getAllTransRestrictions
in class Module
public void setAllTransRestrictions(java.util.Vector<BDD> toSet)
Module
Set all restrictions for the transitions.
setAllTransRestrictions
in class Module
toSet
- A vector of restrictions to set.public void addJustice(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)
,
ModuleWithWeakFairness.popLastJustice()
,
ModuleWithWeakFairness.allJustice()
public BDD popLastJustice()
ModuleWithWeakFairness
Removes the last justice added to this module.
popLastJustice
in class ModuleWithWeakFairness
ModuleWithWeakFairness.addJustice(BDD)
,
ModuleWithWeakFairness.justiceNum()
,
ModuleWithWeakFairness.justiceAt(int)
,
ModuleWithWeakFairness.allJustice()
public BDD initial()
Module
Getter for the initial states in the module.
initial
in class Module
Module.addInitial(BDD)
,
Module.setInitial(BDD)
public BDD trans()
Module
Getter for the transition relation of the module.
trans
in class Module
Module.disjunctTrans(BDD)
,
Module.conjunctTrans(BDD)
,
Module.idleStep()
public BDD idleStep()
Module
Construct 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 Module
Module.disjunctTrans(BDD)
,
Module.conjunctTrans(BDD)
,
Module.trans()
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)
,
ModuleWithWeakFairness.popLastJustice()
,
ModuleWithWeakFairness.allJustice()
public 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()
,
ModuleWithWeakFairness.popLastJustice()
,
ModuleWithWeakFairness.allJustice()
public BDD[] allJustice()
ModuleWithWeakFairness
Getter for all the justice requirements of the module.
allJustice
in class ModuleWithWeakFairness
ModuleWithWeakFairness.addJustice(BDD)
,
ModuleWithWeakFairness.justiceNum()
,
ModuleWithWeakFairness.justiceAt(int)
,
ModuleWithWeakFairness.popLastJustice()
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
public BDDVarSet modulePrimeVars()
Module
Getter for the primed variable of this module.
modulePrimeVars
in class Module
public BDDVarSet moduleUnprimeVars()
Module
Getter for the unprimed variable of this module.
moduleUnprimeVars
in class Module
public void asyncComposition(Module inner)
This functionality is not implemented for FDSModule yet.
asyncComposition
in class Module
inner
- 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 Module
inner
- 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 Module
inner
- 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 |