edu.cmu.cs.coral.icf.plan_based.planners
Class Predicate
java.lang.Object
|
+--edu.cmu.cs.coral.icf.plan_based.planners.Predicate
- public class Predicate
- extends java.lang.Object
- implements java.lang.Comparable
Represents the name of a predicate. For example, in a blocks
world "on" might be a predicate.
- Since:
- ICF 0.0
- Version:
- $Id$
Field Summary |
private java.lang.String |
name
The name of this predicate. |
private int |
numParams
The number of parameters this predicate takes. |
Constructor Summary |
Predicate(java.lang.String name,
int num_params)
Constructs a Predicate with the specified name and number of parameters. |
Method Summary |
int |
compareTo(java.lang.Object obj)
Compares this Predicate to the one passed in |
java.lang.String |
getName()
Gets the name of this predicate. |
int |
getNumParams()
Gets the number of parameters this predicate takes. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
name
private java.lang.String name
- The name of this predicate.
- Since:
- ICF 0.0
numParams
private int numParams
- The number of parameters this predicate takes.
- Since:
- ICF 0.0
Predicate
public Predicate(java.lang.String name,
int num_params)
- Constructs a Predicate with the specified name and number of parameters.
- Parameters:
name
- the name of the predicatenum_params
- the number of parameters that this predicate takes- Since:
- ICF 0.0
compareTo
public int compareTo(java.lang.Object obj)
- Compares this Predicate to the one passed in
- Specified by:
- compareTo in interface java.lang.Comparable
- Parameters:
obj
- the predicate to compare to- Returns:
- -1 if thispred
- Since:
- ICF 0.0
getName
public java.lang.String getName()
- Gets the name of this predicate.
- Returns:
- the name of this predicate
- Since:
- ICF 0.0
getNumParams
public int getNumParams()
- Gets the number of parameters this predicate takes.
- Returns:
- the number of parameters this predicate takes.
- Since:
- ICF 0.0