org.malai.interaction.library
Class EscapeKeyPressureTransition

java.lang.Object
  extended by org.malai.interaction.Transition
      extended by org.malai.interaction.KeyboardTransition
          extended by org.malai.interaction.KeyPressureTransition
              extended by org.malai.interaction.library.EscapeKeyPressureTransition
All Implemented Interfaces:
ITransition

public class EscapeKeyPressureTransition
extends KeyPressureTransition

This transition should be used to cancel an interaction using key ESCAPE.
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.

08/18/2011

Since:
0.2
Author:
Arnaud BLOUIN

Field Summary
 
Fields inherited from class org.malai.interaction.KeyboardTransition
key, source
 
Fields inherited from class org.malai.interaction.Transition
hid, inputState, outputState
 
Constructor Summary
EscapeKeyPressureTransition(SourceableState inputState, TargetableState outputState)
          Creates the transition.
 
Method Summary
 boolean isGuardRespected()
           
 
Methods inherited from class org.malai.interaction.KeyboardTransition
getKey, getSource, setKey, setSource
 
Methods inherited from class org.malai.interaction.Transition
action, getHid, getInputState, getOutputState, setHid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EscapeKeyPressureTransition

public EscapeKeyPressureTransition(SourceableState inputState,
                                   TargetableState outputState)
Creates the transition.

Parameters:
inputState - The source state.
outputState - The target state.
Since:
0.2
Method Detail

isGuardRespected

public boolean isGuardRespected()
Specified by:
isGuardRespected in interface ITransition
Overrides:
isGuardRespected in class Transition
Returns:
True: the condition defining if the transition can be executed is correct. By default: true. Should be overridden.