public class RMessageEvent extends RProcessableElement implements IMessageEvent
Modifier and Type | Class and Description |
---|---|
class |
RMessageEvent.RParam |
class |
RMessageEvent.RParamSet |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
msg
The message.
|
protected MessageType |
mt
The message type.
|
Constructor and Description |
---|
RMessageEvent(MMessageEvent modelelement,
IInternalAccess agent,
MConfigParameterElement config)
Create a new runtime element.
|
RMessageEvent(MMessageEvent modelelement,
java.util.Map<java.lang.String,java.lang.Object> msg,
MessageType mt,
IInternalAccess agent)
Create a new runtime element.
|
Modifier and Type | Method and Description |
---|---|
IParameter |
createParameter(MParameter modelelement,
java.lang.String name,
IInternalAccess agent,
java.lang.Object value) |
IParameter |
createParameter(MParameter modelelement,
java.lang.String name,
IInternalAccess agent,
UnparsedExpression inival) |
IParameterSet |
createParameterSet(MParameter modelelement,
java.lang.String name,
IInternalAccess agent,
java.util.List<UnparsedExpression> inivals) |
IParameterSet |
createParameterSet(MParameter modelelement,
java.lang.String name,
IInternalAccess agent,
java.lang.Object values) |
java.lang.String |
getFetcherName()
Get the name of the element in the fetcher (e.g.
|
java.lang.Object |
getMessage()
Get the native (platform specific) message object.
|
MessageType |
getMessageType()
Get the message type.
|
MMessageEvent |
getMMessageEvent() |
IParameter |
getParameter(java.lang.String name)
Get the parameter element.
|
IParameter[] |
getParameters()
Get all parameters.
|
IParameterSet |
getParameterSet(java.lang.String name)
Get the parameter set element.
|
IParameterSet[] |
getParameterSets()
Get all parameter sets.
|
boolean |
hasParameter(java.lang.String name)
Has the element a parameter element.
|
boolean |
hasParameterSet(java.lang.String name)
Has the element a parameter set element.
|
void |
initParameters(java.util.Map<java.lang.String,java.lang.Object> vals,
MConfigParameterElement config)
Create the parameters from model spec.
|
java.lang.String |
toString()
Get the string represntation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
getModelElement
protected java.util.Map<java.lang.String,java.lang.Object> msg
protected MessageType mt
public RMessageEvent(MMessageEvent modelelement, IInternalAccess agent, MConfigParameterElement config)
public RMessageEvent(MMessageEvent modelelement, java.util.Map<java.lang.String,java.lang.Object> msg, MessageType mt, IInternalAccess agent)
public void initParameters(java.util.Map<java.lang.String,java.lang.Object> vals, MConfigParameterElement config)
public java.lang.String getFetcherName()
public IParameter createParameter(MParameter modelelement, java.lang.String name, IInternalAccess agent, UnparsedExpression inival)
public IParameterSet createParameterSet(MParameter modelelement, java.lang.String name, IInternalAccess agent, java.util.List<UnparsedExpression> inivals)
public IParameter createParameter(MParameter modelelement, java.lang.String name, IInternalAccess agent, java.lang.Object value)
public IParameterSet createParameterSet(MParameter modelelement, java.lang.String name, IInternalAccess agent, java.lang.Object values)
public IParameter[] getParameters()
getParameters
in interface IParameterElement
public IParameterSet[] getParameterSets()
getParameterSets
in interface IParameterElement
public IParameter getParameter(java.lang.String name)
getParameter
in interface IParameterElement
name
- The name.public IParameterSet getParameterSet(java.lang.String name)
getParameterSet
in interface IParameterElement
name
- The name.public boolean hasParameter(java.lang.String name)
hasParameter
in interface IParameterElement
name
- The name.public boolean hasParameterSet(java.lang.String name)
hasParameterSet
in interface IParameterElement
name
- The name.public java.lang.Object getMessage()
getMessage
in interface IMessageEvent
public MessageType getMessageType()
getMessageType
in interface IMessageEvent
public MMessageEvent getMMessageEvent()
public java.lang.String toString()