Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

operations_research::JobShopData Class Reference

JobShopData. More...

#include <jobshop.h>

List of all members.

Public Types

enum  ProblemType { UNDEFINED, JSSP, TAILLARD }
enum  TaillardState {
  START, JOBS_READ, MACHINES_READ, SEED_READ,
  JOB_ID_READ, JOB_LENGTH_READ, JOB_READ
}

Public Member Functions

 JobShopData ()
 ~JobShopData ()
void Load (const string &filename)
 Parses a file in jssp or taillard format and loads the model.
int machine_count () const
 The number of machines in the jobshop.
int job_count () const
 The number of jobs in the jobshop.
const string & name () const
 The name of the jobshop instance.
int horizon () const
 The horizon of the workshop (the sum of all durations), which is a trivial upper bound of the optimal make_span.
const std::vector< Task > & TasksOfJob (int job_id) const
 Returns the tasks of a job, ordered by precedence.

Classes

struct  Task
 A task is the basic block of a jobshop. More...


Detailed Description

JobShopData.

A JobShopData parses data files and stores all data internally for easy retrieval.

Definition at line 52 of file jobshop.h.


Member Enumeration Documentation

Enumerator:
UNDEFINED 
JSSP 
TAILLARD 

Definition at line 62 of file jobshop.h.

Enumerator:
START 
JOBS_READ 
MACHINES_READ 
SEED_READ 
JOB_ID_READ 
JOB_LENGTH_READ 
JOB_READ 

Definition at line 68 of file jobshop.h.


Constructor & Destructor Documentation

operations_research::JobShopData::JobShopData (  )  [inline]

Definition at line 78 of file jobshop.h.

operations_research::JobShopData::~JobShopData (  )  [inline]

Definition at line 87 of file jobshop.h.


Member Function Documentation

void operations_research::JobShopData::Load ( const string &  filename  )  [inline]

Parses a file in jssp or taillard format and loads the model.

See the flag --data_file for a description of the format. Note that the format is only partially checked: bad inputs might cause undefined behavior.

Definition at line 93 of file jobshop.h.

int operations_research::JobShopData::machine_count (  )  const [inline]

The number of machines in the jobshop.

Definition at line 105 of file jobshop.h.

int operations_research::JobShopData::job_count (  )  const [inline]

The number of jobs in the jobshop.

Definition at line 108 of file jobshop.h.

const string& operations_research::JobShopData::name (  )  const [inline]

The name of the jobshop instance.

Definition at line 111 of file jobshop.h.

int operations_research::JobShopData::horizon (  )  const [inline]

The horizon of the workshop (the sum of all durations), which is a trivial upper bound of the optimal make_span.

Definition at line 115 of file jobshop.h.

const std::vector<Task>& operations_research::JobShopData::TasksOfJob ( int  job_id  )  const [inline]

Returns the tasks of a job, ordered by precedence.

Definition at line 118 of file jobshop.h.


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