|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swarm.BaseImpl | +--swarm.objectbase.SwarmObjectImpl | +--Order
The form containing our Order metaphoric object
Field Summary | |
ComputationalSpecificationSet |
aComputationalSpecificationSet
compitational specification set |
OrSpecificationSet |
anOrSpecificationSet
an 'or' order specification set |
ProcurementSpecificationSet |
aProcurementSpecificationSet
a procurement specification set |
SequentialBatchSpecificationSet |
aSequentialBatchSpecificationSet
a sequential batch specification set |
StandAloneBatchSpecificationSet |
aStandAloneBatchSpecificationSet
a stand alone batch specification sets |
swarm.collections.ListImpl |
computationalSpecificationSetList
the list of the computational specification set |
float |
cumulatedFixedCost
the fixed and variable costs of the order |
float |
cumulatedVariableCost
the fixed and variable costs of the order |
swarm.collections.ListImpl |
endUnitList
the end unit list |
swarm.collections.ListIndex |
endUnitListIndex
its iterator |
int |
i
indexes used in a common way with the arrangeForProcurements() internal method |
int |
initialMultiplicity
|
boolean |
inSequentialBatch
inSequentialBatch is true if the order is found to be included in a sequential batch |
int |
j
indexes used in a common way with the arrangeForProcurements() internal method |
int |
jj
indexes used in a common way with the arrangeForProcurements() internal method |
int |
k
indexes used in a common way with the arrangeForProcurements() internal method |
java.lang.Object[] |
matrixAddress
the vector of memory matrix addresses to be set in a computational specification set |
int |
multiplicity
multiplicity factor, usually = 1; > 1 in stand alone batch productions; the initial value is for establishing ratios in evaluations |
int |
numberOfTheStepForWhichANewsIsSent
the sequential number of the recipe referring to which a news will be sent |
int |
numberOfTickInAUnit
number of ticks in a unit |
int |
orderLayer
the layer to which the order belongs; the layer has to be set by OrderGenerator (for test purposes) and must of all by the OrderDistiller; in this case, the information must be retrieved from the recipeData/orderSequence.xls file a layer is a period of time or a set of qualitative conditions that introduce differentiations into the orders; e.g two collections in fashion production, with the same technical description (recipe) and different qualitative results |
int |
orderNumber
the number of this order |
int[] |
orderRecipe
integer vector, containing the recipe steps |
int[] |
orderRecipeTmp
a temporary vector to redefine the dimension of orderRecipe if necessary (using "p" or "c" or "||" or "&&" steps) |
int[] |
orderState
integer vector, recording the performed phases |
float |
orderTotalCosts
the sum of variable and fixed costs of the order |
int |
orRow
the row used in the memory matrix invoked by an 'or' process using orCriterion 5 (look at Or.java) |
swarm.collections.ListImpl |
orSpecificationSetList
the list of 'or' specifications |
swarm.collections.ListImpl |
procuredItemList
the list of procured items |
swarm.collections.ListImpl |
procurementSpecificationSetList
the list of the procurement specification sets |
int[] |
r
incoming recipe structure; we make a local copy of it, from r0 which is in the constructor paramenter list, to r |
java.lang.String |
recipeName
the 'name' of the recipe (may be used by OrderDistiller, as a way to identify recipes |
boolean |
sameStep
same unit is true if the preceding unit is the same that is now dealing with the assignment to the waiting list |
swarm.collections.ListImpl |
sequentialBatchSpecificationSetList
the list of sequential batch specifications |
swarm.collections.ListImpl |
standAloneBatchSpecificationSetList
the list of stand alone batch specifications |
int |
startingTimeUnit
the day in which the order as been generated |
int |
stepNumber
the number of steps in the product recipe |
Unit |
theUnitTheOrderComeFrom
the Unit the Order come from |
Constructor Summary | |
Order(swarm.defobj.Zone aZone,
int originalOrderRecipeLength,
int[] originalOrderRecipe,
int originalOrderStateLength,
int[] originalOrderState,
ESFrameModelSwarm model,
swarm.collections.ListIndex originalProcurementSpecificationSetListIndex,
swarm.collections.ListIndex originalProcuredItemListIndex,
swarm.collections.ListIndex originalComputationalSpecificationSetListIndex,
swarm.collections.ListIndex originalStandAloneBatchSpecificationSetListIndex,
swarm.collections.ListIndex originalSequentialBatchSpecificationSetListIndex,
swarm.collections.ListIndex originalOrSpecificationSetListIndex,
boolean originalInSequentialBatch)
the second constructor for Order, to clone an order the cloning operation anyway is only partial |
|
Order(swarm.defobj.Zone aZone,
int n,
int sd,
int sn,
int[] r0,
ESFrameModelSwarm model,
swarm.collections.ListImpl eul)
the first constructor for Order, for original object creation |
Method Summary | |
void |
arrangeForComputation()
the internal method dealing with computation |
void |
arrangeForProcurements()
the internal method dealing with procurements |
boolean |
checkIfNextStepUsesAComputationalSpecificationSet()
check if next step in Order uses a computational specification set |
boolean |
checkIfNextStepUsesAnOrSpecificationSet()
check if next step in Order uses a 'or' specification set |
boolean |
checkIfNextStepUsesAProcurementSpecificationSet()
check if next step in Order uses a procurement specification set |
boolean |
checkIfNextStepUsesASequentialBatchSpecificationSet()
check if next step in Order uses a sequential batch specification set |
boolean |
checkIfNextStepUsesAStandAloneBatchSpecificationSet()
check if next step in Order uses a stand alone batch specification set |
swarm.Selector |
checkMethod(java.lang.Object obj,
java.lang.String method)
|
boolean |
checkZeroTimeProduction()
check if next step in order is a zero time step |
java.lang.Object |
clone()
Cloneable interface method: clone() |
void |
drop()
drop the order |
int |
getDoneStep()
production done step in Order (it is in the orderRecipe vector, at the index value in which we find the first 0 in orderState vector minus 1; if no step has been done, the method returns -999999) |
int |
getHowManyStepsToBeDone()
returning how many steps remain to terminate the production |
boolean |
getInSequentialBatch()
get inSequentialBatch |
int |
getMultiplicity()
get multiplicity factor |
int |
getNextStep()
production next step in Order (it is in the orderRecipe vector, at the same index value in which we find the first 0 in orderState vector) |
float |
getNumberOfDirectAndIndirectStepsDone()
evaluate the number of direct and indirect steps done |
float |
getNumberOfDirectStepsDone()
evaluate the number of direct steps done |
int |
getNumberOfTheStepForWhichANewsIsSent()
returning the sequential number of the recipe referring to which a news will be sent |
int |
getNumberOfTickInAUnit()
getting the number of ticks that the order has spent in a unit |
float |
getOrderEvaluation()
returning the value of the production already done |
float |
getOrderFinalEvaluation()
returning the final value of the production, accouting also for the direct and indirect procured components |
int |
getOrderLayer()
|
int |
getOrderNumber()
returning the orderNumber of this order |
int |
getOrderRecipe(int i)
getting the content of orderRecipe[i] |
int |
getOrderState(int i)
getting the content of orderState[i] |
float |
getOrderTotalCosts()
getting the total of costs of the order |
java.lang.Object |
getPendingComputationalSpecificationSet()
getting the computational specification set related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished) if no computational specification set exists for the next step, a null value is returned |
java.lang.Object |
getPendingOrSpecificationSet()
getting the 'or' specification set related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished) if no 'or' SpecificationSet exists for the next step, a null value is returned |
java.lang.Object |
getPendingProcurementSpecificationSet()
getting the procurement specification set related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished) if no procurement specification set exists for the next step, a null value is returned |
java.lang.Object |
getPendingSequentialBatchSpecificationSet()
getting the sequential batch specification set related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished) if no sequential batch SpecificationSet exists for the next step, a null value is returned |
java.lang.Object |
getPendingSequentialBatchSpecificationSetAtPosition(int pos)
getting the sequential batch specification set related to the step 'pos' if any; if no sequential batch SpecificationSet exists for the next step, a null value is returned |
java.lang.Object |
getPendingStandAloneBatchSpecificationSet()
getting the stand alone batch specification set related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished) if no stand alone batch SpecificationSet exists for the next step, a null value is returned |
int |
getProductionToBeDoneAtStepAheadNumber(int sn)
returning the production phase at a specific step |
java.lang.String |
getRecipeName()
retrieving the name of the recipe |
int[] |
getRecipeVector()
getting the order recipe vector address |
boolean |
getSameStep()
getting sameStep value |
int |
getStartingTimeUnit()
returning the startingTimeUnit |
int[] |
getStateVector()
getting the order state vector address |
int |
getStepNumber()
returning the stepNumber |
Unit |
getTheUnitTheOrderComeFrom()
getting the unit the order come from |
void |
setDoneStep(int u)
Done step in Order |
void |
setFixedAndVariableOrderCosts(float fc,
float vc)
setting fixed and variable costs for the orders in production or finished |
void |
setInitialMultiplicity(int m)
set initial multiplicity factor |
void |
setInSequentialBatch(boolean v)
set inSequentialBatch |
void |
setMultiplicity(int m)
set multiplicity factor |
void |
setNumberOfTickInAUnit(int n)
setting (initializing) the number of ticks that the order can spend in each unit; the setting is made in AssignTool |
void |
setOrderLayer(int la)
|
void |
setProcuredItemList(Order o)
adding an item to the procuredItemList |
void |
setRecipeName(java.lang.String s)
settinging the name of the recipe |
void |
setSameStep(boolean b)
setting sameStep value |
void |
setTheUnitTheOrderComeFrom(Unit u)
setting the unit the order come from |
Methods inherited from class swarm.objectbase.SwarmObjectImpl |
compare, describe, describeID, 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 |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int stepNumber
public java.lang.String recipeName
public int orderLayer
public int orderNumber
public int multiplicity
public int initialMultiplicity
public int startingTimeUnit
public int[] orderRecipe
public int[] orderRecipeTmp
public int[] orderState
public int numberOfTheStepForWhichANewsIsSent
public float cumulatedFixedCost
public float cumulatedVariableCost
public float orderTotalCosts
public int numberOfTickInAUnit
public ProcurementSpecificationSet aProcurementSpecificationSet
public swarm.collections.ListImpl procurementSpecificationSetList
public ComputationalSpecificationSet aComputationalSpecificationSet
public swarm.collections.ListImpl computationalSpecificationSetList
public java.lang.Object[] matrixAddress
public StandAloneBatchSpecificationSet aStandAloneBatchSpecificationSet
public swarm.collections.ListImpl standAloneBatchSpecificationSetList
public SequentialBatchSpecificationSet aSequentialBatchSpecificationSet
public swarm.collections.ListImpl sequentialBatchSpecificationSetList
public OrSpecificationSet anOrSpecificationSet
public swarm.collections.ListImpl orSpecificationSetList
public int orRow
public boolean sameStep
public Unit theUnitTheOrderComeFrom
public swarm.collections.ListImpl procuredItemList
public swarm.collections.ListImpl endUnitList
public swarm.collections.ListIndex endUnitListIndex
public boolean inSequentialBatch
public int i
public int j
public int jj
public int k
public int[] r
Constructor Detail |
public Order(swarm.defobj.Zone aZone, int n, int sd, int sn, int[] r0, ESFrameModelSwarm model, swarm.collections.ListImpl eul)
public Order(swarm.defobj.Zone aZone, int originalOrderRecipeLength, int[] originalOrderRecipe, int originalOrderStateLength, int[] originalOrderState, ESFrameModelSwarm model, swarm.collections.ListIndex originalProcurementSpecificationSetListIndex, swarm.collections.ListIndex originalProcuredItemListIndex, swarm.collections.ListIndex originalComputationalSpecificationSetListIndex, swarm.collections.ListIndex originalStandAloneBatchSpecificationSetListIndex, swarm.collections.ListIndex originalSequentialBatchSpecificationSetListIndex, swarm.collections.ListIndex originalOrSpecificationSetListIndex, boolean originalInSequentialBatch)
Method Detail |
public int getNextStep()
public int getDoneStep()
public boolean checkZeroTimeProduction()
public boolean checkIfNextStepUsesAProcurementSpecificationSet()
public boolean checkIfNextStepUsesAComputationalSpecificationSet()
public boolean checkIfNextStepUsesAStandAloneBatchSpecificationSet()
public boolean checkIfNextStepUsesASequentialBatchSpecificationSet()
public boolean checkIfNextStepUsesAnOrSpecificationSet()
public void setOrderLayer(int la)
public int getOrderLayer()
public void setDoneStep(int u)
public int getOrderNumber()
public int getStepNumber()
public int getStartingTimeUnit()
public int getHowManyStepsToBeDone()
public int getProductionToBeDoneAtStepAheadNumber(int sn)
public int getNumberOfTheStepForWhichANewsIsSent()
public float getNumberOfDirectStepsDone()
public float getNumberOfDirectAndIndirectStepsDone()
public float getOrderEvaluation()
public float getOrderFinalEvaluation()
public void setFixedAndVariableOrderCosts(float fc, float vc)
public float getOrderTotalCosts()
public int getOrderRecipe(int i)
public int getOrderState(int i)
public java.lang.Object getPendingProcurementSpecificationSet()
public java.lang.Object getPendingComputationalSpecificationSet()
public java.lang.Object getPendingStandAloneBatchSpecificationSet()
public java.lang.Object getPendingSequentialBatchSpecificationSet()
public java.lang.Object getPendingSequentialBatchSpecificationSetAtPosition(int pos)
public java.lang.Object getPendingOrSpecificationSet()
public void setProcuredItemList(Order o)
public void setMultiplicity(int m)
public void setInitialMultiplicity(int m)
public int getMultiplicity()
public void drop()
drop
in interface swarm.defobj.Drop
drop
in class swarm.objectbase.SwarmObjectImpl
public swarm.Selector checkMethod(java.lang.Object obj, java.lang.String method)
public void setRecipeName(java.lang.String s)
public java.lang.String getRecipeName()
public int[] getRecipeVector()
public int[] getStateVector()
public void setInSequentialBatch(boolean v)
public boolean getInSequentialBatch()
public java.lang.Object clone()
clone
in class java.lang.Object
public void arrangeForProcurements()
public void arrangeForComputation()
public void setNumberOfTickInAUnit(int n)
public int getNumberOfTickInAUnit()
public boolean getSameStep()
public void setSameStep(boolean b)
public void setTheUnitTheOrderComeFrom(Unit u)
public Unit getTheUnitTheOrderComeFrom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |