|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.interaction.Transition
public abstract class Transition
A transition links two states of a state machine if a given condition is respected.
Actions can be performed when executing the transition.
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.
06/01/2010
Field Summary | |
---|---|
protected int |
hid
The ID of the HID that produced the transition. |
protected SourceableState |
inputState
The source state. |
protected TargetableState |
outputState
The target state. |
Constructor Summary | |
---|---|
Transition(SourceableState inputState,
TargetableState outputState)
Defines a transition. |
Method Summary | |
---|---|
void |
action()
Performs the actions to do when the transition is executed. |
int |
getHid()
|
SourceableState |
getInputState()
|
TargetableState |
getOutputState()
|
boolean |
isGuardRespected()
|
void |
setHid(int hid)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SourceableState inputState
protected TargetableState outputState
protected int hid
Constructor Detail |
---|
public Transition(SourceableState inputState, TargetableState outputState)
inputState
- The source state of the transition.outputState
- The target state of the transition.
java.lang.IllegalArgumentException
- If one of the given parameters is null or not valid.Method Detail |
---|
public void action()
ITransition
action
in interface ITransition
public boolean isGuardRespected()
isGuardRespected
in interface ITransition
public SourceableState getInputState()
getInputState
in interface ITransition
public TargetableState getOutputState()
getOutputState
in interface ITransition
public java.lang.String toString()
toString
in class java.lang.Object
public int getHid()
getHid
in interface ITransition
public void setHid(int hid)
setHid
in interface ITransition
hid
- The ID of the HID that produced the transition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |