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
 
Fields inherited from class edu.cmu.cs.coral.icf.ActionSchema
act_name, param_names
 
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 edu.cmu.cs.coral.icf.ActionSchema
getActionName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 ActionSchema
params - a Vector of Variable's representing the formal parameters of the ActionSchema
preconds - the preconditions of the operator/ActionSchema
adds - the new literals added to the state by this ActionSchema
dels - the literals removed from the state by this ActionSchema
Since:
ICF 0.0
Method Detail

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