Package org.opentcs.data
Class ObjectHistory.Entry
java.lang.Object
org.opentcs.data.ObjectHistory.Entry
- All Implemented Interfaces:
Serializable
- Enclosing class:
ObjectHistory
An entry/event in a history.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with the timestamp set to the current point of time and an empty supplement.Creates a new instance with the timestamp set to the current point of time.Creates a new instance with an empty supplement.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns this entry's event code.Returns a supplemental object providing details about the event.Returns this entry's timestamp.toString()
-
Constructor Details
-
Entry
Creates a new instance.- Parameters:
timestamp
- The point of time at which the event occured.eventCode
- A code identifying the event that occured.supplement
- Supplementary information about the event. Must beSerializable
and should provide a human-readable default representation from itstoString()
method.
-
Entry
Creates a new instance with an empty supplement.- Parameters:
timestamp
- The point of time at which the event occured.eventCode
- A code identifying the event that occured.
-
Entry
Creates a new instance with the timestamp set to the current point of time.- Parameters:
eventCode
- A code identifying the event that occured.supplement
- Supplementary information about the event. Must beSerializable
and should provide a human-readable default representation from itstoString()
method.
-
Entry
Creates a new instance with the timestamp set to the current point of time and an empty supplement.- Parameters:
eventCode
- A code identifying the event that occured.
-
-
Method Details
-
getTimestamp
Returns this entry's timestamp.- Returns:
- This entry's timestamp.
-
getEventCode
Returns this entry's event code.- Returns:
- This entry's event code.
-
getSupplement
Returns a supplemental object providing details about the event.- Returns:
- A supplemental object providing details about the event.
-
toString
-