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

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

public class PlannerAction
extends java.lang.Object

Represents an action to be performed, i.e. an instantiated operator.

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  PlannerActionSchema actionSchema
          The action schema for this action.
private  Binding binding
          The variable bindings for this action.
 
Constructor Summary
PlannerAction()
          Constructs an empty PlannerAction.
PlannerAction(PlannerActionSchema action_schema, Binding binding)
          Constructs a PlannerAction from the specifiec action schema and bindings.
 
Method Summary
 PlannerActionSchema getActionSchema()
          Gets the action schema for this action
 Binding getBinding()
          Gets the variable bindings for this action.
 java.util.Set getInstantiatedAdditions()
          Gets the instantiated additions for this action.
 java.util.Set getInstantiatedDeletions()
          Gets the instantiated deletions for this action.
 java.util.Set getInstantiatedPreconditions()
          Gets the instantiated preconditions for this action.
 void setActionSchema(PlannerActionSchema action_schema)
          Sets the action schema for this action
 void setBinding(Binding binding)
          Sets the variable bindings for this action.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

actionSchema

private PlannerActionSchema actionSchema
The action schema for this action.
Since:
ICF 0.0

binding

private Binding binding
The variable bindings for this action.
Since:
ICF 0.0
Constructor Detail

PlannerAction

public PlannerAction()
Constructs an empty PlannerAction.
Since:
ICF 0.0

PlannerAction

public PlannerAction(PlannerActionSchema action_schema,
                     Binding binding)
Constructs a PlannerAction from the specifiec action schema and bindings.
Parameters:
action_schema - the operator to use
binding - the binding to use for variables
Since:
ICF 0.0
Method Detail

getActionSchema

public PlannerActionSchema getActionSchema()
Gets the action schema for this action
Returns:
the action schema for this action
Since:
ICF 0.0

setActionSchema

public void setActionSchema(PlannerActionSchema action_schema)
Sets the action schema for this action
Parameters:
action_schema - the action schema for this action
Since:
ICF 0.0

getBinding

public Binding getBinding()
Gets the variable bindings for this action.
Returns:
the variable bindings for this action
Since:
ICF 0.0

setBinding

public void setBinding(Binding binding)
Sets the variable bindings for this action.
Parameters:
binding - the variable bindings for this action
Since:
ICF 0.0

getInstantiatedPreconditions

public java.util.Set getInstantiatedPreconditions()
Gets the instantiated preconditions for this action.
Returns:
the instantiated preconditions for this action
Since:
ICF 0.0

getInstantiatedAdditions

public java.util.Set getInstantiatedAdditions()
Gets the instantiated additions for this action.
Returns:
the instantiated additions for this action
Since:
ICF 0.0

getInstantiatedDeletions

public java.util.Set getInstantiatedDeletions()
Gets the instantiated deletions for this action.
Returns:
the instantiated deletions for this action
Since:
ICF 0.0