com.evelopers.unimod.runtime.context
Class Parameter
java.lang.Object
com.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter
public Parameter(java.lang.String name,
java.lang.Object value)
- Creates parameter with given name and value.
- Parameters:
name
- parameter namevalue
- parameter value
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()