|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An AgentWorldAdapter describes the interface between one specific type of agent (eg "micropsi") and one specific type of world implementation (eg "island world"). You can add any number of world adapters to an agent as long their sets of percept and action names are disjunct. WorldAdapters are a flexible way to make some type of agent work within different environments. Embedding agents in environments requires the definition of things that can be received from the environment (percepts) and the definition of things that can be done to the environment (actions). WorldAdapters are also the means of choice when using some type of agent within other contexts than simulated environments. Possible "real" environments could be the WWW, a text document or, of course, a real robot's environment. Depending on the architecture of your agent, you will probably also have to do some adaption within the agent itself to make it use the actions and percepts you define in the WorldAdapter. The same holds true for the world - the WorldAdapter doesn't do any sophisticated magic. A WorldAdapter is simply the place where you translate the "language" of the world into that of the agent. So there will need to be an adapter for each pair of world/agent types.
| Method Summary | |
ActionTranslatorIF[] |
createActionTranslators()
Creates (or returns) the action translator objects of this adapter. |
AgentControllerIF |
createController()
Creates (or simply returns) the agent controller object. |
PerceptTranslatorIF[] |
createPerceptTranslators()
Creates (or returns) the percept translator objects of this adapter. |
UrgeCreatorIF[] |
createUrgeCreators()
Creates (or returns) the urge creators of this adapter. |
void |
initialize(AgentIF agent,
Logger logger)
Initializes the adapter and provides some basic things the other methods will probably need. |
| Method Detail |
public void initialize(AgentIF agent,
Logger logger)
throws MicropsiException
agent - the agentlogger - the agent's logger
MicropsiException - if the world adapter can't be initialized for some reasonpublic AgentControllerIF createController()
public ActionTranslatorIF[] createActionTranslators()
public PerceptTranslatorIF[] createPerceptTranslators()
public UrgeCreatorIF[] createUrgeCreators()
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||