com.evelopers.unimod.core.stateworks
Class Action

java.lang.Object
  extended bycom.evelopers.unimod.core.ModelElement
      extended bycom.evelopers.unimod.core.stateworks.Action
All Implemented Interfaces:
java.io.Serializable

public class Action
extends ModelElement

Action implements such State Machine abstractions as input action, output action, send event to state machine action

See Also:
Serialized Form

Field Summary
protected  java.lang.String actionName
           
protected  java.lang.String identifier
           
protected  ClassElement object
           
 
Fields inherited from class com.evelopers.unimod.core.ModelElement
listeners, name, NAME_PROPERTY, stereotype, STEREOTYPE_PROPERTY
 
Constructor Summary
protected Action(java.lang.String identifier)
          Creates action with given controllable object and name.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two actions.
 java.lang.String getActionName()
           
 java.lang.String getIdentifier()
          Returns identifier
 ClassElement getObject()
           
 int hashCode()
          Returns hashcode of controllable object and action name
 void setActionName(java.lang.String actionName)
           
 void setObject(ClassElement object)
           
 java.lang.String toString()
          Returns action's identifier
 
Methods inherited from class com.evelopers.unimod.core.ModelElement
accept, addPropertyChangeListener, firePropertyChange, getName, getStereotype, initListeners, removePropertyChangeListener, setName, setStereotype
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

protected java.lang.String identifier

object

protected ClassElement object

actionName

protected java.lang.String actionName
Constructor Detail

Action

protected Action(java.lang.String identifier)
Creates action with given controllable object and name.

Parameters:
identifier - an identifier like o1.z2
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Returns identifier

Returns:
identifier

getActionName

public java.lang.String getActionName()
Returns:
Returns the action.

getObject

public ClassElement getObject()
Returns:
Returns the object.

setActionName

public void setActionName(java.lang.String actionName)

setObject

public void setObject(ClassElement object)
Parameters:
object - The object to set.

equals

public boolean equals(java.lang.Object o)
Compares two actions. Actions equal if their actions names and their controllable objects equal.

Specified by:
equals in class ModelElement
Parameters:
o - another object
Returns:
boolean

hashCode

public int hashCode()
Returns hashcode of controllable object and action name

Specified by:
hashCode in class ModelElement
Returns:
hashcode

toString

public java.lang.String toString()
Returns action's identifier

Overrides:
toString in class ModelElement
Returns:
action's identifier