|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swarm.BaseImpl | +--swarm.objectbase.SwarmObjectImpl | +--Unit
The Unit class instances are micro unit in our virtual enterprise; i.e. the units where the steps required to build a product (to fulfill an order) are done
Field Summary | |
EndUnit |
anEndUnit
the temporary address of an existing endUnit |
News |
aNews
a news to be sent |
Unit |
aUnit
the temporary address of an existing unit |
int |
countCostTypes
the number of different values of fixed and variable costs, related to the number of production phases |
int |
countPhaseInventories
the number of phase inventory choices, related to the number of production phases |
int |
countPhases
the number of different production phases the unit is able to deal with (the 0 copy of this field is used for technical reasons) |
int |
currentState
the current state of production phase (what are we doing) the current set is established by the order currently produced by this unit in this tick |
swarm.collections.ListImpl |
dailyProductionList
the list containing the orders (if any) performed in a day, also via the inventories contained in our warehouse |
float |
dailySaleRevenues
the daily revenues from the finished orders (sold) |
float |
dailyStoredComponentValue
the daily evaluation of the stored component |
swarm.collections.ListImpl |
endUnitList
the list of the normal units existing in our environment |
Order |
firstOrder
the first order to be executed |
float[] |
fixedCosts
our fixed and variable costs |
Order |
incomingOrder
an order inserted in a news |
int |
informationDeepness
how deep we look at production steps to propagate news (how many steps beyond the current production phase) |
InformationRuleMaster |
informationRuleMaster
our rule master about information system |
InventoryRuleMaster |
inventoryRuleMaster
our rule master about inventories |
boolean |
madeProduction
a flag about using pieces in warehouse |
Warehouse |
myWarehouse
our warehouse, if any |
swarm.collections.ListImpl |
newsList
the list of the newses |
int |
nOfCostTypes
the number of different values of fixed and variable costs, related to the number of production phases |
boolean |
nOfCostTypesDimensionOrRedimension
dimension or the vectors fixedCosts and variableCosts for a simple unit or redimension for a complex one |
int |
nOfOrdersInNewses
of order for which newses are propagated |
int |
nOfPhaseInventories
the number of phase inventory choices, related to the number of production phases |
boolean |
nOfPhaseInventoriesDimensionOrRedimension
dimension or the vector phaseInventories for a simple unit or redimension for a complex one |
int |
nOfPhasesToDealWith
the number of different production phases the unit is able to deal with (the 0 copy of this field is used for technical reasons) |
boolean |
nOfPhasesToDealWithDimensionOrRedimension
dimension or the vector unitProductionPhases for a simple unit or redimension for a complex one |
boolean[] |
phaseInventories
our phase inventory choices |
Unit |
receivingUnit
the temporary address of a unit to wich send a news |
int |
temporaryCurrentState
|
News |
toBeDroppedNews
a news to be deleted a the arrive of the related order |
float |
totalCosts
the costs from the beginning of the simulation |
float |
totalDailyCosts
total daily fixed and variable costs |
float |
totalFinishedOrderCosts
the costs of the finished orders |
float |
totalSaleRevenues
the revenues from the beginning of the simulation |
float |
totalTickVariableCosts
total tick variable costs |
swarm.collections.ListImpl |
unitList
the list of end units existing in our environment |
int |
unitNumber
the number identifying the unit |
int[] |
unitProductionPhases
the unit production phase |
boolean |
useNewses
choosing if we use or not newses about incoming productions |
boolean |
useWarehouses
choosing - global choice - if we use or not the warehouses (to provide or not inventories of our products) |
float[] |
variableCosts
our fixed and variable costs |
swarm.collections.ListImpl |
waitingList
the list of the orders to be executed |
swarm.collections.ListImpl |
wholeOrderList
the whole list of the orders |
Constructor Summary | |
Unit(swarm.defobj.Zone aZone,
swarm.collections.ListImpl ul,
swarm.collections.ListImpl eul,
VEFrameModelSwarm mo,
InventoryRuleMaster rm,
Warehouse wh,
InformationRuleMaster irm,
int idp,
int noin,
swarm.collections.ListImpl ol,
ProcurementAssembler pa)
the third constructor for Unit (with warehouses and newses) |
|
Unit(swarm.defobj.Zone aZone,
swarm.collections.ListImpl ul,
swarm.collections.ListImpl eul,
VEFrameModelSwarm mo,
InventoryRuleMaster rm,
Warehouse wh,
swarm.collections.ListImpl ol,
ProcurementAssembler pa)
the first constructor for Unit (using warehouses) |
|
Unit(swarm.defobj.Zone aZone,
swarm.collections.ListImpl ul,
swarm.collections.ListImpl eul,
VEFrameModelSwarm mo,
swarm.collections.ListImpl ol,
ProcurementAssembler pa)
the second constructor for Unit (without warehouses) |
Method Summary | |
void |
addTickVariableCosts()
set the value of the total daily variable costs |
float |
getDailySaleRevenues()
record the revenue from a dropped order |
float |
getDailyStoredComponentValue()
|
java.lang.String |
getLabel()
|
int |
getNOfPhasesToDealWith()
get the nOfPhasesToDealWith, i.e. the n. of different steps the unit is able to deal with |
int |
getPhaseNumberToProduceInventories()
|
int |
getProductionPhase(int state)
return the production phases of the unit |
float |
getTotalCosts()
return total costs |
float |
getTotalDailyCosts()
return total daily costs |
float |
getTotalFinishedOrderCosts()
return total costs from finished orders |
float |
getTotalInventoryFinancialCosts()
return the financial costs of inventories |
float |
getTotalSaleRevenues()
return the total revenue |
int |
getUnitNumber()
get unit number |
boolean |
getUseWarehouseLocalChoice()
|
double |
getValueToPlot()
|
int |
getWaitingListLength()
return the waiting list length |
void |
setFixedAndVariableCosts(float fc,
float vc)
setting fixed and variable costs |
void |
setNewsList(News aNews)
putting a news in the newsList of the unit after checking list to avoid duplicated news |
void |
setNOfPhasesToDealWith(int ns)
set the nOfPhasesToDealWith, i.e. the n. of different steps the unit is able to deal with |
void |
setPhaseInventories(int fi)
setting phase inventory choice |
void |
setProductionPhase(int ph)
set unit production phases |
void |
setRedimensionTrue()
set the necessity of redimensioning the vectors containing the parameters; see ($) below |
void |
setStoredComponentDailyValue()
record the daily value of inventories |
void |
setTotalCosts()
cumulate the total daily costs it must be executed only once a day |
void |
setTotalDailyCosts()
set the global sum of fixed (per day) and variable costs (per tick) it can be calculated several times in a day, as a sequence of partial values |
void |
setTotalInventoryFinancialCosts()
record the cumulated financial costs of inventories |
void |
setTotalSaleRevenues()
cumulatere the revenues from finished orders |
void |
setUnitNumber(int un)
set unit number |
void |
setWaitingList(Order anOrder)
Putting an order in the production waitingList of the unit and deleting the related news |
void |
unitStep0()
zeroing daily costs |
void |
unitStep1()
production: at the beginning of each time tick in the 'day', each unit looks for the order(s) (if any) to be executed; the production cycle is 'one unit of time' in a step of the recipe of an order in a tick of a day; we can also use inventories |
void |
unitStep2()
diffusion and accounting: sending the orders to the subsequent production units; making accounting operations |
void |
unitStep3()
|
void |
unitStep4()
|
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 int unitNumber
public int nOfPhasesToDealWith
public int countPhases
public boolean nOfPhasesToDealWithDimensionOrRedimension
public int[] unitProductionPhases
public int currentState
public int temporaryCurrentState
public boolean useWarehouses
public boolean useNewses
public boolean madeProduction
public swarm.collections.ListImpl endUnitList
public swarm.collections.ListImpl unitList
public swarm.collections.ListImpl waitingList
public swarm.collections.ListImpl dailyProductionList
public Unit aUnit
public EndUnit anEndUnit
public Unit receivingUnit
public Warehouse myWarehouse
public Order firstOrder
public Order incomingOrder
public News aNews
public News toBeDroppedNews
public InventoryRuleMaster inventoryRuleMaster
public InformationRuleMaster informationRuleMaster
public swarm.collections.ListImpl newsList
public int informationDeepness
public int nOfOrdersInNewses
public swarm.collections.ListImpl wholeOrderList
public int nOfCostTypes
public int countCostTypes
public boolean nOfCostTypesDimensionOrRedimension
public float[] fixedCosts
public float[] variableCosts
public int nOfPhaseInventories
public int countPhaseInventories
public boolean nOfPhaseInventoriesDimensionOrRedimension
public boolean[] phaseInventories
public float totalTickVariableCosts
public float totalDailyCosts
public float totalCosts
public float dailySaleRevenues
public float totalSaleRevenues
public float totalFinishedOrderCosts
public float dailyStoredComponentValue
Constructor Detail |
public Unit(swarm.defobj.Zone aZone, swarm.collections.ListImpl ul, swarm.collections.ListImpl eul, VEFrameModelSwarm mo, InventoryRuleMaster rm, Warehouse wh, swarm.collections.ListImpl ol, ProcurementAssembler pa)
public Unit(swarm.defobj.Zone aZone, swarm.collections.ListImpl ul, swarm.collections.ListImpl eul, VEFrameModelSwarm mo, swarm.collections.ListImpl ol, ProcurementAssembler pa)
public Unit(swarm.defobj.Zone aZone, swarm.collections.ListImpl ul, swarm.collections.ListImpl eul, VEFrameModelSwarm mo, InventoryRuleMaster rm, Warehouse wh, InformationRuleMaster irm, int idp, int noin, swarm.collections.ListImpl ol, ProcurementAssembler pa)
Method Detail |
public void setUnitNumber(int un)
public int getUnitNumber()
public void unitStep0()
public void unitStep1()
public void unitStep2()
public void unitStep4()
public void unitStep3()
public void setRedimensionTrue()
public void setProductionPhase(int ph)
public void setFixedAndVariableCosts(float fc, float vc)
public void setPhaseInventories(int fi)
public int getProductionPhase(int state)
public void setWaitingList(Order anOrder)
public int getWaitingListLength()
public void setNewsList(News aNews)
public void setNOfPhasesToDealWith(int ns)
public int getNOfPhasesToDealWith()
public void addTickVariableCosts()
public void setTotalDailyCosts()
public void setTotalCosts()
public float getTotalDailyCosts()
public float getTotalCosts()
public float getDailySaleRevenues()
public void setTotalSaleRevenues()
public float getTotalSaleRevenues()
public float getTotalFinishedOrderCosts()
public void setTotalInventoryFinancialCosts()
public float getTotalInventoryFinancialCosts()
public void setStoredComponentDailyValue()
public float getDailyStoredComponentValue()
public boolean getUseWarehouseLocalChoice()
public int getPhaseNumberToProduceInventories()
public java.lang.String getLabel()
getLabel
in interface PTHistogramPlottable
public double getValueToPlot()
getValueToPlot
in interface PTHistogramPlottable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |