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

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

public class PlannerProblem
extends java.lang.Object
implements Problem

Represents a problem for a Planner.

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  PlannerGoal goal
          The goal to plan for.
private  PlannerState initialState
          The initial state of the world.
private  PlannerObjectTypeMap typeToObjectMap
          A mapping from object type to objects in the world.
 
Constructor Summary
PlannerProblem()
          Construct an empty planning problem.
 
Method Summary
 PlannerObjectTypeMap accessTypeToObjectMap()
          Accesses the map from types to objects.
 Goal getGoal()
          Gets the goal that needs to be achieved.
 State getInitialState()
          Gets the known initial state of the world.
 void setGoal(PlannerGoal goal)
          Sets the goal for this planning problem.
 void setInitialState(PlannerState initial_state)
          Sets the initial state for the planning problem.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

typeToObjectMap

private PlannerObjectTypeMap typeToObjectMap
A mapping from object type to objects in the world.
Since:
ICF 0.0

initialState

private PlannerState initialState
The initial state of the world.
Since:
ICF 0.0

goal

private PlannerGoal goal
The goal to plan for.
Since:
ICF 0.0
Constructor Detail

PlannerProblem

public PlannerProblem()
Construct an empty planning problem.
Since:
ICF 0.0
Method Detail

getGoal

public Goal getGoal()
Gets the goal that needs to be achieved.
Specified by:
getGoal in interface Problem
Returns:
the goal to achieve
Since:
ICF 0.0

getInitialState

public State getInitialState()
Gets the known initial state of the world.
Specified by:
getInitialState in interface Problem
Returns:
the known state of the world or null if no state is known
Since:
ICF 0.0

accessTypeToObjectMap

public PlannerObjectTypeMap accessTypeToObjectMap()
Accesses the map from types to objects. This map may be modified directly to modify this planning problem.
Returns:
the mapping from types to objects
Since:
ICF 0.0

setInitialState

public void setInitialState(PlannerState initial_state)
Sets the initial state for the planning problem.
Parameters:
initial_state - the initial state of the planning problem
Since:
ICF 0.0

setGoal

public void setGoal(PlannerGoal goal)
Sets the goal for this planning problem.
Parameters:
goal - the goal for this planning problem
Since:
ICF 0.0