edu.cmu.cs.coral.icf.plan_based.planners
Class PlannerActionSchema
java.lang.Object
|
+--edu.cmu.cs.coral.icf.ActionSchema
|
+--edu.cmu.cs.coral.icf.plan_based.planners.PlannerActionSchema
- public class PlannerActionSchema
- extends ActionSchema
Represents an ActionSchema for a Planner.
- Since:
- ICF 0.0
- Version:
- $Id$
Field Summary |
private java.util.Vector |
adds
The add list for this ActionSchema |
private java.util.Vector |
dels
The delete list for this ActionSchema |
private java.util.Vector |
params
The paramseters of this ActionSchema |
private java.util.Vector |
preconds
The preconditions of this ActionSchema |
Constructor Summary |
PlannerActionSchema(java.lang.String action_name,
java.util.Vector params,
java.util.Vector preconds,
java.util.Vector adds,
java.util.Vector dels)
Constructs a new PlannerActionSchema. |
Method Summary |
java.util.Vector |
getActionParameters()
Gets the parameters for this ActionSchema. |
java.util.Vector |
getActionVariables()
Gets the names of the parameters for this ActionSchema, overrides ActionSchema.getActionVariables. |
java.util.Vector |
getAdditions()
Gets the add list for this ActionSchema. |
java.util.Vector |
getDeletions()
Gets the delete list for this ActionSchema |
java.util.Vector |
getPreconditions()
Gets the preconditions for this ActionSchema. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
params
private java.util.Vector params
- The paramseters of this ActionSchema
- Since:
- ICF 0.0
preconds
private java.util.Vector preconds
- The preconditions of this ActionSchema
- Since:
- ICF 0.0
adds
private java.util.Vector adds
- The add list for this ActionSchema
- Since:
- ICF 0.0
dels
private java.util.Vector dels
- The delete list for this ActionSchema
- Since:
- ICF 0.0
PlannerActionSchema
public PlannerActionSchema(java.lang.String action_name,
java.util.Vector params,
java.util.Vector preconds,
java.util.Vector adds,
java.util.Vector dels)
- Constructs a new PlannerActionSchema.
- Parameters:
action_name
- the name of the ActionSchemaparams
- a Vector of Variable's representing the formal parameters of the
ActionSchemapreconds
- the preconditions of the operator/ActionSchemaadds
- the new literals added to the state by this ActionSchemadels
- the literals removed from the state by this ActionSchema- Since:
- ICF 0.0
getActionVariables
public java.util.Vector getActionVariables()
- Gets the names of the parameters for this ActionSchema, overrides ActionSchema.getActionVariables.
- Returns:
- a vector containing the names of the parameters for this ActionSchema
in order
- Overrides:
- getActionVariables in class ActionSchema
- Since:
- ICF 0.0
getActionParameters
public java.util.Vector getActionParameters()
- Gets the parameters for this ActionSchema.
- Returns:
- the parameters for this ActionSchema
- Since:
- ICF 0.0
getPreconditions
public java.util.Vector getPreconditions()
- Gets the preconditions for this ActionSchema.
- Returns:
- the precondiitions of this ActionSchema as a conjuctive array
- Since:
- ICF 0.0
getAdditions
public java.util.Vector getAdditions()
- Gets the add list for this ActionSchema.
- Returns:
- the add list for this ActionSchema
- Since:
- ICF 0.0
getDeletions
public java.util.Vector getDeletions()
- Gets the delete list for this ActionSchema
- Returns:
- the delete list for this ActionSchema
- Since:
- ICF 0.0