|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.rodex.qproc.QueryVariable
public class QueryVariable
Constructor Summary | |
---|---|
QueryVariable(java.lang.String varName)
Creates a new instance of QueryVariable |
Method Summary | |
---|---|
void |
addBoundField(java.lang.String boundField)
Add variable to which this head var is bound to |
void |
addBoundFunction(QueryFunction qf)
Add a reference to a QueryFunction object that uses this variable |
void |
addSubGoal(QuerySubGoal subGoal)
Add a new sub goal object that uses this shared variable |
boolean |
equals(java.lang.Object var)
Compare string-representation of two query variable objects |
java.util.List |
getBoundFields()
Getter for bounded fields |
java.util.List |
getBoundFunctions()
Getter for bound functions |
java.lang.String |
getName()
|
java.util.List |
getSubGoals()
Return a list of QuerySubGoal objects which refer to this variable |
boolean |
isConsistentWith(QueryVariable var)
Two QueryVariable objects are consistent if their bound functions (if any)are mutually consistent. |
boolean |
isConstant()
Test if this variable is also a query constant, i.e. |
boolean |
isMappableTo(QueryVariable var)
Two QueryVariable objects are mappable if they are bound to the same field in a query scheme (e.g. |
boolean |
isShared()
Test to see if this is a shared variable, i.e. |
java.lang.String |
toString()
Return a String representation of the query variable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryVariable(java.lang.String varName)
Method Detail |
---|
public void addSubGoal(QuerySubGoal subGoal)
subGoal
- a reference to a QuerySubGoal
objectpublic void addBoundFunction(QueryFunction qf)
QueryFunction
object that uses this variable
public boolean isShared()
public boolean isConstant()
public java.util.List getSubGoals()
QuerySubGoal
objects which refer to this variable
public boolean equals(java.lang.Object var)
equals
in class java.lang.Object
public java.lang.String toString()
String
representation of the query variable
toString
in class java.lang.Object
public java.lang.String getName()
public void addBoundField(java.lang.String boundField)
public java.util.List getBoundFields()
public java.util.List getBoundFunctions()
public boolean isConsistentWith(QueryVariable var)
QueryVariable
objects are consistent if their bound functions (if any)
var
- another QueryVariable
object
public boolean isMappableTo(QueryVariable var)
QueryVariable
objects are mappable if they are bound to the
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |