Generated on Wed Nov 1 15:04:49 2006 for Gecode by doxygen 1.4.5

crew.cc File Reference

(Revision: 3517)

#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  Employees {
  Tom, David, Jeremy, Ron,
  Joe, Bill, Fred, Bob,
  Mario, Ed, Carol, Janet,
  Tracy, Marilyn, Carolyn, Cathy,
  Inez, Jean, Heather, Juliet
}

Functions

const char * employeeToName (Employees e)
int main (int argc, char **argv)

Variables

const Employees employees []
const int lastEmployee = Juliet
const Employees stewards []
const int noOfStewards = 10
const Employees hostesses []
const int noOfHostesses = 10
const Employees frenchSpeaking []
const int noOfFrenchSpeaking = 4
const Employees germanSpeaking []
const int noOfGermanSpeaking = 5
const Employees spanishSpeaking []
const int noOfSpanishSpeaking = 7
const int flights [][7]
const int len = 10


Enumeration Type Documentation

enum 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 28 of file crew.cc.


Function Documentation

const char* employeeToName Employees  e  ) 
 

Definition at line 47 of file crew.cc.

int main int  argc,
char **  argv
[related]
 

Definition at line 210 of file crew.cc.


Variable Documentation

const Employees employees[]
 

Initial value:

Definition at line 37 of file crew.cc.

const int lastEmployee = Juliet
 

Definition at line 44 of file crew.cc.

const Employees stewards[]
 

Initial value:

Definition at line 74 of file crew.cc.

const int noOfStewards = 10
 

Definition at line 76 of file crew.cc.

const Employees hostesses[]
 

Initial value:

Definition at line 77 of file crew.cc.

const int noOfHostesses = 10
 

Definition at line 80 of file crew.cc.

const Employees frenchSpeaking[]
 

Initial value:

  { Bill, Inez, Jean, Juliet }

Definition at line 81 of file crew.cc.

const int noOfFrenchSpeaking = 4
 

Definition at line 83 of file crew.cc.

const Employees germanSpeaking[]
 

Initial value:

Definition at line 84 of file crew.cc.

const int noOfGermanSpeaking = 5
 

Definition at line 86 of file crew.cc.

const Employees spanishSpeaking[]
 

Initial value:

Definition at line 87 of file crew.cc.

const int noOfSpanishSpeaking = 7
 

Definition at line 89 of file crew.cc.

const int flights[][7]
 

Initial value:

  { {1,4,1,1,1,1,1},
    {2,5,1,1,1,1,1},
    {3,5,1,1,1,1,1},
    {4,6,2,2,1,1,1},
    {5,7,3,3,1,1,1},
    {6,4,1,1,1,1,1},
    {7,5,1,1,1,1,1},
    {8,6,1,1,1,1,1},
    {9,6,2,2,1,1,1},
    {10,7,3,3,1,1,1} }

Definition at line 91 of file crew.cc.

const int len = 10
 

Definition at line 103 of file crew.cc.