public class MessageInfo
extends java.lang.Object
| Constructor and Description |
|---|
MessageInfo(java.lang.Object theMessage)
Create a new instance of MessageInfo.
|
MessageInfo(java.lang.String theCommID,
java.lang.Object theMessage)
Create a new instance of MessageInfo.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Get a copy of this
MessageInfo object. |
java.lang.String |
getCommID()
Get the message communication ID.
|
java.lang.String |
getInOut()
Get the input-output status of the message.
|
java.lang.Object |
getMessage()
Get the message.
|
java.lang.String |
getMessageState()
Get the state for the function that is being executed.
|
java.lang.String |
getServiceState()
Get the state for the auto service component itself.
|
long |
getTimeStamp()
Get the time the message was logged at.
|
boolean |
isSameID(MessageInfo thisMessage)
Return true if this message has the same ID as the one passed in.
|
boolean |
isSameObj(MessageInfo thisMessage)
Return true if this message is the same object the one passed in.
|
void |
setCommID(java.lang.String theCommID)
Set the message communication ID.
|
void |
setInOut(java.lang.String theInOut)
Set whether an input or an output message type.
|
void |
setMessage(java.lang.Object theMessage)
Set the message value.
|
void |
setMessageState(java.lang.String theMessageState)
Set the state for the current function that is being executed.
|
void |
setServiceState(java.lang.String theServiceState)
Set the state for the auto service component itself.
|
void |
setTimeStamp()
Set the time stamp for the message.
|
void |
setTimeStamp(long theTimeStamp)
Set the time stamp for the message.
|
public MessageInfo(java.lang.Object theMessage)
theMessage - the message.public MessageInfo(java.lang.String theCommID,
java.lang.Object theMessage)
theCommID - a message communication ID or key.theMessage - the message. The can also be a client URI.public void setMessage(java.lang.Object theMessage)
theMessage - the value of message.public java.lang.Object getMessage()
public void setCommID(java.lang.String theCommID)
theCommID - the communication ID.public java.lang.String getCommID()
public void setTimeStamp()
Date.getTime().public void setTimeStamp(long theTimeStamp)
Date.getTime().theTimeStamp - a time stamp for the message instance.public long getTimeStamp()
Date.getTime().public void setInOut(java.lang.String theInOut)
theInOut - the value indicating an input or an output message type.public java.lang.String getInOut()
public void setMessageState(java.lang.String theMessageState)
theMessageState - the service function state.public java.lang.String getMessageState()
public void setServiceState(java.lang.String theServiceState)
theServiceState - the auto component's state.public java.lang.String getServiceState()
public boolean isSameObj(MessageInfo thisMessage)
thisMessage - the message to compare to.public boolean isSameID(MessageInfo thisMessage)
thisMessage - the message to compare to.public java.lang.Object clone()
MessageInfo object.clone in class java.lang.Object