it.amattioli.workstate.actions
Class AbstractTransitionAction

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.actions.AbstractTransitionAction
All Implemented Interfaces:
TransitionAction
Direct Known Subclasses:
BeanShellTransitionAction, NullTransitionAction

public abstract class AbstractTransitionAction
extends Object
implements TransitionAction


Constructor Summary
AbstractTransitionAction()
           
 
Method Summary
 boolean equals(Object o)
          Generally speaking two actions are considered equals if they have the same class.
 int hashCode()
           
 void undoAction(AttributeReader event, AttributeHandler state)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.amattioli.workstate.actions.TransitionAction
doAction
 

Constructor Detail

AbstractTransitionAction

public AbstractTransitionAction()
Method Detail

equals

public boolean equals(Object o)
Generally speaking two actions are considered equals if they have the same class. Implementations can partially redefine this behavior adding other conditions but leaving this condition unaltered. For example, if the behavior of an action depends on the value of a parameter passed to the constructor you can redefine the equals method so it returns true if two actions have the same class and the same value of the parameter.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

undoAction

public void undoAction(AttributeReader event,
                       AttributeHandler state)
Specified by:
undoAction in interface TransitionAction


Copyright © 2011. All Rights Reserved.