|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.component.controller.ComponentControlHelper
public class ComponentControlHelper
Provides empty implementations of life-cycle methods defined by IComponentControlHelper - override only these that you need.
| Constructor Summary | |
|---|---|
ComponentControlHelper()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentControlHelper()
| Method Detail |
|---|
public void kill()
IComponentControlHelper
Called whenever IFatalErrorEvent is caught.
Must not throw any exception whatsoever.
kill in interface IComponentControlHelper
public 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.PogamutException
public 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 IComponentControlHelper
public 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.PogamutException
public 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.PogamutException
public 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.PogamutException
public void start()
throws cz.cuni.amis.utils.exception.PogamutException
IComponentControlHelper
start in interface IComponentControlHelpercz.cuni.amis.utils.exception.PogamutException
public 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.PogamutException
public 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.PogamutException
public 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.PogamutException
public 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.PogamutExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||