|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | 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 | |
ProcurementSpecificationSet |
aProcurementSpecificationSet
a procurement specication set |
float |
cumulatedFixedCost
the fixed and variable costs of the order |
float |
cumulatedVariableCost
the fixed and variable costs of the order |
int |
numberOfTheStepForWhichANewsIsSent
the sequential number of the recipe referring to which a news will be sent |
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" steps) |
int[] |
orderState
integer vector, recording the performed phases |
float |
orderTotalCosts
the sum of variable and fixed costs of the order |
swarm.collections.ListImpl |
procuredItemList
the list of procured items |
swarm.collections.ListImpl |
procurementSpecificationSetList
the list of procurement specications |
int |
startingDay
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[] r,
VEFrameModelSwarm model)
constructor for Order |
Method Summary | |
void |
drop()
drop the order |
int |
getHowManyStepsToBeDone()
returning how many steps remain to terminate the production |
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) |
boolean |
getNextStepNegative()
sign of the production next step in Order |
int |
getNumberOfTheStepForWhichANewsIsSent()
returning the sequential number of the recipe referring to which a news will be sent |
float |
getOrderEvaluation()
returning the value of the production already done |
int |
getOrderNumber()
returning the orderNumber of this order |
int |
getOrderRecipe(int i)
getting the content of orderRecipe[i], with the sign changed if it is < 0 |
float |
getOrderTotalCosts()
getting the total of costs of the order |
java.lang.Object |
getPendingProcurementSpecificationSet()
getting the procurementSpecificationSet related to the nextStep (the current one, if the order is in a waiting list for next step to be accomplished if no procurementSpecificationSet exists for the next step, a null value is returned |
int |
getProductionToBeDoneAtStepAheadNumber(int sn)
returning the production phase at a specific step |
int |
getStartingDay()
returning the startingDay |
int |
getStepNumber()
returning the stepNumber |
void |
setDoneStep()
Done step in Order |
void |
setFixedAndVariableOrderCosts(float fc,
float vc)
setting fixed and variable costs for the orders in production or finished |
void |
setNextStepToPositive()
change the sign of the production next step in Order, if negative |
void |
setProcuredItemList(Order o)
adding an item to the procuredItemList |
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 int orderNumber
public int startingDay
public int[] orderRecipe
public int[] orderRecipeTmp
public int[] orderState
public int numberOfTheStepForWhichANewsIsSent
public float cumulatedFixedCost
public float cumulatedVariableCost
public float orderTotalCosts
public ProcurementSpecificationSet aProcurementSpecificationSet
public swarm.collections.ListImpl procurementSpecificationSetList
public swarm.collections.ListImpl procuredItemList
Constructor Detail |
public Order(swarm.defobj.Zone aZone, int n, int sd, int sn, int[] r, VEFrameModelSwarm model)
Method Detail |
public int getNextStep()
public boolean getNextStepNegative()
public void setNextStepToPositive()
public void setDoneStep()
public int getOrderNumber()
public int getStepNumber()
public int getStartingDay()
public int getHowManyStepsToBeDone()
public int getProductionToBeDoneAtStepAheadNumber(int sn)
public int getNumberOfTheStepForWhichANewsIsSent()
public float getOrderEvaluation()
public void setFixedAndVariableOrderCosts(float fc, float vc)
public float getOrderTotalCosts()
public int getOrderRecipe(int i)
public java.lang.Object getPendingProcurementSpecificationSet()
public void setProcuredItemList(Order o)
public void drop()
drop
in class swarm.objectbase.SwarmObjectImpl
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |