cz.cuni.amis.pogamut.base.component
Interface IControllable

Package class diagram package IControllable
All Known Subinterfaces:
IAgent, IAgent3D, IEmbodiedAgent, IGhostAgent, IObservingAgent, IWorldServer<A>
All Known Implementing Classes:
AbstractAgent, AbstractAgent3D, AbstractEmbodiedAgent, AbstractGhostAgent, AbstractObservingAgent, AbstractWorldServer, Agent3DJMXProxy, AgentJMXProxy, GhostAgentJMXProxy, TestAgents.NetworkLoggingAgent

@MXBean
public interface IControllable

Interface providing a control methods for the implementors. Used almost everywhere in the Gavial libray.

Author:
ik

Method Summary
 void kill()
          Kills the object - interrupt ruthlessly any work it might be doing.
 void start()
          Starts the object.
 void stop()
          Tries to stop the work of this object carefully.
 

Method Detail

start

void start()
           throws cz.cuni.amis.utils.exception.PogamutException
Starts the object. If no exception is thrown we assume that the object has been correctly started and can be used.

May block.

Throws:
cz.cuni.amis.utils.exception.PogamutException

stop

void stop()
Tries to stop the work of this object carefully.

May block.


kill

void kill()
Kills the object - interrupt ruthlessly any work it might be doing.

This method should interrupt any threads the object may have.

Must not block!



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