T - Any Serializable class embedded in the StatusMessageD - The class of the encoded object.public abstract class StatusMessage<T extends Serializable,D> extends BusMessage<T,D>
obj| Constructor and Description |
|---|
StatusMessage(Class clazz,
byte[] ser)
Build a StatusMessage containing an already serialized object.
|
StatusMessage(T obj)
Build a StatusMessage from the provided Object.
|
| Modifier and Type | Method and Description |
|---|---|
StateBundle |
getState()
Get the published State object that contains the Agent's internal state
at the moment the StatusMessage was published.
|
void |
setState(StateBundle state)
Set the StateBundle of this StatusMessage.
|
String |
toString() |
encodeObject, getCCSTimeStamp, getClassName, getDeserializationDuration, getDoneDeSerializationTime, getEncodedData, getObject, getOriginAgentInfo, getSerializationDuration, getSerializationTime, getTransferDuration, setOriginAgentInfopublic StatusMessage(Class clazz, byte[] ser)
clazz - The Class of the serialized object.ser - The serialized version of the object to be sent over the buses.public StatusMessage(T obj)
obj - The Serializable object to be sent over the buses.public void setState(StateBundle state)
state - The StateBundle representing the state of the Agent at
the time the message was sent.public StateBundle getState()
public String toString()
toString in class BusMessage<T extends Serializable,D>Copyright © 2019 LSST. All rights reserved.