|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.coral.icf.plan_based.planners.Literal
Represents a Literal used by a Planner. A Literal consists of a Predicate and a list of PlannerObject's representing the parameters. For example, in a blocksworld domain "(on block_a block_b)" might be a literal.
Field Summary | |
private PlannerObject[] |
params
The values of the parameters of this Literal. |
private Predicate |
predicate
The Predicate this Literal is based upon. |
Constructor Summary | |
Literal(Predicate predicate)
Constructs a new Literal based upon the given Predicate. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares the passed Literal to this Literal |
boolean |
equals(java.lang.Object obj)
Returns true if this Literal equals the object passed in, overrides Object.equals() |
PlannerObject |
getParam(int param_idx)
Gets the value of one of the parameters of this Literal. |
Predicate |
getPredicate()
Gets the predicate this Literal is based upon. |
int |
hashCode()
Returns the hash code for this Literal. |
void |
setParam(int param_idx,
PlannerObject object)
Sets the value of one of the parameters of this Literal. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Predicate predicate
private PlannerObject[] params
Constructor Detail |
public Literal(Predicate predicate)
predicate
- the predicate this literal usesMethod Detail |
public int compareTo(java.lang.Object obj)
obj
- the Literal to compare this one againstpublic boolean equals(java.lang.Object obj)
obj
- the object to compare withpublic int hashCode()
public Predicate getPredicate()
public PlannerObject getParam(int param_idx)
param_idx
- which parameter is desiredpublic void setParam(int param_idx, PlannerObject object)
param_idx
- the index of the parameter to modifyobject
- the new value for this parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |