|
||||||||||
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 for each unit
Field Summary | |
int[] |
simpleUnitProductionPhase
the vector of simple unit production phase (simple=with a unique activity) |
int |
totalUnitNumber
total unit number |
int[] |
unitNumber
the vector of the unit numbers |
Constructor Summary | |
UnitParameters(swarm.defobj.Zone aZone,
int un)
the constructor of UnitParameters |
Method Summary | |
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 |
void |
lackingData(java.lang.String s)
conclude execution if data are lacking |
void |
readUnitData()
read the unit numbers and production phasesvfrom the unitData/unitBasicData.txt file |
void |
setParametersTo(int i,
Unit aUnit)
setting the parameters of (normal) 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 int totalUnitNumber
Constructor Detail |
public UnitParameters(swarm.defobj.Zone aZone, int un)
Method Detail |
public void readUnitData()
public void setParametersTo(int i, Unit aUnit)
public int getUnitNumber(int i)
public int getSimpleUnitProductionPhase(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 |