|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.CompileTimeObject
JSHOP2.LogicalExpression
JSHOP2.LogicalExpressionAssignment
public class LogicalExpressionAssignment
Each assign term in a logical expression at compile time is represented as an instance of this class.
Field Summary | |
---|---|
private Term |
t
The term to which the variable will be assigned. |
private int |
whichVar
The index of the variable to be assigned. |
Fields inherited from class JSHOP2.CompileTimeObject |
---|
endl |
Constructor Summary | |
---|---|
LogicalExpressionAssignment(int whichVarIn,
Term tIn)
To initialize this assignment logical expression. |
Method Summary | |
---|---|
java.lang.String |
getInitCode()
This class does not need any initialization code, therefore, this function simply returns an empty String . |
protected LogicalExpression |
getNNF(boolean negated)
|
protected void |
propagateVarCount(int varCount)
This class does not need to propagate the variable count, therefore, this function does nothing. |
java.lang.String |
toCode()
This function produces the Java code to create a PreconditionAssign object that represents this assignment
logical expression at run time. |
Methods inherited from class JSHOP2.LogicalExpression |
---|
getClassCnt, getVarCount, setVarCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Term t
private int whichVar
Constructor Detail |
---|
public LogicalExpressionAssignment(int whichVarIn, Term tIn)
whichVarIn
- the index of the variable to be assigned.tIn
- the term to which the variable will be assigned.Method Detail |
---|
public java.lang.String getInitCode()
String
.
getInitCode
in class LogicalExpression
String
.protected LogicalExpression getNNF(boolean negated)
protected void propagateVarCount(int varCount)
propagateVarCount
in class LogicalExpression
varCount
- the number of variables for this logical expression.public java.lang.String toCode()
PreconditionAssign
object that represents this assignment
logical expression at run time.
toCode
in class CompileTimeObject
String
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |