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

Crew Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Airline crew allocation

Assign 20 flight attendants to 10 flights. Each flight needs a certain number of cabin crew, and they have to speak certain languages. Every cabin crew member has two flights off after an attended flight.

Definition at line 116 of file crew.cc.

Public Member Functions

 Crew (const Options &o)
 Crew (bool share, Crew &s)
virtual Spacecopy (bool share)
 Copying member function.
virtual void print (void)

Public Attributes

SetVarArray root


Constructor & Destructor Documentation

Crew::Crew const Options o  )  [inline]
 

Definition at line 120 of file crew.cc.

Crew::Crew bool  share,
Crew s
[inline]
 

Definition at line 177 of file crew.cc.


Member Function Documentation

virtual Space* Crew::copy bool  share  )  [inline, virtual]
 

Copying member function.

Must create a new object using the constructor for cloning.

Implements Gecode::Space.

Definition at line 183 of file crew.cc.

virtual void Crew::print void   )  [inline, virtual]
 

Reimplemented from Example.

Definition at line 188 of file crew.cc.


Member Data Documentation

SetVarArray Crew::root
 

Definition at line 118 of file crew.cc.


The documentation for this class was generated from the following file: