|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--haifa.shopsim.GeneralShopDataArray
An implementation of a general shopData using arrays. With specified file format (.jbs).
| 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 | |
protected |
GeneralShopDataArray()
Does nothing. |
|
GeneralShopDataArray(java.io.Reader reader)
Read according to file format. |
| 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 type t, 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 |
static void |
main(java.lang.String[] args)
For testing |
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 |
protected GeneralShopDataArray()
public GeneralShopDataArray(java.io.Reader reader)
throws JobShopFileFormatException,
java.io.IOException
| Method Detail |
public int getI()
getI in interface ShopDatapublic int getR()
getR in interface ShopDatapublic int getK()
getK in interface ShopData
public double getXto(int t,
int o)
getXto in interface ShopDatapublic double getXto(Operation op)
ShopDatagetXto in interface ShopDatapublic int getKr(int r)
ShopDatagetKr in interface ShopDatapublic int getMachine(Operation op)
ShopDatagetMachine in interface ShopDatapublic java.util.List getCi(int i)
getCi in interface ShopDatapublic int getSizeCi(int i)
getSizeCi in interface ShopDatapublic java.util.List getRoute(int r)
getRoute in interface ShopDatapublic boolean isSingleRoute()
isSingleRoute in interface ShopDatapublic double getMeanOfMachine(int machineNumber)
ShopDatagetMeanOfMachine in interface ShopDatapublic double getMeanOfRoute(int routeNumber)
ShopDatagetMeanOfRoute in interface ShopDatapublic double getMaxRouteMean()
ShopDatagetMaxRouteMean in interface ShopDatapublic double getMaxMachineMean()
ShopDatagetMaxMachineMean in interface ShopData
public double getMeanOfRouteOnMacine(int machine,
int route)
getMeanOfRouteOnMacine in interface ShopDatapublic double[] getMeanOfRoutesOnMachine(int machine_)
getMeanOfRoutesOnMachine in interface ShopDatapublic double[][] getMeansOfRoutesOnMachines()
getMeansOfRoutesOnMachines in interface ShopDatapublic java.lang.String toString()
toString in class java.lang.Object
public static void main(java.lang.String[] args)
throws java.lang.Exception
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||