#include <SGanttChart.h>
Public Methods | |
NOCOPY (SGanttChart) | |
DUMMYIO (SGanttChart) | |
SGanttChart (STaskSystem &ts) | |
~SGanttChart () | |
void | jobAllocated (int jobIdx, int machine, double time, int operation=-1) |
void | jobDeallocated (int jobIdx, int machine, double time) |
int | getJob (int mach, double time, int &operation) const |
int | getMachine (int jobIdx, double time, int operation=-1) const |
int | getExecInfo (int jobIdx, leda_array< double > &start, leda_array< double > &end, leda_array< int > &machine, leda_array< int > &operation) const |
const leda_list< double > & | getTimeSteps () const |
void | reset () |
|
Constructor
|
|
Destructor |
|
|
|
Get the information about when and where a job has been executed. For each interval 0..i of an execution of the job, start-time, end-time, the executing machine and (with shop jobs) the executed operation will be copied to the corresponding start[i], end[i], machine[i] and operation[i], if job is not a shop job, operation[i] will return -1; All information of the arrays will be deleted before filling them.
|
|
Get the index of the job, that was running on machine 'mach' while time step 'time'. If the job is a shop job, 'operation' will return the operation processed at that time, -1 if not a shop job; NOTE: If in time step 'time' a old job was deallocated and a new job was allocated, then it returns the old job
|
|
Get the machine, that executed job 'jobIdx' at the specified time step. With shop jobs you also have to specify the operation NOTE: if at timestep time the job was deallocated from machine 'old' and allocated on machine 'new', the 'old' one will be returned
|
|
Get a list of all time steps at which jobs have been deallocated. this list can be used to create the time axis of the Gantt Chart and to iterate the time for getJob(); NOTE: timeStep 0 is not in this list
|
|
Inform the chart that a job has been allocated
|
|
Inform the chart that a job has been deallocated
|
|
|
|
Reset datastructures. Do this at the beginning of a new schedule or when the number of jobs or machines has changed |