|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPandora.LogicParser.Formula.Term
Pandora.LogicParser.Formula.AExp.AExp
public abstract class AExp
Abstract class for arithmetic expressions.
| Field Summary | |
|---|---|
Term |
left
|
Term |
right
|
| Constructor Summary | |
|---|---|
AExp()
|
|
| Method Summary | |
|---|---|
void |
addToSignature(PanSignature signature)
This method adds this Term to the passed PanSignature IF it is not already in the signature. |
java.lang.String |
clashes(PanSignature signature)
Returns a String of error message if this Term clashes with the passed PanSignature. A Term clashes with a PanSignature if it clashes with any of its Predicates,Constants,Functions or Variables. If this Term does not clash with the Signature, it is added to the signature and an empty String is returned. |
Term |
clone()
Returns a copy(clone) of this Term. |
abstract java.lang.String |
display()
Returns a String to display the AExp. |
Term |
getLeft()
Returns the left hand side of the arithmetic expression. |
java.lang.String |
getName()
Returns the name of the expression. |
Term |
getRight()
Returns the right hand side of the arithmetic expression. |
boolean |
isIn(PanSignature signature)
Returns true if this Term is in the passed PanSignature. |
void |
setVars(Var v)
This method adds Var v to the list of variables this Term is bound to. |
| Methods inherited from class Pandora.LogicParser.Formula.Term |
|---|
concatNoDup, equals, getVars, isIn, isInVars, sub |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Term left
public Term right
| Constructor Detail |
|---|
public AExp()
| Method Detail |
|---|
public abstract java.lang.String display()
display in class Termpublic java.lang.String getName()
getName in class Termpublic boolean isIn(PanSignature signature)
isIn in class Termsignature - PanSignature represents the signature it is to be searched in.public java.lang.String clashes(PanSignature signature)
clashes in class Termsignature - PanSignature Represents the signature to be compared against.public Term clone()
clone in class Termpublic Term getLeft()
public Term getRight()
public void addToSignature(PanSignature signature)
addToSignature in class Termsignature - PanSignature represents the signature to add this Formula to.public void setVars(Var v)
setVars in class Termv - Var represents the Var to be added to the list of this Term's variables.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||