|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPandora.PanSignature
public class PanSignature
The Pandora Signature.
Constructor Summary | |
---|---|
PanSignature()
Constructs an empty PanSignature. |
|
PanSignature(java.util.List<Atom> predicates,
java.util.List<SimpleTerm> constants,
java.util.List<Function> functions,
java.util.List<Var> variables,
java.util.List<SimpleTerm> skolems)
Constructs a PanSignature with the passed list of parameters |
Method Summary | |
---|---|
void |
addConstant(java.lang.String name)
This method is called when a user wants to add a new Constant to the signature via the "Add to signtaure" option on the menu. |
void |
addConstsToSignature(java.util.List<SimpleTerm> terms)
Adds all the SimpleTerms in the passed SimpleTerm List to this PanSignature's Constant list IF the signature does not already contain them. |
void |
addFuncsToSignature(java.util.List<Function> funcs)
Adds all the Functions in the passed Function List to this PanSignature's Function list IF the signature does not already contain them. |
void |
addFunction(java.lang.String name,
int arity)
This method is called when a user wants to add a new function to the signature via the "Add to signtaure" option on the menu. |
void |
addPredicate(java.lang.String name,
int arity)
This method is called when a user wants to add a new Predicate to the signature via the "Add to signtaure" option on the menu. |
void |
addTermsToSignature(java.util.List<Term> terms)
Adds all the Terms in the passed Term List to this PanSignature IF the signature does not already contain them. |
void |
addToSignature(java.util.List<Atom> predicates)
Adds all the Atoms in the passed Atom List to this PanSignature's Predicate list IF the signature does not already contain them. |
void |
addToSignature(PanSignature sig)
|
void |
addVarsToSignature(java.util.List<Var> vars)
Adds all the Vars in the passed Var List to this PanSignature's Var list IF the signature does not already contain them. |
void |
addVarToSignature(Var var)
Adds the passed Var to this PanSignature's Variable list IF the signature does not already contain them. |
PanSignature |
clone()
Returns a copy(clone) of this PanSignature. |
PanSignature |
compare(PanSignature sign)
Returns a PanSignature containing the difference of this signature and the passed signature I.e The returned signature will contain all Predicates/Functions/SimpleTerms/Variables that the passed signaure contains and this signature doesn't. |
void |
display()
|
java.util.List<SimpleTerm> |
getConstants()
Returns the Constant list of the PanSignature. |
java.util.List<Function> |
getFunctions()
Returns the Function list of the PanSignature. |
java.util.List<Atom> |
getPredicates()
Returns the Predicate list of the PanSignature. |
java.util.List<SimpleTerm> |
getSkolems()
Returns the Skolem Constant list of the PanSignature. |
java.util.List<SVar> |
getSVars()
Returns the SVariable list of the PanSignature. |
java.util.List<Var> |
getVariables()
Returns the Variable list of the PanSignature. |
boolean |
isEmpty()
Returns true if the PanSignature is empty. A PanSignature is empty if its Predicate,Constant and the Function lists are empty. |
void |
setSignature(PanSignature newS)
Sets this PanSignature to the passed PanSignature by copying its lists' contents. |
java.lang.String |
show()
Returns a String representation of the PanSignature. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PanSignature(java.util.List<Atom> predicates, java.util.List<SimpleTerm> constants, java.util.List<Function> functions, java.util.List<Var> variables, java.util.List<SimpleTerm> skolems)
predicates
- Listconstants
- Listfunctions
- Listvariables
- List represents the variable list of the signature.skolems
- Listsvars
- Listpublic PanSignature()
Method Detail |
---|
public java.util.List<Atom> getPredicates()
public java.util.List<SimpleTerm> getConstants()
public java.util.List<Function> getFunctions()
public java.util.List<Var> getVariables()
public java.util.List<SimpleTerm> getSkolems()
public java.util.List<SVar> getSVars()
public void setSignature(PanSignature newS)
newS
- PanSignature represents the PanSignature which is to replace this PanSignature.public void addToSignature(PanSignature sig)
public void addToSignature(java.util.List<Atom> predicates)
public void addConstsToSignature(java.util.List<SimpleTerm> terms)
public void addVarToSignature(Var var)
public void addVarsToSignature(java.util.List<Var> vars)
public void addFuncsToSignature(java.util.List<Function> funcs)
public void addTermsToSignature(java.util.List<Term> terms)
public PanSignature clone()
clone
in class java.lang.Object
public java.lang.String show()
public void display()
public PanSignature compare(PanSignature sign)
sign
- PanSignature the signature to be compared against this PanSignature.public boolean isEmpty()
public void addFunction(java.lang.String name, int arity) throws java.lang.Exception
name
- String represents the name of the newly introduced Function.arity
- int represents the arity of the newly introduced Function.
java.lang.Exception
public void addPredicate(java.lang.String name, int arity) throws java.lang.Exception
name
- String represents the name of the newly introduced Predicate.arity
- int represents the arity of the newly introduced Predicate.
java.lang.Exception
public void addConstant(java.lang.String name) throws java.lang.Exception
name
- String represents the name of the newly introduced Constant.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |