|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IState
This interface defines the notion of state that composes a 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.
11/03/2010
Method Summary | |
---|---|
void |
addTransition(ITransition trans)
Adds a transition to the state. |
java.lang.String |
getName()
|
IStateMachine |
getStateMachine()
|
ITransition |
getTransition(int index)
|
java.util.List<ITransition> |
getTransitions()
|
void |
setStateMachine(IStateMachine sm)
Sets the state machine of the state. |
Method Detail |
---|
void addTransition(ITransition trans)
trans
- The new transition. Must not be null.java.lang.String getName()
java.util.List<ITransition> getTransitions()
ITransition getTransition(int index)
index
- The position of the transition to get.
void setStateMachine(IStateMachine sm)
sm
- The new state machine. If null, nothing is done.IStateMachine getStateMachine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |