T - the concrete RuntimePlatform subclass type containing the actionpublic abstract class RuntimeMessageAction<T extends RuntimePlatform> extends RuntimeArtifactAction<T>
RuntimeAction processing a message.
This class takes a String message as its constructor parameter, and relies on
RuntimeContexts#fillContextValues(String) to pre-process it and replace context variable accesses by their
concrete value.
This class is only responsible of the pre-processing of the provided message, and does not provide any method to print it to the end user.
RuntimePlatform,
RuntimeContexts| Modifier and Type | Field and Description |
|---|---|
protected String |
message
The processed message.
|
DEFAULT_MESSAGE_DELAY, MESSAGE_DELAY_KEYruntimePlatform, session| Constructor and Description |
|---|
RuntimeMessageAction(T runtimePlatform,
XatkitSession session,
String rawMessage)
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMessage()
Returns the processed message.
|
beforeDelay, call, getClientSession, initcompute, getSessionprotected String message
This attribute is the result of calling RuntimeContexts#fillContextValues(String) on the
rawMessage constructor parameter. Concrete subclasses can use this attribute to print the processed
message to the end user.
RuntimeContexts#fillContextValues(String),
getMessage()public RuntimeMessageAction(T runtimePlatform, XatkitSession session, String rawMessage)
RuntimeMessageAction with the provided runtimePlatform, session, and
rawMessage.
This constructor stores the result of calling RuntimeContexts#fillContextValues(String) on
the rawMessage parameter. Concreted subclasses can use this attribute to print the processed message to
the end user.
runtimePlatform - the RuntimePlatform containing this actionsession - the XatkitSession associated to this actionrawMessage - the message to processNullPointerException - if the provided runtimePlatform or session is nullIllegalArgumentException - if the provided rawMessage is null or emptyXatkitSession,
RuntimeContextsprotected String getMessage()
Copyright © 2020 SOM Research Lab. All rights reserved.