public class RMessageEvent<T> extends RProcessableElement implements IMessageEvent<T>
Modifier and Type | Class and Description |
---|---|
class |
RMessageEvent.RParam |
class |
RMessageEvent.RParamSet |
Constructor and Description |
---|
RMessageEvent(MMessageEvent modelelement,
IInternalAccess agent,
MConfigParameterElement config)
Create a new runtime element.
|
RMessageEvent(MMessageEvent modelelement,
T msg,
IInternalAccess agent,
RMessageEvent<T> original)
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) |
protected BeanProperty |
findBeanProperty(java.lang.String name) |
java.lang.String |
getFetcherName()
Get the name of the element in the fetcher (e.g.
|
T |
getMessage()
Get the native (platform specific) message object.
|
MMessageEvent |
getMMessageEvent() |
RMessageEvent<T> |
getOriginal()
Get the original message event (if this is a reply).
|
IParameter |
getParameter(java.lang.String name)
Get the parameter element.
|
IParameterSet |
getParameterSet(java.lang.String name)
Get the parameter set element.
|
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.
|
boolean |
isAdopted()
Check if the element is currently part of the agent's reasoning.
|
java.lang.String |
toString()
Get the string represntation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameters, getParameterSets, getType
getModelElement
protected T msg
public RMessageEvent(MMessageEvent modelelement, IInternalAccess agent, MConfigParameterElement config)
public RMessageEvent(MMessageEvent modelelement, T msg, IInternalAccess agent, RMessageEvent<T> original)
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 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 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 T getMessage()
getMessage
in interface IMessageEvent<T>
public RMessageEvent<T> getOriginal()
public MMessageEvent getMMessageEvent()
public java.lang.String toString()
protected BeanProperty findBeanProperty(java.lang.String name)
public boolean isAdopted()