Scheduler Basic Data Type
The scheduler data exchange format being base on JSON, all the data types are based on the fundamental JSON types (String, Numeric and Boolean)
- Capacity should be Numeric Integers, if a floating point value is passed, behavior is NOT defined.
- Time references are expressed in Minutes, and are Numeric Integers, if a floating point value is passed it will be rounded using Banker's Rounding.
- Textual String will be displayed as text, and can hold any visible characters
- HTML String will be displayed as HTML, whether it involves user input or automatic generation, great care should be taken of protecting against XSS and JavaScript injection.
- ID String is used as internal identifier, its content only has meaning for the API, the only requirement is uniqueness
Time Ranges
Time ranges are defined as ranges with boundaries of size zero, and isolated times values have a duration of zero.
By convention, the capacity at time T is the capacity of the interval [T, T+1].
Ranges with a zero length (where upper boundary equals lower boundary) are invalid and will result in undefined behavior.
See also Calendars.