com.evelopers.unimod.runtime.context
Class Parameter

java.lang.Object
  extended bycom.evelopers.unimod.runtime.context.Parameter
All Implemented Interfaces:
java.io.Serializable

public class Parameter
extends java.lang.Object
implements java.io.Serializable

Represents Event parameter. In spite of the fact it's placed in statical core package, actually it is being used only during runtime.

See Also:
Serialized Form

Constructor Summary
Parameter(java.lang.String name, java.lang.Object value)
          Creates parameter with given name and value.
 
Method Summary
 void addToContext(StateMachineContext.Context context)
          Method addToContext adds parameter to given context.
 java.lang.String getName()
           
 java.lang.Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(java.lang.String name,
                 java.lang.Object value)
Creates parameter with given name and value.

Parameters:
name - parameter name
value - parameter value
Method Detail

addToContext

public void addToContext(StateMachineContext.Context context)
Method addToContext adds parameter to given context. Usually, target context is EventContext.

Parameters:
context - context to add parameter to

getName

public java.lang.String getName()

getValue

public java.lang.Object getValue()