java.lang.Object
com.dna.jopt.member.unit.nodeedge.time.TimeDef

public class TimeDef extends Object
Defines a time-of-day window used for intra-day scheduling constraints.

startTime and endTime are serialized as ISO-8601 local time strings (e.g. "08:00:00"). When created via of(LocalTime), both fields are set to the same instant (point-in-time rather than a window).

  • Method Details

    • of

      public static TimeDef of(LocalTime startTime, LocalTime endTime)
      Creates a time window between startTime and endTime.
    • of

      public static TimeDef of(LocalTime startTime)
      Creates a point-in-time definition where start and end are the same instant.
    • getStartTime

      public LocalTime getStartTime()
    • getEndTime

      public LocalTime getEndTime()