|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wis.jtlv.env.module.Module
public abstract class Module
A general interface for modules. It is advise to load modules and manipulate
them through the file itself, and then load it to the environment through
Env. However, this is not the only way to create a new module. One can use
whole set of manipulating procedures provided by this interface, to create a
new module.
By default, The initial condition is TRUE, transition relation is TRUE.
Env.loadModule(String)
,
Env.getAllModules()
,
Env.getModule(String)
Constructor Summary | |
---|---|
Module()
|
Method Summary | |
---|---|
abstract void |
addInitial(net.sf.javabdd.BDD to_add)
Conjunct the initial condition with the given condition. |
abstract void |
addVar(java.lang.String new_var)
Add a variable to the module. |
net.sf.javabdd.BDD |
allPred(net.sf.javabdd.BDD to)
Given a set of state, this procedure return all states which can lead in any number of module steps to these states. |
net.sf.javabdd.BDD |
allSucc(net.sf.javabdd.BDD from)
This procedure return all states which the module can reach in any number of steps from given a set of state. |
abstract void |
conjunctTrans(net.sf.javabdd.BDD to_add)
Conjunct the transition relation with the given condition. |
abstract void |
disjunctTrans(net.sf.javabdd.BDD to_add)
Disjunct the transition relation with the given condition. |
abstract ModuleBDDField[] |
getAllFields()
Getter for all fields declared in this module. |
abstract java.lang.String |
getFullInstName()
Getter for the instance string. |
abstract java.lang.String |
getName()
Getter for the declared field name which holds this instance. |
abstract java.lang.String |
getPath()
The path leading to this module. |
abstract net.sf.javabdd.BDD |
initial()
Getter for the initial states in the module. |
net.sf.javabdd.BDD |
pred(net.sf.javabdd.BDD to)
Given a set of state, this procedure return all states which can lead in a single module step to these states. |
net.sf.javabdd.BDD |
prime(net.sf.javabdd.BDD unprime_set)
Prime the given BDD with respect to the variable in this module. |
net.sf.javabdd.BDDVarSet |
primeVars()
Getter for the primed variable of this module. |
net.sf.javabdd.BDD |
succ(net.sf.javabdd.BDD from)
This procedure return all states which the module can reach in a single step from given a set of state. |
abstract java.lang.String |
toString()
Prepare a string describing the module, its variables, define, statement, etc. |
abstract net.sf.javabdd.BDD |
trans()
Getter for the transition relation of the module. |
net.sf.javabdd.BDD |
unprime(net.sf.javabdd.BDD prime_set)
Unprime the given BDD with respect to the variable in this module. |
net.sf.javabdd.BDDVarSet |
unprimeVars()
Getter for the unprimed variable of this module. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Module()
Method Detail |
---|
public abstract void addVar(java.lang.String new_var) throws ModuleException
Add a variable to the 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.public abstract void addInitial(net.sf.javabdd.BDD to_add) throws ModuleException
Conjunct the initial condition with the given condition.
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.initial()
public abstract void conjunctTrans(net.sf.javabdd.BDD to_add) throws ModuleException
Conjunct the transition relation with the given condition.
to_add
- The transition to conjunct with the module's transitions.
ModuleException
- If there was a problem with adding relation.trans()
,
disjunctTrans(BDD)
public abstract void disjunctTrans(net.sf.javabdd.BDD to_add) throws ModuleException
Disjunct the transition relation with the given condition.
to_add
- The transition disjunct with to the module's transitions.
ModuleException
- If there was a problem with adding relation.trans()
,
conjunctTrans(BDD)
public abstract net.sf.javabdd.BDD initial()
Getter for the initial states in the module.
addInitial(BDD)
public abstract net.sf.javabdd.BDD trans()
Getter for the transition relation of the module.
disjunctTrans(BDD)
,
conjunctTrans(BDD)
public net.sf.javabdd.BDD pred(net.sf.javabdd.BDD to) throws net.sf.javabdd.BDDException
Given a set of state, this procedure return all states which can lead in a single module step to these states.
to
- The set of state to be reach.
net.sf.javabdd.BDDException
- If there was a problem with the BDD operation.allPred(BDD)
,
trans()
,
succ(BDD)
public net.sf.javabdd.BDD allPred(net.sf.javabdd.BDD to) throws net.sf.javabdd.BDDException
Given a set of state, this procedure return all states which can lead in any number of module steps to these states.
to
- The set of state to be reach.
net.sf.javabdd.BDDException
- If there was a problem with the BDD operation.pred(BDD)
,
trans()
,
allSucc(BDD)
public net.sf.javabdd.BDD succ(net.sf.javabdd.BDD from) throws net.sf.javabdd.BDDException
This procedure return all states which the module can reach in a single step from given a set of state.
from
- The set of state to start from.
net.sf.javabdd.BDDException
- If there was a problem with the BDD operation.allSucc(BDD)
,
trans()
,
pred(BDD)
public net.sf.javabdd.BDD allSucc(net.sf.javabdd.BDD from) throws net.sf.javabdd.BDDException
This procedure return all states which the module can reach in any number of steps from given a set of state.
from
- The set of state to start from.
net.sf.javabdd.BDDException
- If there was a problem with the BDD operation.allPred(BDD)
,
trans()
,
succ(BDD)
public abstract ModuleBDDField[] getAllFields()
Getter for all fields declared in this module.
public net.sf.javabdd.BDD prime(net.sf.javabdd.BDD unprime_set) throws net.sf.javabdd.BDDException
Prime the given BDD with respect to the variable in this module. I.e. only variable from this module will be switched to their primed version.
unprime_set
- The BDD to prime.
net.sf.javabdd.BDDException
- If trying to prime primed version of the variable.Env.prime(BDD)
,
Env.prime(BDD, ModuleBDDField[])
,
unprime(BDD)
,
primeVars()
public net.sf.javabdd.BDD unprime(net.sf.javabdd.BDD prime_set) throws net.sf.javabdd.BDDException
Unprime the given BDD with respect to the variable in this module. I.e. only variable from this module will be switched to their unprimed version.
prime_set
- The BDD to unprime.
net.sf.javabdd.BDDException
- If trying to unprime unprimed version of the variable.Env.unprime(BDD)
,
Env.unprime(BDD, ModuleBDDField[])
,
prime(BDD)
,
unprimeVars()
public net.sf.javabdd.BDDVarSet primeVars()
Getter for the primed variable of this module.
public net.sf.javabdd.BDDVarSet unprimeVars()
Getter for the unprimed variable of this module.
public abstract java.lang.String toString()
Prepare a string describing the module, its variables, define, statement, etc.
toString
in class java.lang.Object
public abstract java.lang.String getPath()
The path leading to this module.
public abstract java.lang.String getName()
Getter for the declared field name which holds this instance.
public abstract java.lang.String getFullInstName()
Getter for the instance string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |