|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swarm.BaseImpl | +--swarm.objectbase.SwarmObjectImpl | +--OrderGenerator | +--OrderDistiller
This class is used to read data from two worksheets.
The first one contains the
list of recipes of
our virtual enterprise.
The second one contains a sequence of orders to be launched,
shift by shift, in order to make the daily production activities.
Field Summary | |
Order |
anOrder
a specific order |
java.lang.String |
backslash
Flags to operate checks while reading |
java.lang.String |
checkTheCell
Flags to operate checks while reading |
java.lang.String |
computation
Flags to operate checks while reading |
java.lang.String |
end
Flags to operate checks while reading |
swarm.collections.ListImpl |
endUnitList
the list containig the end units |
static boolean |
firstTime
|
java.lang.String |
gate
Flags to operate checks while reading |
java.lang.String |
layer
Flags to operate checks while reading |
java.lang.String |
min
Flags to operate checks while reading |
java.lang.String |
or
Flags to operate checks while reading |
int |
orderCount
used to record the number of generated orders |
swarm.collections.ListImpl |
orderList
the list containig all the orders |
java.lang.String |
p
Flags to operate checks while reading |
swarm.collections.ListImpl |
recipeList
the list containig all the orders |
java.lang.String |
sec
Flags to operate checks while reading |
java.lang.String |
semicolon
Flags to operate checks while reading |
java.lang.String |
slash
Flags to operate checks while reading |
swarm.collections.ListImpl |
unitList
the list containig the operating units |
boolean |
worksheetOrderSequenceFileOpen
INSTANCE VARIABLES A flag to check if the orderSequence worksheet file is open |
boolean |
worksheetRecipeFileOpen
INSTANCE VARIABLES A flag to check if the orderSequence worksheet file is open |
Fields inherited from class OrderGenerator |
dictionary, dictionaryLength, layerNumber, maxStepLength, maxStepNumber, orderRecipe1, orderRecipe2, orderRecipeTmp, stepLengthInOrder, totalLayerNumber, use0or1 |
Constructor Summary | |
OrderDistiller(swarm.defobj.Zone aZone,
int msn,
int msl,
swarm.collections.ListImpl ul,
swarm.collections.ListImpl eul,
swarm.collections.ListImpl ol,
int tln,
ESFrameModelSwarm mo,
AssigningTool at)
|
Method Summary | |
void |
calculateLength(java.lang.String cTC)
This method is used to calculate the length of each row after a strong check of the elements |
void |
checkForComments(java.lang.String cTC)
This method is used to check if there are comments in the cells |
void |
checkForLayer(ExcelReader e)
This method is used to check the presence of a new layer |
int |
checkTheExistence(int c)
This method is used to check the corrispondence with the dictionary of production phases |
void |
computation(ExcelReader e)
This method dial with the computational choice |
void |
distill()
This is the method containing the iterator needed to launch the daily production of recipes. |
void |
end(ExcelReader e)
This method dial with the end choice |
int |
errorIsNotAnInteger(ExcelReader e)
This method is used to check if a type error occurs |
void |
errorIsNotAString(ExcelReader e)
This method is used to check if a type error occurs |
int |
getOrderSequence1(int j)
This method is used to obtain the elements of the orderSequence1 array |
int |
getOrderSequence2(int j)
This method is used to obtain the elements of the orderSequence2 array |
int |
getOrderSequence3(int j)
This method is used to obtain the elements of the orderSequence3 array |
void |
minute(ExcelReader e)
|
void |
number(ExcelReader e)
This method dial with normal or batch choice |
void |
oR(ExcelReader e)
This method dial with the or choice |
void |
procurement(ExcelReader e)
This method dial with the procurement choice |
void |
readOrderSequence()
This method reads from the worksheet containing, shift by shift, the sequence of orders to be launched and fills in the orderSequence1 with the ID codes of recipes and the orderSequence2 with the quantities of each recipe. |
void |
readRecipes()
This is the method needed to read and store the recipes. |
void |
second(ExcelReader e)
|
void |
setDictionary()
This method is used to collect the names of the units and of the end units, so that it can operate the check of corrispondency between the production phases required by recipes and the phases of production the units can do. |
void |
setRecipeContainers()
This method is used to set the length of each recipe |
Methods inherited from class OrderGenerator |
createRandomOrderWithNSteps |
Methods inherited from class swarm.objectbase.SwarmObjectImpl |
compare, describe, describeID, drop, getCompleteProbeMap, getDisplayName, getName, getProbeForMessage, getProbeForVariable, getProbeMap, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean worksheetOrderSequenceFileOpen
public boolean worksheetRecipeFileOpen
public java.lang.String semicolon
public java.lang.String checkTheCell
public java.lang.String gate
public java.lang.String p
public java.lang.String sec
public java.lang.String min
public java.lang.String end
public java.lang.String slash
public java.lang.String backslash
public java.lang.String or
public java.lang.String layer
public java.lang.String computation
public int orderCount
public static boolean firstTime
public Order anOrder
public swarm.collections.ListImpl unitList
public swarm.collections.ListImpl endUnitList
public swarm.collections.ListImpl orderList
public swarm.collections.ListImpl recipeList
Constructor Detail |
public OrderDistiller(swarm.defobj.Zone aZone, int msn, int msl, swarm.collections.ListImpl ul, swarm.collections.ListImpl eul, swarm.collections.ListImpl ol, int tln, ESFrameModelSwarm mo, AssigningTool at)
Method Detail |
public void setDictionary()
setDictionary
in class OrderGenerator
public void setRecipeContainers()
public void readRecipes()
public void calculateLength(java.lang.String cTC)
public void computation(ExcelReader e)
public void procurement(ExcelReader e)
public void oR(ExcelReader e)
public void end(ExcelReader e)
public void number(ExcelReader e)
public void second(ExcelReader e)
public void minute(ExcelReader e)
public void distill()
public void readOrderSequence()
public int checkTheExistence(int c)
public void checkForLayer(ExcelReader e)
public void checkForComments(java.lang.String cTC)
public int errorIsNotAnInteger(ExcelReader e)
public void errorIsNotAString(ExcelReader e)
public int getOrderSequence1(int j)
public int getOrderSequence2(int j)
public int getOrderSequence3(int j)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |