edu.cmu.cs.coral.icf.plan_based.planners
Class PlannerObject

java.lang.Object
  |
  +--edu.cmu.cs.coral.icf.plan_based.planners.PlannerObject

public class PlannerObject
extends java.lang.Object

Represents an object in the world that is known to the Planner.

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  java.lang.String name
          The name of the object.
private  PlannerObjectType type
          The type of the object.
 
Constructor Summary
PlannerObject()
          Constructs a new PlannerObject with null name and type
PlannerObject(java.lang.String name, PlannerObjectType type)
          Constructs a new PlannerObject with the specified name and type
 
Method Summary
 int compareTo(PlannerObject obj)
          Compares this PlannerObject to the one passed in
 java.lang.String getName()
          Gets the name of the object.
 PlannerObjectType getType()
          Gets the type of the object
 void setName(java.lang.String new_name)
          Sets the name of the object.
 void setType(PlannerObjectType new_type)
          Sets the type of the object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name of the object.
Since:
ICF 0.0

type

private PlannerObjectType type
The type of the object.
Since:
ICF 0.0
Constructor Detail

PlannerObject

public PlannerObject()
Constructs a new PlannerObject with null name and type
Since:
ICF 0.0

PlannerObject

public PlannerObject(java.lang.String name,
                     PlannerObjectType type)
Constructs a new PlannerObject with the specified name and type
Parameters:
name - the name of the object
type - the type of the object
Since:
ICF 0.0
Method Detail

compareTo

public int compareTo(PlannerObject obj)
Compares this PlannerObject to the one passed in
Parameters:
obj - the PlannerObject to compare to
Returns:
-1 if thisobj
Since:
ICF 0.0

setName

public void setName(java.lang.String new_name)
Sets the name of the object.
Parameters:
new_name - the new name for the object
Since:
ICF 0.0

setType

public void setType(PlannerObjectType new_type)
Sets the type of the object
Parameters:
new_type - the new type of the object
Since:
ICF 0.0

getName

public java.lang.String getName()
Gets the name of the object.
Returns:
the name of the object
Since:
ICF 0.0

getType

public PlannerObjectType getType()
Gets the type of the object
Returns:
the type of the object
Since:
ICF 0.0