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
Modifier and TypeFieldDescriptionprotected String
Further information about this event.protected LocalTime
Fields inherited from class eu.iv4xr.framework.mainConcepts.ObservationEvent
familyName
-
Constructor Summary
ConstructorDescriptionTimeStampedObservationEvent(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 TypeMethodDescriptionboolean
getInfo()
Get the event's description string, if it has any (else it returns a null).Get the event time-stamp.int
hashCode()
(package private) ObservationEvent.TimeStampedObservationEvent
parseWorker(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:
equals
in classObservationEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classObservationEvent
-
toString
- Overrides:
toString
in classObservationEvent
-
parse
- Specified by:
parse
in interfaceParsable
- Overrides:
parse
in classObservationEvent
-
parseWorker
-