|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ifcomputer.minerva.MinervaTerm
|
+--com.ifcomputer.minerva.MinervaVariable
The class MinervaVariable is used to represent a
Minerva variable.
| Field Summary |
| Fields inherited from class com.ifcomputer.minerva.MinervaTerm |
ATOM, COMPOUND, DOUBLE, LIST, LONG, OBJECT, VARIABLE |
| Constructor Summary | |
MinervaVariable()
Constructs a new unbound Minerva variable |
|
| Method Summary | |
com.ifcomputer.minerva.MinervaTerm |
getValue()
This function returns the term, which has been bound to the variable. |
void |
reset()
This function is used to unbind all variables ( MinervaVariable) in this term. |
com.ifcomputer.minerva.MinervaTerm |
resolve()
This function is used to create a copy of this term,
where all bound variable will be replaced by the term to which
they are bound |
void |
setValue(com.ifcomputer.minerva.MinervaTerm term)
This function is used to bind a Minerva variable to a term. |
java.lang.String |
toString()
This function stringifies the term into a format readable by the Minerva read predicates. |
int |
typeOf()
This function returns the type ( VARIABLE,
ATOM, etc.) of this term. |
| Methods inherited from class com.ifcomputer.minerva.MinervaTerm |
getEnumeration, getListLength, getStringArray, getTermArray, isList |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MinervaVariable()
| Method Detail |
public void reset()
MinervaTermMinervaVariable) in this term.
reset in class MinervaTermsetValue(com.ifcomputer.minerva.MinervaTerm)public com.ifcomputer.minerva.MinervaTerm resolve()
MinervaTermthis term,
where all bound variable will be replaced by the term to which
they are bound
resolve in class MinervaTermsetValue(com.ifcomputer.minerva.MinervaTerm),
MinervaTerm.reset()public void setValue(com.ifcomputer.minerva.MinervaTerm term)
setValue in class MinervaTermterm - the term to which the Minerva variable should be
bound.setValue(com.ifcomputer.minerva.MinervaTerm)public com.ifcomputer.minerva.MinervaTerm getValue()
setValue(com.ifcomputer.minerva.MinervaTerm)public java.lang.String toString()
toString in class java.lang.Objectpublic int typeOf()
MinervaTermVARIABLE,
ATOM, etc.) of this term.
typeOf in class MinervaTermMinervaTerm.VARIABLE,
MinervaTerm.ATOM,
MinervaTerm.LONG,
MinervaTerm.DOUBLE,
MinervaTerm.OBJECT,
MinervaTerm.COMPOUND,
MinervaTerm.LIST
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||