Generated on Thu Nov 2 14:49:40 2006 for Gecode/J by doxygen 1.5.0

examples.Photo Class Reference
[Example scripts (models)]

Inherits org.gecode.Space.

List of all members.


Detailed Description

Script for placing people on a photo.

A group of people wants to take a group photo. Each person can give preferences next to whom he or she wants to be placed on the photo. The problem to be solved is to find a placement that satisfies as many preferences as possible.

Definition at line 44 of file Photo.java.

Public Member Functions

void constrain (Space oldSol)
 constrain this space to satisfy more preferences
 Photo (PhotoSpec s)
 Photo (Boolean share, Photo photo)

Static Public Member Functions

static void main (String[]args)

Public Attributes

VarArray< IntVarpos
 pos.get(i) is the position of person i
IntVar sat
 how many preferences are satisfied

Static Package Functions

 [static initializer]


Constructor & Destructor Documentation

examples.Photo.Photo ( PhotoSpec  s  ) 

Definition at line 58 of file Photo.java.

examples.Photo.Photo ( Boolean  share,
Photo  photo 
)

Definition at line 109 of file Photo.java.


Member Function Documentation

void examples.Photo.constrain ( Space  oldSol  ) 

constrain this space to satisfy more preferences

Reimplemented from org.gecode.Space.

Definition at line 53 of file Photo.java.

static void examples.Photo.main ( String[]  args  )  [static]

Definition at line 118 of file Photo.java.

examples.Photo.[static initializer] (  )  [static, package]


Member Data Documentation

pos.get(i) is the position of person i

Definition at line 47 of file Photo.java.

how many preferences are satisfied

Definition at line 49 of file Photo.java.


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