public class ContextEventProperties extends ReferenceableProperties
ContextEventProperties holds properties that are used for displaying details of context event.
  • Constructor Details

    • ContextEventProperties

      public ContextEventProperties()
      Default constructor
    • ContextEventProperties

      public ContextEventProperties(ContextEventProperties template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - object to copy
  • Method Details

    • getEventEffect

      public String getEventEffect()
      Set up the effect of the event.
      Returns:
      string version name
    • setEventEffect

      public void setEventEffect(String eventEffect)
      Set up the effect of the event.
      Parameters:
      eventEffect - string version name
    • getPlannedStartDate

      public Date getPlannedStartDate()
      Return the planned start date for the event.
      Returns:
      date
    • setPlannedStartDate

      public void setPlannedStartDate(Date plannedStartDate)
      Set up the planned start date for the event.
      Parameters:
      plannedStartDate - date
    • getActualStartDate

      public Date getActualStartDate()
      Return the actual start date for the event.
      Returns:
      date
    • setActualStartDate

      public void setActualStartDate(Date actualStartDate)
      Set up the actual start date for the event.
      Parameters:
      actualStartDate - date
    • getPlannedDuration

      public long getPlannedDuration()
      Return the number of milliseconds that the event is due to run for.
      Returns:
      long
    • setPlannedDuration

      public void setPlannedDuration(long plannedDuration)
      Set up the number of milliseconds that the event is due to run for.
      Parameters:
      plannedDuration - long
    • getActualDuration

      public long getActualDuration()
      Return the actual duration of the event in milliseconds.
      Returns:
      long
    • setActualDuration

      public void setActualDuration(long actualDuration)
      Set up the actual duration of the event in milliseconds.
      Parameters:
      actualDuration - long
    • getRepeatInterval

      public long getRepeatInterval()
      Return the number of milliseconds between repeated occurrences of the event.
      Returns:
      long
    • setRepeatInterval

      public void setRepeatInterval(long repeatInterval)
      Set up the number of milliseconds between repeated occurrences of the event.
      Parameters:
      repeatInterval - long
    • getPlannedCompletionDate

      public Date getPlannedCompletionDate()
      Return the expected completion date for this event.
      Returns:
      date
    • setPlannedCompletionDate

      public void setPlannedCompletionDate(Date plannedCompletionDate)
      Set up the expected completion date for this event.
      Parameters:
      plannedCompletionDate - date
    • getActualCompletionDate

      public Date getActualCompletionDate()
      Return the actual date that the event ended.
      Returns:
      date
    • setActualCompletionDate

      public void setActualCompletionDate(Date actualCompletionDate)
      Set up the actual date that the event ended.
      Parameters:
      actualCompletionDate - date
    • getReferenceEffectiveFrom

      public Date getReferenceEffectiveFrom()
      Return the date to use as an effective from value in elements tied to the context event.
      Returns:
      date
    • setReferenceEffectiveFrom

      public void setReferenceEffectiveFrom(Date referenceEffectiveFrom)
      set up the date to use as an effective from value in elements tied to the context event.
      Parameters:
      referenceEffectiveFrom - date
    • getReferenceEffectiveTo

      public Date getReferenceEffectiveTo()
      Return the date to use as an effective to value in elements tied to the context event.
      Returns:
      date
    • setReferenceEffectiveTo

      public void setReferenceEffectiveTo(Date referenceEffectiveTo)
      Set up the date to use as an effective to value in elements tied to the context event.
      Parameters:
      referenceEffectiveTo - date
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ReferenceableProperties
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class ReferenceableProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class ReferenceableProperties
      Returns:
      int