|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectswarm.BaseImpl
swarm.objectbase.SwarmImpl
ESFrameModelSwarm
The Model contains the Units
Field Summary | |
int |
increasingVisibilityStep
increasing visibility in each step 1 of each unit |
int |
initialPotentialUnitNumber
the total number of operating Units we are using |
int |
interVisibilityMinLevel
the min level of inter-visibility; below this level two units cannot exchange products |
int |
maxInactivity
max inactivity value |
int |
maxStartingVisibility
the max starting visibility |
int |
maxStepLength
the max length of a step in a recipe (in units of time) |
int |
maxStepNumber
|
int |
maxUnsentProducts
max quantity of unsent products |
int |
minStartingVisibility
the min starting visibility |
swarm.activity.ActionGroup |
modelActions2
ActionGroup for holding an ordered sequence of action (the numbers of the model action names are the same used in the full jES model, so some are lacking in this version) |
swarm.activity.ActionGroup |
modelActions2b
ActionGroup for holding an ordered sequence of action (the numbers of the model action names are the same used in the full jES model, so some are lacking in this version) |
swarm.activity.ActionGroup |
modelActions2generator
ActionGroup for holding an ordered sequence of action (the numbers of the model action names are the same used in the full jES model, so some are lacking in this version) |
swarm.activity.Schedule |
modelSchedule
the Schedule operating in the Model |
swarm.collections.ListShufflerImpl |
myShuffler
a shuffler for the list |
OrderGenerator |
orderGenerator
the order generator |
swarm.collections.ListImpl |
proFormaUnitList
the list of the pro forma units (all the "would be" units) |
int |
repeatUnitGeneration
repetition in unit creation if repeatUnitGeneration > 1 each type of unit (as in each row of unitData/unitBasicData.txt) can be be created in multiple copies, always applying unitGenerationInitialP; unit number are unit*100+repetition factor (if repeatUnitGeneration > 99 we have nonsense numbers) |
float |
totalProductionTime
the total production time used by done orders |
float |
totalRecipeLength
the total length of the recipes of the done orders |
UnitActivitySpace |
unitActivitySpace
the unit activity space, always metaphoric |
double |
unitGenerationInitialP
the probability of initial generation of a unit, listed into the unit directory |
swarm.collections.ListImpl |
unitList
the list of the operating units |
swarm.collections.ListIndex |
unitListIndex
its iterator |
UnitParameters |
unitParameters
the input class for unit parameters |
swarm.space.Grid2dImpl |
unitSpace
the unit space (a metaphorical one) |
int |
unitSpaceXSize
the X size of the unit space |
int |
unitSpaceYSize
the Y size of the unit space |
Constructor Summary | |
ESFrameModelSwarm(swarm.defobj.Zone aZone)
|
Method Summary | |
swarm.activity.Activity |
activateIn(swarm.objectbase.Swarm swarmContext)
Now set up the model's activation. swarmContext indicates where we're being started in - typically, this model is run as a subswarm of an observer swarm. |
java.lang.Object |
buildActions()
Here is where the model schedule is built, the data structures that define the simulation of time in the model. |
java.lang.Object |
buildObjects()
Build the model objects. |
void |
dropUnits()
dropping units |
float |
getTimeLengthRatio()
report the ratio totalProductionTime/totalRecipeLength |
UnitActivitySpace |
getUnitActivitySpace()
return the unitActivitySpace address |
java.lang.Object |
getUnitList()
the method returns the list of the units |
swarm.space.Grid2dImpl |
getUnitSpace()
return the unitSpace |
void |
setProductionTimeAndRecipeLength(float pt,
float rl)
record total production time and total recipe length |
void |
shuffleUnitList()
shuffling the unitList |
Methods inherited from class swarm.objectbase.SwarmImpl |
allocIVars, allocIVarsComponent, compare, copyIVars, copyIVarsComponent, describe, describeForEach, describeForEachID, describeID, drop, freeIVars, freeIVarsComponent, getActivity, getCompleteProbeMap, getComponentZone, getDisplayName, getInternalZone, getName, getPageSize, getPopulation, getProbeForVariable, getProbeMap, getSynchronizationType, 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 initialPotentialUnitNumber
public double unitGenerationInitialP
public int repeatUnitGeneration
public int maxStepNumber
public int maxStepLength
public float totalProductionTime
public float totalRecipeLength
public int unitSpaceXSize
public int unitSpaceYSize
public swarm.space.Grid2dImpl unitSpace
public UnitActivitySpace unitActivitySpace
public int minStartingVisibility
public int maxStartingVisibility
public int interVisibilityMinLevel
public int increasingVisibilityStep
public int maxInactivity
public int maxUnsentProducts
public OrderGenerator orderGenerator
public swarm.activity.ActionGroup modelActions2
public swarm.activity.ActionGroup modelActions2b
public swarm.activity.ActionGroup modelActions2generator
public swarm.activity.Schedule modelSchedule
public UnitParameters unitParameters
public swarm.collections.ListImpl unitList
public swarm.collections.ListIndex unitListIndex
public swarm.collections.ListShufflerImpl myShuffler
public swarm.collections.ListImpl proFormaUnitList
Constructor Detail |
public ESFrameModelSwarm(swarm.defobj.Zone aZone)
Method Detail |
public java.lang.Object buildObjects()
public java.lang.Object buildActions()
public swarm.activity.Activity activateIn(swarm.objectbase.Swarm swarmContext)
public java.lang.Object getUnitList()
public void shuffleUnitList()
public void dropUnits()
public void setProductionTimeAndRecipeLength(float pt, float rl)
public float getTimeLengthRatio()
public swarm.space.Grid2dImpl getUnitSpace()
public UnitActivitySpace getUnitActivitySpace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |