Interface DayData


public interface DayData
Model class representing a day with date, time for begin and end of work, activities etc.
  • Method Details

    • getDate

      LocalDate getDate()
      Get the date of this day.
      Returns:
      the date of this day.
    • getType

      DayType getType()
      Get the DayType of this day.
      Returns:
      the DayType of this day.
    • getBegin

      LocalTime getBegin()
      Get the begin working time of this day.
      Returns:
      the begin working time of this day.
    • getEnd

      LocalTime getEnd()
      Get the end working time of this day.
      Returns:
      the end working time of this day.
    • getInterruption

      Duration getInterruption()
      Get the duration of the interruption of this day.
      Returns:
      the duration of the interruption of this day.
    • getWorkingHours

      Duration getWorkingHours()
      Get the working hours of this day.
      Returns:
      the working hours of this day.
    • getComment

      String getComment()
      Get the comment of this day.
      Returns:
      the comment of this day.
    • setDate

      void setDate(LocalDate date)
      Set the date for this day.
      Parameters:
      date - the new date.
    • setType

      void setType(DayType type)
      Set the DayType for this day.
      Parameters:
      type - the new DayType.
    • setBegin

      void setBegin(LocalTime begin)
      Set the begin time for this day.
      Parameters:
      begin - the new begin time.
    • setEnd

      void setEnd(LocalTime end)
      Set the end time for this day.
      Parameters:
      end - the new end time.
    • setWorkingHours

      void setWorkingHours(Duration workingHours)
      Set the working hours for this day.
      Parameters:
      workingHours - the new working hours.
    • setComment

      void setComment(String comment)
      Set the comment for this day.
      Parameters:
      comment - the new comment.
    • setInterruption

      void setInterruption(Duration interruption)
      Set the duration of the interruption for this day.
      Parameters:
      interruption - the new duration of the interruption.
    • getActivities

      List<ActivityData> getActivities()
      Get the the ActivityDatas for this day.
      Returns:
      the ActivityDatas for this day.
    • setActivities

      void setActivities(List<ActivityData> activities)
      Set the ActivityDatas for this day.
      Parameters:
      activities - new new activities.