|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStateMachine
This interface defines the notion of state machine.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
01/09/2011
Method Summary | |
---|---|
void |
addState(IState state)
Adds a state to the state machine. |
boolean |
isRunning()
|
void |
onAborting()
Aborts the state machine. |
void |
onStarting()
Starts the state machine. |
void |
onTerminating()
Terminates the state machine. |
void |
onUpdating()
Updates the state machine. |
void |
reinit()
Reinits the state machine. |
void |
setActivated(boolean activated)
Defines if the state machine is activated. |
Method Detail |
---|
void onTerminating() throws MustAbortStateMachineException
MustAbortStateMachineException
- If something happens requiring the interaction to abort.void onAborting()
void onStarting() throws MustAbortStateMachineException
MustAbortStateMachineException
- If something happens requiring the interaction to abort.void onUpdating() throws MustAbortStateMachineException
MustAbortStateMachineException
- If something happens requiring the interaction to abort.void addState(IState state)
state
- The state to add. Must not be null.void reinit()
void setActivated(boolean activated)
activated
- True: the state machine will be activated.boolean isRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |