edu.cmu.cs.coral.icf
Interface Controller

All Known Implementing Classes:
PlannerController

public abstract interface Controller

This interface specifies the API for a generic agent controller.

Since:
ICF 0.0
Version:
$Id$

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 to the Controller being used.
 void setFeedbackGenerator(FeedbackGenerator fbg)
          Sets the source of feedback to the Controller.
 

Method Detail

getModelFactory

public ModelFactory getModelFactory()
Gets a factory which can be used to create components of a world model of an appropriate type to the Controller being used.
Returns:
a ModelFactory which can generate models of the world for this Controller
Since:
ICF 0.0

setFeedbackGenerator

public void setFeedbackGenerator(FeedbackGenerator fbg)
Sets the source of feedback to the Controller.
Parameters:
fbg - the FeedbackGenerator to use for Feedback
Since:
ICF 0.0

addAgent

public void addAgent(Agent agent)
Adds an Agent to be controlled by this Controller.
Parameters:
agent - the agent to control
Since:
ICF 0.0

getActionStream

public ActionStream getActionStream(Agent agent)
Gets the ActionStream to control this Agent.
Parameters:
agent - the Agent to get the controlling stream for
Returns:
a stream of actions to control this agent
Since:
ICF 0.0