|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swarm.BaseImpl | +--swarm.objectbase.SwarmObjectImpl | +--UnitParameters
This class reads the parameters (costs and prodocution phases) for each unit
Field Summary | |
int[] |
endUnitNumber
the vector of the end unit numbers (which are also their end code) |
float[] |
fixedCosts
the vector of the fixed costs (per day or time step) of each unit |
int[] |
simpleUnitProductionPhase
the vector of simple unit production phase (simple=with a unique activity) |
int |
totalEndUnitNumber
total and end unit number |
int |
totalUnitNumber
total and end unit number |
int[] |
unitNumber
the vector of the unit numbers |
int[] |
useWarehouseLocalChoice
the number of the units (the size of the vectors) |
float[] |
variableCosts
the vector of the variable costs (per day or time step) of each unit |
boolean |
worksheetUnitFileOpen
check if we are using an Excel like (generated by Office or OpenOffice) file containing special unit data |
Constructor Summary | |
UnitParameters(swarm.defobj.Zone aZone,
int un,
int eun)
the constructor of UnitParameters |
Method Summary | |
int |
getEndUnitNumber(int i)
returning the unit number for a specific endUnit |
float |
getFixedCosts(int i)
returning the fixed cost for a specific unit |
int |
getSimpleUnitProductionPhase(int i)
returning the production phase for a specific simple unit |
int |
getUnitNumber(int i)
returning the unit number for a specific (normal) unit |
int |
getUseWarehouseLocalChoice(int i)
returning the local use of the warehouse for a specific unit |
float |
getVariableCosts(int i)
returning the variable cost for a specific unit |
void |
lackingData(java.lang.String s)
conclude execution if data are lacking |
void |
readUnitData()
read (i) the unit numbers, production phases, fixed costs and variable costs from the unitData/unitBasicData.txt file (ii) the end unit numbers from the unitData/endUnitList.txt file |
void |
setParametersTo(int i,
Unit aUnit)
setting the parameters of (normal) units |
void |
setParametersToEndUnit(int i,
EndUnit anEndUnit)
setting the parameters of end units |
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[] simpleUnitProductionPhase
public float[] fixedCosts
public float[] variableCosts
public int[] useWarehouseLocalChoice
public int[] endUnitNumber
public int totalUnitNumber
public int totalEndUnitNumber
public boolean worksheetUnitFileOpen
Constructor Detail |
public UnitParameters(swarm.defobj.Zone aZone, int un, int eun)
Method Detail |
public void readUnitData()
public void setParametersTo(int i, Unit aUnit)
public void setParametersToEndUnit(int i, EndUnit anEndUnit)
public int getUnitNumber(int i)
public int getEndUnitNumber(int i)
public int getSimpleUnitProductionPhase(int i)
public float getFixedCosts(int i)
public float getVariableCosts(int i)
public int getUseWarehouseLocalChoice(int i)
public void lackingData(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |