Generated on Mon Aug 25 11:35:45 2008 for Gecode by doxygen 1.5.6

crew.cc File Reference

(Revision: 5815)

#include "gecode/set.hh"
#include "examples/support.hh"

Go to the source code of this file.

Classes

class  Crew
 Example: Airline crew allocation More...

Enumerations

enum  Employee {
  Tom, David, Jeremy, Ron,
  Joe, Bill, Fred, Bob,
  Mario, Ed, Carol, Janet,
  Tracy, Marilyn, Carolyn, Cathy,
  Inez, Jean, Heather, Juliet
}
 The airline employees. More...

Variables

const int noOfStewards = sizeof(stewards) / sizeof(int)
 The number of stewards.
const int noOfHostesses = sizeof(hostesses) / sizeof(int)
 The number of hostesses.
const int spanishSpeaking []
 The Spanish speaking employees.
const int noOfSpanishSpeaking = sizeof(spanishSpeaking) / sizeof(int)
 The number of Spanish speaking employees.
const int frenchSpeaking []
 The French speaking employees.
const int noOfFrenchSpeaking = sizeof(frenchSpeaking) / sizeof(int)
 The number of French speaking employees.
const int germanSpeaking []
 The German speaking employees.
const int noOfGermanSpeaking = sizeof(germanSpeaking) / sizeof(int)
 The number of German speaking employees.
const Flight requiredCrew []
 The flights to schedule.
const int noOfFlights = sizeof(requiredCrew) / sizeof(Flight)
 The number of flights to schedule.


Enumeration Type Documentation

enum Employee

The airline employees.

Enumerator:
Tom 
David 
Jeremy 
Ron 
Joe 
Bill 
Fred 
Bob 
Mario 
Ed 
Carol 
Janet 
Tracy 
Marilyn 
Carolyn 
Cathy 
Inez 
Jean 
Heather 
Juliet 

Definition at line 46 of file crew.cc.


Variable Documentation

int staff

Overall number of cabin crew needed.

Definition at line 58 of file crew.cc.

const int stewards

Initial value:

How many stewards are required.

The stewards.

Definition at line 59 of file crew.cc.

const int hostesses

Initial value:

How many hostesses are required.

The hostesses.

Definition at line 60 of file crew.cc.

int french

How many French speaking employees are required.

Definition at line 61 of file crew.cc.

int spanish

How many Spanish speaking employees are required.

Definition at line 62 of file crew.cc.

int german

How many German speaking employees are required.

Definition at line 63 of file crew.cc.

const int noOfStewards = sizeof(stewards) / sizeof(int)

The number of stewards.

Definition at line 245 of file crew.cc.

const int noOfHostesses = sizeof(hostesses) / sizeof(int)

The number of hostesses.

Definition at line 251 of file crew.cc.

const int spanishSpeaking

Initial value:

The Spanish speaking employees.

Definition at line 263 of file crew.cc.

const int noOfSpanishSpeaking = sizeof(spanishSpeaking) / sizeof(int)

The number of Spanish speaking employees.

Definition at line 266 of file crew.cc.

const int frenchSpeaking

Initial value:

    { Bill, Inez, Jean, Juliet }
The French speaking employees.

Definition at line 253 of file crew.cc.

const int noOfFrenchSpeaking = sizeof(frenchSpeaking) / sizeof(int)

The number of French speaking employees.

Definition at line 256 of file crew.cc.

const int germanSpeaking

Initial value:

The German speaking employees.

Definition at line 258 of file crew.cc.

const int noOfGermanSpeaking = sizeof(germanSpeaking) / sizeof(int)

The number of German speaking employees.

Definition at line 261 of file crew.cc.

const Flight requiredCrew

Initial value:

    { {4,1,1,1,1,1},
      {5,1,1,1,1,1},
      {5,1,1,1,1,1},
      {6,2,2,1,1,1},
      {7,3,3,1,1,1},
      {4,1,1,1,1,1},
      {5,1,1,1,1,1},
      {6,1,1,1,1,1},
      {6,2,2,1,1,1},
      {7,3,3,1,1,1} }
The flights to schedule.

Definition at line 269 of file crew.cc.

const int noOfFlights = sizeof(requiredCrew) / sizeof(Flight)

The number of flights to schedule.

Definition at line 282 of file crew.cc.