org.malai.stateMachine
Interface ITransition
- All Known Implementing Classes:
- ButtonPressedTransition, CheckBoxTransition, DnD.Move4DnD, DnD.Release4DnD, DoubleClick.ReleaseTransition4DoubleClick, EscapeKeyPressureTransition, KeyboardTransition, KeyInteraction.KeyInteractionKeyPressedTransition, KeyPressureTransition, KeyReleaseTransition, KeysPressure.KeysPressureKeyPressedTransition, ListTransition, MenuItemTransition, MoveTransition, PointingDeviceTransition, PointInteraction.PointPressureTransition, PressureTransition, ReleaseTransition, Scrolling.ScrollingScrollTransition, ScrollTransition, SpinnerModified.SpinnerModifiedSpinnerTransition, SpinnerTransition, TabSelectedTransition, TextChangedTransition, TimeoutTransition, Transition, WindowClosedTransition
public interface ITransition
This interface defines the notion of transition of 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.
01/09/2011
- Since:
- 0.2
- Version:
- 0.2
- Author:
- Arnaud BLOUIN
action
void action()
- Performs the actions to do when the transition is executed.
Should be overridden.
- Since:
- 0.2
isGuardRespected
boolean isGuardRespected()
- Returns:
- True: the condition defining if the transition can be executed is correct.
By default: true. Should be overridden.
- Since:
- 0.2
getInputState
SourceableState getInputState()
- Returns:
- The source state of the transition.
- Since:
- 0.2
getOutputState
TargetableState getOutputState()
- Returns:
- The target state of the transition.
- Since:
- 0.2
getHid
int getHid()
- Returns:
- The ID of the HID that produced the transition.
- Since:
- 0.2
setHid
void setHid(int hid)
- Parameters:
hid
- The ID of the HID that produced the transition.- Since:
- 0.2