Class WeekendCalendarActivity

    • Constructor Detail

      • WeekendCalendarActivity

        public WeekendCalendarActivity​(DayOfWeek day)
        Constructs a new weekend calendar activity. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
        Parameters:
        day - the day of week that this activity is representing
        Since:
        1.0
      • WeekendCalendarActivity

        public WeekendCalendarActivity​(String name,
                                       DayOfWeek day)
        Constructs a new weekend calendar activity with the given name. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
        Parameters:
        name - the name of the activity
        day - the day of week that this activity is representing
        Since:
        1.0
      • WeekendCalendarActivity

        public WeekendCalendarActivity​(Instant startTime,
                                       Instant endTime,
                                       DayOfWeek day)
        Constructs a new weekend calendar activity with the start time and end time.
        Parameters:
        startTime - the start time of the activity
        endTime - the end time of the activity
        day - the day of week that this activity is representing
        Since:
        1.0
      • WeekendCalendarActivity

        public WeekendCalendarActivity​(String name,
                                       Instant startTime,
                                       Instant endTime,
                                       DayOfWeek day)
        Constructs a new weekend calendar activity with the given name, start time, and end time.
        Parameters:
        name - the name of the activity
        startTime - the start time of the activity
        endTime - the end time of the activity
        day - the day of week that this activity is representing
        Since:
        1.0
    • Method Detail

      • getDayOfWeek

        public final DayOfWeek getDayOfWeek()
        Returns the week day that this activity is representing, e.g. DayOfWeek.SUNDAY.
        Returns:
        the day of week represented by this activity
        Since:
        1.0