public Timeline() { this.timePoints = new ArrayList<TimePoint>();  timePoints.add(new TimePoint(DomainConstants.TIMELINE_START, AttributeType.NULL, AttributeType.NULL)); timePoints.add(new TimePoint(DomainConstants.TIMELINE_END, AttributeType.NULL));
public Timeline(WorkScheduleType workScheduleType) { timePoints = new ArrayList<TimePoint>(); timePoints.add(new TimePoint(workScheduleType.getWorkTime(), AttributeType.NULL, AttributeType.NULL)); timePoints.add(new TimePoint(workScheduleType.getWorkEndTime(), workScheduleType.isNextDay(), AttributeType.NULL));  List<TimePoint> pointList = new ArrayList<TimePoint>(); pointList.addAll((workScheduleType.getNormalWorkPeriod()).toTimePoints( AttributeType.NORMAL_WORK_PERIOD_1, AttributeType.NORMAL_WORK_PERIOD_2)); if (workScheduleType.definedFixedPeriod()) { pointList.addAll((workScheduleType.getFixedWorkPeriod()).toTimePoints( AttributeType.FIXED_PERIOD_1, AttributeType.FIXED_PERIOD_2)); } if (workScheduleType.definedMeal()) { pointList.addAll(((Meal) workScheduleType.getMeal()).toTimePoints()); } plotList(pointList);
    public Timeline() {        this.timePoints = new ArrayList<TimePoint>();        // adds a starting point at 00:00 with Null Time attribute      timePoints.add(new TimePoint(DomainConstants.TIMELINE_START, AttributeType.NULL, AttributeType.NULL));      timePoints.add(new TimePoint(DomainConstants.TIMELINE_END, AttributeType.NULL));    }