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

public abstract class Occurrence<T> extends Object implements Comparable<Occurrence<T>>
The Occurrence represents an occurrence or event, e.g., the failure or repair of an object at a given time.
  • Field Details

    • t

      protected final T t
      The element T.
    • time

      protected final Double time
      The time of the occurrence.
  • Constructor Details

    • Occurrence

      public Occurrence(T t, double time)
      Constructs an Occurrence with a given object and the time.
      Parameters:
      t - the object
      time - the time
  • Method Details

    • getObject

      public T getObject()
      Returns the object.
      Returns:
      the object
    • getTime

      public double getTime()
      Returns the time.
      Returns:
      the time
    • compareTo

      public int compareTo(Occurrence<T> other)
      Specified by:
      compareTo in interface Comparable<T>