|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.agent.micropsi.MicroPsiAgent
| Field Summary | |
protected java.lang.String |
currentAgentStateID
|
protected DebugDataSource |
debugSource
|
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaDataTarget |
hTarget
|
protected MicroPSICore |
micropsi
|
protected int |
netDelayMs
|
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaResetDataTarget |
rTarget
|
protected AgentScriptingManager |
scriptingManager
|
protected AgentFrameworkComponent |
tecLayer
|
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.UnzoomDataTarget |
unzoomTarget
|
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaDataTarget |
vTarget
|
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.ZoomDataTarget |
zoomTarget
|
| Constructor Summary | |
MicroPsiAgent()
|
|
| Method Summary | |
void |
die(java.lang.String reason)
|
void |
endCycle(long cyclecounter)
|
int |
getAgentType()
|
java.lang.String |
getCurrentAgentState()
Returns the current agent's satet |
int |
getCycleDelay()
Returns the agent controller thread's current delay. |
NetFacadeIF |
getNet()
|
Situation |
getSituation()
Returns the current situation object. |
ConsoleQuestionTypeIF[] |
initialize(AgentFrameworkComponent teclayer,
java.lang.String configroot,
ConfigurationReaderIF reader)
|
boolean |
isAlive()
|
boolean |
isAnyZoomFlagSet()
|
void |
receiveCycleSignal(long cyclecounter,
int state)
|
void |
registerAdditionalQuestionType(ConsoleQuestionTypeIF q)
|
void |
reset()
Resets the agent. |
void |
resetZoomFlags()
|
void |
run()
|
void |
saveState(java.lang.String newstate)
Saves this agent as a new state with the given name |
void |
setCurrentAgentState(java.lang.String newState)
Loads the agent's state |
void |
setCycleDelay(int newDelay)
Sets the controller thread's delay (in ms) |
void |
startCycle(long cyclecounter)
|
void |
stopEverything()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MicroPSICore micropsi
protected java.lang.String currentAgentStateID
protected AgentFrameworkComponent tecLayer
protected AgentScriptingManager scriptingManager
protected DebugDataSource debugSource
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaDataTarget hTarget
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaDataTarget vTarget
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.FoveaResetDataTarget rTarget
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.ZoomDataTarget zoomTarget
protected org.micropsi.comp.agent.micropsi.MicroPsiAgent.UnzoomDataTarget unzoomTarget
protected int netDelayMs
| Constructor Detail |
public MicroPsiAgent()
| Method Detail |
public ConsoleQuestionTypeIF[] initialize(AgentFrameworkComponent teclayer,
java.lang.String configroot,
ConfigurationReaderIF reader)
throws MicropsiException
initialize in interface AgentIFMicropsiExceptionpublic void registerAdditionalQuestionType(ConsoleQuestionTypeIF q)
public void reset()
throws MicropsiException
MicropsiExceptionpublic NetFacadeIF getNet()
public void startCycle(long cyclecounter)
startCycle in interface AgentIF
public void receiveCycleSignal(long cyclecounter,
int state)
receiveCycleSignal in interface AgentIFpublic void endCycle(long cyclecounter)
endCycle in interface AgentIF
public void stopEverything()
throws MicropsiException
stopEverything in interface AgentIFMicropsiExceptionpublic void run()
run in interface java.lang.Runnablepublic boolean isAlive()
isAlive in interface AgentIFpublic int getAgentType()
getAgentType in interface AgentIFpublic void die(java.lang.String reason)
die in interface PhysicalStateListenerIF
public void saveState(java.lang.String newstate)
throws MicropsiException,
java.io.IOException
newstate - the state's name
MicropsiException
java.io.IOException
public void setCurrentAgentState(java.lang.String newState)
throws MicropsiException
newState -
MicropsiExceptionpublic java.lang.String getCurrentAgentState()
public Situation getSituation()
public int getCycleDelay()
public void setCycleDelay(int newDelay)
newDelay - the new delay between two cyclespublic void resetZoomFlags()
public boolean isAnyZoomFlagSet()
|
(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 | |||||||||