|
|||||||||
| 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.SharedComponentController.ControlHelper
protected class SharedComponentController.ControlHelper

| Field Summary | |
|---|---|
protected IAgentId |
agentId
|
| Constructor Summary | |
|---|---|
SharedComponentController.ControlHelper(IAgentId agentId)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IAgentId agentId
| Constructor Detail |
|---|
public SharedComponentController.ControlHelper(IAgentId agentId)
| Method Detail |
|---|
public void preStart()
throws PogamutException
IComponentControlHelperIStartingEvent of the component is broadcast.
You may need to prepare some stuff before starting event is generated
preStart in interface IComponentControlHelperPogamutException
public void start()
throws PogamutException
IComponentControlHelper
start in interface IComponentControlHelperPogamutException
public void preStartPaused()
throws PogamutException
IComponentControlHelperIStartingPausedEvent of the component is broadcast.
You may need to prepare some stuff before starting event is generated.
preStartPaused in interface IComponentControlHelperPogamutException
public void startPaused()
throws 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 IComponentControlHelperPogamutException
public void prePause()
throws PogamutException
IComponentControlHelperIPausingEvent of the component is broadcast.
You may need to pre-clean some stuff.
prePause in interface IComponentControlHelperPogamutException
public void pause()
throws PogamutException
IComponentControlHelper
Called whenever IPausingEvent is caught from one of the dependencies.
pause in interface IComponentControlHelperPogamutException
public void preResume()
throws PogamutException
IComponentControlHelperIResumingEvent of the component is broadcast.
You may need to pre-clean some stuff.
preResume in interface IComponentControlHelperPogamutException
public void resume()
throws PogamutException
IComponentControlHelper
Called whenever IResumingEvent is caught from one of the dependencies.
resume in interface IComponentControlHelperPogamutException
public void preStop()
throws PogamutException
IComponentControlHelperIStoppingEvent of the component is broadcast.
You may need to pre-clean some stuff.
preStop in interface IComponentControlHelperPogamutException
public void stop()
throws PogamutException
IComponentControlHelperIt should throw an exception if the component can't be stopped.
stop in interface IComponentControlHelperPogamutExceptionpublic void kill()
IComponentControlHelper
Called whenever IFatalErrorEvent is caught.
Must not throw any exception whatsoever.
kill in interface IComponentControlHelper
public void reset()
throws PogamutException
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 IComponentControlHelperPogamutException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||