|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.AbstractShopData
A shop data implemintation that uses arrays. to store processing times and steps.
Field Summary | |
protected int |
I
Number of machines |
protected int |
R
Number of routes. |
protected int[][] |
routes
Array of routes, each route being an array of operations (an operation is specified by a machine index). |
protected double[][] |
stepDurations
This is a ragged array of job durations per each step. |
Constructor Summary | |
AbstractShopData()
|
Method Summary | |
java.util.List |
getCi(int i)
Returns a List of all operation in machine i. |
int |
getI()
Returns number of machines. |
int |
getK()
Returns the total number of steps/classes/buffers (sum of Kr) |
int |
getKr(int r)
Returns number of steps in route r, r=1,....,getR(). |
int |
getMachine(Operation op)
Returns the machine that performs the following operation. |
double |
getMaxMachineMean()
Returns the "machine lower bound". |
double |
getMaxRouteMean()
Returns the "job lower bound". |
double |
getMeanOfMachine(int machineNumber)
Returns the sum of the means of all the processing times of all operations on a machine. |
double |
getMeanOfRoute(int routeNumber)
Returns the sum of all of the processing times that compose a route. |
double |
getMeanOfRouteOnMacine(int machine,
int route)
Returns the time that the machine needs to spend working on jobs from the route. |
double[] |
getMeanOfRoutesOnMachine(int machine_)
Returns an array of length getR(), such that each element has getMeanOfRouteOnMachine(machine_,r) for r=0,...,getR()-1. |
double[][] |
getMeansOfRoutesOnMachines()
Returns a matrix whose first dimenstion is the number of machines and second dimension is the number of routes. |
int |
getR()
Returns number of routes. |
java.util.List |
getRoute(int r)
Returns a List of all ShopData.Operation instances in route r |
int |
getSizeCi(int i)
Returns the number of operations in machine i. |
double |
getXto(int t,
int o)
Returns the processing time of job of r, on step o of it's route. |
double |
getXto(Operation op)
Returns the processing time of the proper operation. |
boolean |
isSingleRoute()
Ask is shop is a jobshop with a single route same as getR()==1 |
java.lang.String |
toString()
Returns all info regarding jobshop in a displayable string |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int I
protected int R
protected int[][] routes
protected double[][] stepDurations
Constructor Detail |
public AbstractShopData()
Method Detail |
public int getI()
getI
in interface ShopData
public int getR()
getR
in interface ShopData
public int getK()
getK
in interface ShopData
public double getXto(int t, int o)
getXto
in interface ShopData
public double getXto(Operation op)
ShopData
getXto
in interface ShopData
public int getKr(int r)
ShopData
getKr
in interface ShopData
public int getMachine(Operation op)
ShopData
getMachine
in interface ShopData
public java.util.List getCi(int i)
getCi
in interface ShopData
public int getSizeCi(int i)
getSizeCi
in interface ShopData
public java.util.List getRoute(int r)
getRoute
in interface ShopData
public boolean isSingleRoute()
isSingleRoute
in interface ShopData
public double getMeanOfMachine(int machineNumber)
ShopData
getMeanOfMachine
in interface ShopData
public double getMeanOfRoute(int routeNumber)
ShopData
getMeanOfRoute
in interface ShopData
public double getMaxRouteMean()
ShopData
getMaxRouteMean
in interface ShopData
public double getMaxMachineMean()
ShopData
getMaxMachineMean
in interface ShopData
public double getMeanOfRouteOnMacine(int machine, int route)
getMeanOfRouteOnMacine
in interface ShopData
public double[] getMeanOfRoutesOnMachine(int machine_)
getMeanOfRoutesOnMachine
in interface ShopData
public double[][] getMeansOfRoutesOnMachines()
getMeansOfRoutesOnMachines
in interface ShopData
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |