Package effort

Class EffortDataUnit

All Implemented Interfaces:
Comparable
Direct Known Subclasses:
DataMapEffortThing, FormsEffortUnit

public class EffortDataUnit extends PamDataUnit
  • Field Details

    • ONGOINGEFFORT

      public static final long ONGOINGEFFORT
      Value for effort end to say that effort is ongoing.
      See Also:
  • Constructor Details

    • EffortDataUnit

      public EffortDataUnit(EffortProvider effortProvider, PamDataUnit referenceDataUnit, long effortStart, long effortEnd)
  • Method Details

    • getEffortStart

      public long getEffortStart()
      Returns:
      Start of effort period.
    • getEffortEnd

      public long getEffortEnd()
      Returns:
      End of effort period.
    • setEffortEnd

      public void setEffortEnd(long endTime)
      Set the effort end time
      Parameters:
      endTime -
    • inEffort

      public boolean inEffort(long timeMilliseconds)
      Parameters:
      timeMilliseconds -
      Returns:
      time is in effort period
    • getEffortDescription

      public String getEffortDescription()
      Description of the effort, for tool tips, etc.
      Returns:
    • getReferenceDataUnit

      public PamDataUnit getReferenceDataUnit()
      Returns:
      the referenceDataUnit
    • setReferenceDataUnit

      public void setReferenceDataUnit(PamDataUnit referenceDataUnit)
      Parameters:
      referenceDataUnit - the referenceDataUnit to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(PamDataUnit o)
      Overrides:
      compareTo in class PamDataUnit