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

Package class diagram package IControllable

@MXBean
public interface IControllable

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

Must remain compatible with IStartable.

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 be blocking!

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

stop

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

May be blocking!


kill

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

This method should interrupt any threads the object may have.

May be blocking!



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