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

Safe HaskellNone
LanguageHaskell2010

WeekDaze.Model.TimetableAxis

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Names the axes of the conceptually 3-D data-structure of the timetable.
Synopsis

Types

Data-types

data Axis Source #

Defines the three orthogonal axes of a timetable.

Constructors

ObserverId

This axis spans the coordinates defined by the observerId, which is one of student-body, location-id, or teacher-id.

Day

This axis spans the days of the week.

TimeslotId

This axis spans the identifier of a time-slot, within a day.

Instances
Bounded Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Enum Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Methods

succ :: Axis -> Axis #

pred :: Axis -> Axis #

toEnum :: Int -> Axis #

fromEnum :: Axis -> Int #

enumFrom :: Axis -> [Axis] #

enumFromThen :: Axis -> Axis -> [Axis] #

enumFromTo :: Axis -> Axis -> [Axis] #

enumFromThenTo :: Axis -> Axis -> Axis -> [Axis] #

Eq Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Methods

(==) :: Axis -> Axis -> Bool #

(/=) :: Axis -> Axis -> Bool #

Read Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Show Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Methods

showsPrec :: Int -> Axis -> ShowS #

show :: Axis -> String #

showList :: [Axis] -> ShowS #

NFData Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Methods

rnf :: Axis -> () #

XmlPickler Axis Source # 
Instance details

Defined in WeekDaze.Model.TimetableAxis

Methods

xpickle :: PU Axis #

Constants

tag :: String Source #

Used to qualify XML.

range :: [Axis] Source #

The constant complete list of all values.

Functions

getOthers :: Axis -> [Axis] Source #

Returns those axes other than that specified.

getPerpendicular :: Axis -> Axis -> Axis Source #

Returns the axis perpendicular to the orthogonal pair specified.