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

Safe HaskellNone
LanguageHaskell2010

WeekDaze.Model.Traverse

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Provides the sequence of coordinates, required to traverse the conceptually 3-D-timetable, in the required order.
  • Defines the type of an unspecified function, which can be folded over these coordinates, to sequentially receive any lesson-definitions from the timetable.
Synopsis

Functions

generateRasterCoordinates Source #

Arguments

:: Axes

Defines the order & sense, in which the axes of a timetable are traversed.

-> [observerId]

Defines the keys into the outer map of a timetable.

-> [timeslotId]

Defines the keys in the enclosed array.

-> Vector observerId timeslotId 
  • Generate the Vector defining a raster-scan through the time-slot's in a timetable.
  • The first axis specified, changes the least frequently during the raster-scan, & the last specified, changes the most frequently.