|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.coral.icf.plan_based.PlannerController
Represents a Controller based upon an underlying Planner.
Field Summary | |
private java.util.Map |
agents
the Agent's controlled by this Controller with corresponding ActionStream's |
private FeedbackGenerator |
feedbackGenerator
the source of feedback for this Controller |
private ModelFactory |
modelFactory
the PlannerControllerModelFactory instance |
private Planner |
planner
the Planner this Controller is based upon |
Constructor Summary | |
PlannerController(Planner planner)
Makes a new PlannerController based upon the given Planner. |
Method Summary | |
void |
addAgent(Agent agent)
Adds an Agent to be controlled by this Controller. |
ActionStream |
getActionStream(Agent agent)
Gets the ActionStream to control this Agent. |
ModelFactory |
getModelFactory()
Gets a factory which can be used to create components of a world model of an appropriate type for the PlannerController. |
void |
setFeedbackGenerator(FeedbackGenerator fbg)
Sets the source of feedback to the Controller. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Planner planner
private ModelFactory modelFactory
private FeedbackGenerator feedbackGenerator
private java.util.Map agents
Constructor Detail |
public PlannerController(Planner planner)
planner
- the planner to use to make decisions.Method Detail |
public ModelFactory getModelFactory()
public void setFeedbackGenerator(FeedbackGenerator fbg)
fbg
- the FeedbackGenerator to use for Feedbackpublic void addAgent(Agent agent)
agent
- the agent to controlpublic ActionStream getActionStream(Agent agent)
agent
- the Agent to get the controlling stream for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |