public interface IAgentLogic<LOGIC_MODULE extends LogicModule>
| Modifier and Type | Method and Description |
|---|---|
void |
beforeFirstLogic()
Method that is called only once before actual
logic() is called. |
long |
getLogicInitializeTime()
Returns upper-estimation of
IAgentLogic#initializeLogic() method running time in millis. |
long |
getLogicShutdownTime()
Returns upper-estimation of
logicShutdown() method running time in millis. |
void |
logic()
Called to perform the logic of the agent.
|
void |
logicInitialize(LOGIC_MODULE logicModule)
Called when the agent is started and just before the first
logic() invocation. |
void |
logicShutdown()
Called whenever the
LogicModule is stopping to end the logic. |
long getLogicInitializeTime()
IAgentLogic#initializeLogic() method running time in millis.void logicInitialize(LOGIC_MODULE logicModule)
logic() invocation.logicModule - void beforeFirstLogic()
logic() is called.void logic()
LogicModule or its descendant then
it is called periodically.void logicShutdown()
LogicModule is stopping to end the logic.long getLogicShutdownTime()
logicShutdown() method running time in millis.Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.