cz.cuni.amis.pogamut.base.agent.module
Interface IAgentLogic<LOGIC_MODULE extends LogicModule>

Package class diagram package IAgentLogic

public interface IAgentLogic<LOGIC_MODULE extends LogicModule>


Method Summary
 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.
 

Method Detail

getLogicInitializeTime

long getLogicInitializeTime()
Returns upper-estimation of IAgentLogic#initializeLogic() method running time in millis.

Returns:

logicInitialize

void logicInitialize(LOGIC_MODULE logicModule)
Called when the agent is started and just before the first logic() invocation.

Parameters:
logicModule -

beforeFirstLogic

void beforeFirstLogic()
Method that is called only once before actual logic() is called.


logic

void logic()
Called to perform the logic of the agent. If performed by the LogicModule or its descendant then it is called periodically.


logicShutdown

void logicShutdown()
Called whenever the LogicModule is stopping to end the logic.


getLogicShutdownTime

long getLogicShutdownTime()
Returns upper-estimation of logicShutdown() method running time in millis.

Returns:


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.