Package org.jreliability.common
Class Occurrence<T>
java.lang.Object
org.jreliability.common.Occurrence<T>
- Type Parameters:
T
- the object that is effected by the occurrence
- All Implemented Interfaces:
Comparable<Occurrence<T>>
- Direct Known Subclasses:
Failure
The
Occurrence
represents an occurrence or event, e.g., the failure
or repair of an object at a given time.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOccurrence
(T t, double time) Constructs anOccurrence
with a given object and the time. -
Method Summary
-
Field Details
-
t
The elementT
. -
time
The time of the occurrence.
-
-
Constructor Details
-
Occurrence
Constructs anOccurrence
with a given object and the time.- Parameters:
t
- the objecttime
- the time
-
-
Method Details
-
getObject
Returns the object.- Returns:
- the object
-
getTime
public double getTime()Returns the time.- Returns:
- the time
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-