Package eu.iv4xr.framework.mainConcepts
Class ObservationEvent.TimeStampedObservationEvent
java.lang.Object
eu.iv4xr.framework.mainConcepts.ObservationEvent
eu.iv4xr.framework.mainConcepts.ObservationEvent.TimeStampedObservationEvent
- All Implemented Interfaces:
Serializable,Parsable
- Direct Known Subclasses:
ObservationEvent.ScalarTracingEvent,ObservationEvent.VerdictEvent
- Enclosing class:
- ObservationEvent
This class is used to represent observation-events that need to be
time-stamped.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.iv4xr.framework.mainConcepts.ObservationEvent
ObservationEvent.CoveragePointEvent, ObservationEvent.ScalarTracingEvent, ObservationEvent.TimeStampedObservationEvent, ObservationEvent.VerdictEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringFurther information about this event.protected LocalTimeFields inherited from class eu.iv4xr.framework.mainConcepts.ObservationEvent
familyName -
Constructor Summary
ConstructorsConstructorDescriptionTimeStampedObservationEvent(String familyName)Create a time-stamped observation-event with the given id.TimeStampedObservationEvent(String familyName, String info)Create a time-stamped observation-event. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetInfo()Get the event's description string, if it has any (else it returns a null).Get the event time-stamp.inthashCode()(package private) ObservationEvent.TimeStampedObservationEventparseWorker(String[] parts)toString()Methods inherited from class eu.iv4xr.framework.mainConcepts.ObservationEvent
getFamilyName
-
Field Details
-
timestamp
-
info
Further information about this event. It can be null, or something that is not an empty string.
-
-
Constructor Details
-
TimeStampedObservationEvent
TimeStampedObservationEvent() -
TimeStampedObservationEvent
Create a time-stamped observation-event. The stamped time is the time of this creation.- Parameters:
familyName- A name to classify this event as belonging to the said family.info- Additional information to describe the event.
-
TimeStampedObservationEvent
Create a time-stamped observation-event with the given id. The stamped time is the time of this creation.
-
-
Method Details
-
getTimestamp
Get the event time-stamp. -
getInfo
Get the event's description string, if it has any (else it returns a null). -
equals
- Overrides:
equalsin classObservationEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classObservationEvent
-
toString
- Overrides:
toStringin classObservationEvent
-
parse
- Specified by:
parsein interfaceParsable- Overrides:
parsein classObservationEvent
-
parseWorker
-