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>
| Constructor and Description |
|---|
StatusMessage(T obj,
StateBundle state)
Build a StatusMessage from the provided Object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSerializedObject()
Deprecated.
|
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)
Deprecated.
|
String |
toString() |
encodeObject, getClassName, getEncodedData, getObject, getOriginAgentInfo, getTimeStamp, setOriginAgentInfopublic StatusMessage(T obj, StateBundle state)
obj - The Serializable object to be sent over the buses.state - The State of the Agent at the time the object is created.@Deprecated public void setState(StateBundle state)
state - The StateBundle object.@Deprecated public byte[] getSerializedObject()
getSerializedObject in class BusMessage<T extends Serializable,D>public StateBundle getState()
public String toString()
toString in class BusMessage<T extends Serializable,D>Copyright © 2015 LSST. All rights reserved.