|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectswarm.BaseImpl
swarm.objectbase.SwarmObjectImpl
Order
The form containing our Order metaphoric object
Field Summary | |
ComputationalSpecificationSet |
aComputationalSpecificationSet
computational specification set |
swarm.collections.ListImpl |
computationalSpecificationSetList
the list of the computational specification set |
int |
i
indexes used in a common way in the arrangeForComputation method |
int |
j
indexes used in a common way in the arrangeForComputation method |
int |
jj
indexes used in a common way in the arrangeForComputation method |
int |
k
indexes used in a common way in the arrangeForComputation method |
java.lang.Object[] |
matrixAddress
the vector of memory matrix addresses to be set in a computational specification set |
int |
orderLayer
the layer to which the order belongs; this value is not used here but in jesframe; here is kept (always 0) for compatibility reasons |
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 |
int[] |
orderStateTmp
a temporary vector to redefine the dimension of orderState if necessary (using "p" or "c" or "||" or "&&" steps) |
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 |
int |
startingTimeUnit
the day in which the order as been generated |
int |
stepNumber
the number of steps in the product recipe |
Constructor Summary | |
Order(swarm.defobj.Zone aZone,
int n,
int sd,
int sn,
int[] r0,
ESFrameModelSwarm model)
the constructor for Order |
Method Summary | |
void |
arrangeForComputation()
the internal method dealing with computation |
boolean |
checkIfNextStepUsesAComputationalSpecificationSet()
check if next step in Order uses a computational specification set |
boolean |
checkZeroTimeProduction()
check if next step in order is a zero time step |
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 |
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 |
getNumberOfDirectStepsDone()
evaluate the number of direct steps done |
int |
getOrderLayer()
getting the layer to which the order belongs |
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] |
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.String |
getRecipeName()
retrieving the name of the recipe |
int |
getStartingTimeUnit()
returning the startingTimeUnit |
int |
getStepNumber()
returning the stepNumber |
void |
setDoneStep(int u)
Done step in Order |
void |
setRecipeName(java.lang.String s)
settinging the name of the recipe |
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 |
clone, 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 startingTimeUnit
public int[] orderRecipe
public int[] orderRecipeTmp
public int[] orderStateTmp
public int[] orderState
public ComputationalSpecificationSet aComputationalSpecificationSet
public swarm.collections.ListImpl computationalSpecificationSetList
public java.lang.Object[] matrixAddress
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)
Method Detail |
public void arrangeForComputation()
public int getNextStep()
public int getDoneStep()
public int getOrderLayer()
public void setDoneStep(int u)
public int getOrderNumber()
public int getStepNumber()
public int getStartingTimeUnit()
public float getNumberOfDirectStepsDone()
public int getOrderRecipe(int i)
public int getOrderState(int i)
public void setRecipeName(java.lang.String s)
public java.lang.String getRecipeName()
public boolean checkIfNextStepUsesAComputationalSpecificationSet()
public boolean checkZeroTimeProduction()
public java.lang.Object getPendingComputationalSpecificationSet()
public void drop()
drop
in interface swarm.defobj.Drop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |