|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectRaptor.LogicParser.Formula.Term
Raptor.LogicParser.Formula.VVar
public class VVar
Creates an V variable term.
Extends abstract class Term.
| Constructor Summary | |
|---|---|
VVar(java.lang.String pName)
Constructs a new variable. |
|
| Method Summary | |
|---|---|
void |
addToSignature(PanSignature pSignature)
This method adds this Term to the passed PanSignature IF it is not already in the signature. |
java.lang.String |
clashes(PanSignature pSignature)
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. |
VVar |
clone()
Returns a copy(clone) of this Term. |
java.lang.String |
display()
Returns a String to display the VVar term. |
boolean |
equals(Term pTerm)
Returns true if the passed Term is equal to this Term. |
java.lang.String |
getName()
Returns the name of the Term. |
boolean |
isIn(PanSignature pSignature)
Returns true if this Term is in the passed PanSignature I.e. |
Term |
regenerate()
|
void |
setVars(Var pVar)
This method adds Var v to the list of variables this Term is bound to. |
Term |
sub(Term pTermX,
Term pTermY)
Substitutes all the occurrences of Term pTermX by Term pTermY. |
| Methods inherited from class Raptor.LogicParser.Formula.Term |
|---|
concatNoDup, getVars, isIn, isInVars |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VVar(java.lang.String pName)
pName - the name of the VVar| Method Detail |
|---|
public java.lang.String display()
display in class Termpublic boolean equals(Term pTerm)
equals in class TermpTerm - represents the Term to be compared against.
public Term sub(Term pTermX,
Term pTermY)
sub in class TermpTermX - represents the Term to be substituted.pTermY - represents the Term to substitute the Term pTermX with.public VVar clone()
clone in class Termpublic java.lang.String clashes(PanSignature pSignature)
clashes in class TermpSignature - PanSignature Represents the signature to be compared against.public java.lang.String getName()
getName in class Termpublic void addToSignature(PanSignature pSignature)
addToSignature in class TermpSignature - PanSignature represents the signature to add this Formula to.public boolean isIn(PanSignature pSignature)
isIn in class TermpSignature - PanSignature represents the signature it is to be searched in.public void setVars(Var pVar)
setVars in class TermpVar - Var represents the Var to be added to the list of this Term's
variables.public Term regenerate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||