public class ComponentControlHelper extends Object implements IComponentControlHelper
IComponentControlHelper - override only these that you need.| Constructor and Description |
|---|
ComponentControlHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
kill()
Kills the component in ruthless way.
|
void |
pause()
Pauses the component.
|
void |
prePause()
Called before the
IPausingEvent of the component is broadcast. |
void |
preResume()
Called before the
IResumingEvent of the component is broadcast. |
void |
preStart()
Called before the
IStartingEvent of the component is broadcast. |
void |
preStartPaused()
Called before
IStartingPausedEvent of the component is broadcast. |
void |
preStop()
Called before the
IStoppingEvent of the component is broadcast. |
void |
reset()
Called whenever
IResetEvent is caught. |
void |
resume()
Resumes the component.
|
void |
start()
Starts the component.
|
void |
startPaused()
Starts the component but it assumes that the component just prepares whatever data
structures it needs / make connections / handshake whatever it needs with the environment / etc.
|
void |
stop()
Stops the component.
|
String |
toString() |
public void kill()
IComponentControlHelper
Called whenever IFatalErrorEvent is caught.
Must not throw any exception whatsoever.
kill in interface IComponentControlHelperpublic void prePause()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIPausingEvent of the component is broadcast.
You may need to pre-clean some stuff.
prePause in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void pause()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelper
Called whenever IPausingEvent is caught from one of the dependencies.
pause in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void reset()
IComponentControlHelperIResetEvent is caught. It should reinitialize data structures of the
component so it can be started again.
Should throw an exception in case that the component can't be reseted.
reset in interface IComponentControlHelperpublic void preResume()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIResumingEvent of the component is broadcast.
You may need to pre-clean some stuff.
preResume in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void resume()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelper
Called whenever IResumingEvent is caught from one of the dependencies.
resume in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void preStart()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIStartingEvent of the component is broadcast.
You may need to prepare some stuff before starting event is generated
preStart in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void start()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperstart in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void preStartPaused()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIStartingPausedEvent of the component is broadcast.
You may need to prepare some stuff before starting event is generated.
preStartPaused in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void startPaused()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIt should not let the agent to perform designers work (i.e., UT2004 bots should not start playing in the game).
After this call, the component should behave as it would have been paused with IComponentControlHelper.pause().
startPaused in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void preStop()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIStoppingEvent of the component is broadcast.
You may need to pre-clean some stuff.
preStop in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionpublic void stop()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelperIt should throw an exception if the component can't be stopped.
stop in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutExceptionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.