weekdaze-0.0.0.3: A school-timetable problem-solver.

Safe HaskellNone
LanguageHaskell2010

WeekDaze.Model.TimetableCoordinates

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines the coordinates, used to access any time-slot in the conceptually 3-D generic timetable.
  • Each time-slot can contain a lesson-definition.
Synopsis

Types

Type-synonyms

type Coordinates observerId timeslotId = (observerId, Time timeslotId) Source #

  • Each time-slot in a timetable is defined by three coordinates, though the two temporal coordinates (day & timeslot-id) have been paired to form a pseudo time.
  • The third coordinate, which depends on the intended observer, separates the weekly timetable for one observer, from those for all other observers of the same type.
  • The whole structure can be visualised as a cuboid, with an optional lesson defined at each Cartesian coordinate.

type Vector observerId timeslotId = [Coordinates observerId timeslotId] Source #

An ordered sequence of Coordinates.

Functions

Accessors

getObserverId :: Coordinates observerId timeslotId -> observerId Source #

Accessor.

getTime :: Coordinates observerId timeslotId -> Time timeslotId Source #

Accessor.