|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wis.jtlv.env.module.ModuleEntity
edu.wis.jtlv.env.module.ModuleBDDDefine
public class ModuleBDDDefine
This object represents a define declaration field. It is degenerate in a way by not supporting the 'other', 'prime', and 'unprime' procedures.
Since define can refer to other defines, fields, values, etc., and has no real entity of its own (i.e. marco), define is declared in two stages. The first is only for declaring its existence. The second is for real evaluation. The second stage is done just-in-time (per demand), i.e. if not refer to, the second stage will not be execute.
Constructor Summary | |
---|---|
ModuleBDDDefine(java.lang.String a_path,
java.lang.String name)
The main public constructor. |
Method Summary | |
---|---|
void |
attachStmt(edu.wis.jtlv.env.core.smv.eval.StmtDefineOperator stmt)
Attach an expression to the define. |
BDD |
evalBDD()
Evaluate the statement, and return the BDD value. |
java.lang.Integer[] |
evalInt()
Evaluate the statement, and return an array of integer values. |
edu.wis.jtlv.env.core.smv.eval.AbstractElement |
getStmt()
Getter for the parsing statement. |
boolean |
isInitiated()
Check whether this define was attached with an expression. |
Methods inherited from class edu.wis.jtlv.env.module.ModuleEntity |
---|
equals, getName, getPath, getSimpleArrayName, strongEquals, toFullString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModuleBDDDefine(java.lang.String a_path, java.lang.String name)
The main public constructor. Given a path, a name, a new define field is
created with no associated statement.
In order to complete the instantiation properly, an expression most be
attached.
a_path
- A path to the field.name
- A name for this field.attachStmt(StmtDefineOperator)
Method Detail |
---|
public void attachStmt(edu.wis.jtlv.env.core.smv.eval.StmtDefineOperator stmt)
Attach an expression to the define.
stmt
- The parsing statement to attach.ModuleBDDDefine(String, String)
,
getStmt()
public edu.wis.jtlv.env.core.smv.eval.AbstractElement getStmt()
Getter for the parsing statement.
attachStmt(StmtDefineOperator)
public boolean isInitiated()
Check whether this define was attached with an expression. (i.e. this define can continue to the second stage.)
attachStmt(StmtDefineOperator)
public BDD evalBDD()
Evaluate the statement, and return the BDD value.
attachStmt(StmtDefineOperator)
,
evalInt()
public java.lang.Integer[] evalInt()
Evaluate the statement, and return an array of integer values.
attachStmt(StmtDefineOperator)
,
evalBDD()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |