Generated on Mon Aug 25 15:13:24 2008 for Gecode/J by doxygen 1.5.4

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

List of all members.


Detailed Description

Class implementing option parsing for the example scripts.

Definition at line 53 of file Options.java.


Public Member Functions

 Options ()
 Options (String n)
void parse (String[] args)
void parse (String[] args, int sizemax)
void doSearch (Space g)
 Perform search according to options.
void doSearch (Space g, Stop stop)
 Perfom search according to options.

Public Attributes

boolean gui = true
boolean bab = false
boolean naive = true
boolean print = true
int a_d = (int)Gecode.getDefault_a_d()
int c_d = (int)Gecode.getDefault_c_d()
int solutions = 1
int iterations = 1
int samples = 1
int size = 1
int timelimit = -1
int faillimit = -1
IntConLevel icl = ICL_DEF
String name
Mode mode = Mode.solution
GistEventListener gel = null

Protected Member Functions

IntConLevel getCL (String icl)
String getCL (IntConLevel icl)

Package Types

enum  Mode

Package Functions

double arithmean (double[] t)
double stddev (double[] t)

Member Enumeration Documentation

enum examples::Options::Mode [package]

Enumerator:
solution 
time 
timenogc 

Definition at line 342 of file Options.java.


Constructor & Destructor Documentation

examples.Options.Options (  ) 

Definition at line 74 of file Options.java.

examples.Options.Options ( String  n  ) 

Definition at line 76 of file Options.java.


Member Function Documentation

void examples.Options.parse ( String[]  args  ) 

Definition at line 80 of file Options.java.

void examples.Options.parse ( String[]  args,
int  sizemax 
)

Definition at line 84 of file Options.java.

void examples.Options.doSearch ( Space  g  ) 

Perform search according to options.

Definition at line 196 of file Options.java.

void examples.Options.doSearch ( Space  g,
Stop  stop 
)

Perfom search according to options.

This method will override any stop-conditions specified on the command-line.

Definition at line 205 of file Options.java.

double examples.Options.arithmean ( double[]  t  )  [package]

Definition at line 299 of file Options.java.

double examples.Options.stddev ( double[]  t  )  [package]

Definition at line 307 of file Options.java.

IntConLevel examples.Options.getCL ( String  icl  )  [protected]

Definition at line 319 of file Options.java.

String examples.Options.getCL ( IntConLevel  icl  )  [protected]

Definition at line 331 of file Options.java.


Member Data Documentation

boolean examples.Options.gui = true

Definition at line 55 of file Options.java.

boolean examples.Options.bab = false

Definition at line 56 of file Options.java.

boolean examples.Options.naive = true

Definition at line 57 of file Options.java.

boolean examples.Options.print = true

Definition at line 58 of file Options.java.

int examples.Options.a_d = (int)Gecode.getDefault_a_d()

Definition at line 60 of file Options.java.

int examples.Options.c_d = (int)Gecode.getDefault_c_d()

Definition at line 61 of file Options.java.

Definition at line 62 of file Options.java.

Definition at line 63 of file Options.java.

Definition at line 64 of file Options.java.

Definition at line 65 of file Options.java.

Definition at line 66 of file Options.java.

Definition at line 67 of file Options.java.

Definition at line 69 of file Options.java.

Definition at line 70 of file Options.java.

Mode examples.Options.mode = Mode.solution

Definition at line 71 of file Options.java.

Definition at line 72 of file Options.java.


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