Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.coaching.ShiftWorkCoach.Schedule Class Reference

Classes

class  WorkDay
 

Public Member Functions

void addWorkDay (double start_date, double end_date)
 
void addWorkDays (JSONArray workDays)
 
JSONArray scheduleToJSONArray ()
 
String toString ()
 

Detailed Description

Representation of the Shift work schedule.

A schedule should contain a list of work days ASC by start time.
Free days do not have to be added to the schedule, only the start and end times of a work day.

Author
ted@s.nosp@m.ense.nosp@m..nl

Member Function Documentation

void nl.sense_os.cortex.coaching.ShiftWorkCoach.Schedule.addWorkDay ( double  start_date,
double  end_date 
)

Add a work day to the schedule

Adding work days should be done in increasing order of time

Parameters
start_dateThe epoch work day start date in seconds
end_dateThe epoch work day end date in seconds
void nl.sense_os.cortex.coaching.ShiftWorkCoach.Schedule.addWorkDays ( JSONArray  workDays)

Add a list of work days to the schedule

Parameters
workDaysA JSONArray with JSONObjects which contain the fields start_date and end_date with the work day its start date and end date in epoch seconds resp.

The documentation for this class was generated from the following file: