|
||||||||||
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 | |
MemoryMatrix |
aMatrix
a memory matrix |
swarm.collections.ListImpl |
computationalAssemblerList
the list of computationalAssembler units linked to normal unit; comp. ass. units have in charge the task of making the computations |
float |
concludedOrders
concluded orders form the beginning of the simulation |
boolean |
createNumberOfUnitsGraph
create the display of the numberOfUnits |
boolean |
createProductionGraph
create the display of the production |
boolean |
createRatioGraph
create the display of the ratios |
float |
globalProduction
global production from the beginning of the run |
double |
increasingVisibilityStep
increasing visibility in each step 1 of each unit |
double |
interVisibilityMinLevel
the min level of inter-visibility; below this level two units cannot exchange products |
swarm.collections.ArrayImpl |
matrixArray
the array of memory matrixes to be used by computational objects |
int |
maxInactivity
max inactivity value |
double |
maxStartingVisibility
the max starting visibility |
int |
maxStepLength
the max length of a step in a recipe (in units of time) |
int |
maxStepNumber
|
int |
maxTicksAsUnsent
the max number of ticks that a product can spent in a unit |
int |
maxUnsentProducts
max quantity of unsent products |
double |
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 |
modelActions2distiller
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 |
double |
newUnitGenerationP
probability of unit new Unit generation while the simulation is running |
OrderDistiller |
orderDistiller
the order distiller, using archives of recipes and of order sequences to generate the simulated events |
OrderGenerator |
orderGenerator
the order generator |
float |
potentialProduction
potential production from the beginning of the run |
int |
potentialUnitNumberPerType
repetition in unit creation if potentialUnitNumberPerType > 1 each type of unit (as in each row of unitData? |
int |
potentialUnitTypes
the total number of operating Units we are using |
boolean |
printMatrixes
printMatrixes |
swarm.collections.ListImpl |
proFormaUnitList
the list of the pro forma units (all the "would be" units) |
boolean |
shuffleListsAtEachAssignment
shuffle the lists at each assignment in the AssigningTool (this is done beside the ordinary shuffle operations in each model schedule); the choice is related to the units belonging to this stratum |
boolean |
stopIfZeroUnits
stop if zero units in this model |
int |
stratum
the stratum of this model and the stratumNumber, i.e. the number of models, numbered from 0 to stratumNumber-1 |
int |
stratumNumber
the stratum of this model and the stratumNumber, i.e. the number of models, numbered from 0 to stratumNumber-1 |
int |
totalMemoryMatrixNumber
number of memory matrixes |
float |
totalProductionTime
the total production time used by done orders |
float |
totalRecipeLength
the total length of the recipes of the done orders |
boolean |
uniqueAssignmentInEachCycle
manage the lists in each cycle to have a unique assignment in each cycle to each unit in the AssigningTool; the choice is related to the units belonging to this stratum |
UnitActivitySpace |
unitActivitySpace
the unit activity space, always metaphoric |
byte |
unitColor
the color of the unit |
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 |
boolean |
useOrderDistiller
use the order distiller instead of the order generator |
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. |
void |
addToConcludedOrders(float d)
increasing/decreasing the value of the concluded orders |
void |
addToGlobalProduction(int d)
increasing/decreasing global production value |
void |
addToPotentialProduction(int d)
increasing potential production value |
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 model objects. |
Unit |
copyUnit(Unit oldUnit,
int rep)
unit copying |
void |
dropUnits()
dropping units |
void |
generateANewUnit()
|
void |
generateANewUnitFromAComputationalStep()
|
void |
generateUnit(int i,
int rep)
unit generation |
float |
getConcludedOrderSteps()
reporting the value of the concluded orders |
boolean |
getCreateNumberOfUnitsGraph()
return if we want to create the numberOfUnitsGraph |
boolean |
getCreateProductionGraph()
return if we want to create the productionGraph |
boolean |
getCreateRatioGraph()
return if we want to create the ratioGraph |
float |
getGlobalProduction()
reporting the global production value |
int |
getMaxInactivity()
getting the maxInactivity value |
int |
getMaxUnsentProducts()
getting the maxUnsentProducts value |
MemoryMatrix |
getMemoryMatrix(int matrixNumber)
return the address of a memory matrix |
float |
getNumberOfUnits()
report the number of units |
float |
getPotentialProduction()
reporting potential production value |
int |
getStratum()
getting the stratum of this model |
float |
getTimeLengthRatio()
report the ratio totalProductionTime/totalRecipeLength |
int |
getTotalMemoryMatrixNumber()
return the number of memory matrixes |
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 |
lackingData(java.lang.String s)
conclude execution if data are lacking |
void |
setMemoryMatrixPrintCapability(boolean pm)
option about the matrix print capabulity |
void |
setProductionTimeAndRecipeLength(float pt,
float rl)
record total production time and total recipe length |
void |
setStratum(int l,
int ln)
setting the stratum of this model |
void |
shuffleComputationalAssemblerList()
shuffling the computationalAssemblerList |
void |
shuffleModels()
shuffling the models |
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 potentialUnitTypes
public double unitGenerationInitialP
public int potentialUnitNumberPerType
public double newUnitGenerationP
public int maxStepNumber
public int maxStepLength
public int maxTicksAsUnsent
public float totalProductionTime
public float totalRecipeLength
public int unitSpaceXSize
public int unitSpaceYSize
public swarm.space.Grid2dImpl unitSpace
public UnitActivitySpace unitActivitySpace
public double minStartingVisibility
public double maxStartingVisibility
public double interVisibilityMinLevel
public double increasingVisibilityStep
public int maxInactivity
public int maxUnsentProducts
public byte unitColor
public float potentialProduction
public float globalProduction
public float concludedOrders
public boolean createNumberOfUnitsGraph
public boolean createProductionGraph
public boolean createRatioGraph
public int stratum
public int stratumNumber
public OrderGenerator orderGenerator
public boolean useOrderDistiller
public OrderDistiller orderDistiller
public swarm.activity.ActionGroup modelActions2
public swarm.activity.ActionGroup modelActions2b
public swarm.activity.ActionGroup modelActions2generator
public swarm.activity.ActionGroup modelActions2distiller
public swarm.activity.Schedule modelSchedule
public UnitParameters unitParameters
public swarm.collections.ListImpl unitList
public swarm.collections.ListIndex unitListIndex
public swarm.collections.ListShufflerImpl myShuffler
public boolean uniqueAssignmentInEachCycle
public boolean shuffleListsAtEachAssignment
public boolean stopIfZeroUnits
public swarm.collections.ListImpl proFormaUnitList
public swarm.collections.ArrayImpl matrixArray
public MemoryMatrix aMatrix
public swarm.collections.ListImpl computationalAssemblerList
public boolean printMatrixes
public int totalMemoryMatrixNumber
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 void generateUnit(int i, int rep)
public Unit copyUnit(Unit oldUnit, int rep)
public void generateANewUnit()
public void generateANewUnitFromAComputationalStep()
public java.lang.Object getUnitList()
public void shuffleUnitList()
public void shuffleComputationalAssemblerList()
public void shuffleModels()
public void dropUnits()
public void setProductionTimeAndRecipeLength(float pt, float rl)
public float getTimeLengthRatio()
public float getNumberOfUnits()
public swarm.space.Grid2dImpl getUnitSpace()
public void addToPotentialProduction(int d)
public float getPotentialProduction()
public void addToGlobalProduction(int d)
public float getGlobalProduction()
public void addToConcludedOrders(float d)
public float getConcludedOrderSteps()
public UnitActivitySpace getUnitActivitySpace()
public MemoryMatrix getMemoryMatrix(int matrixNumber)
public int getTotalMemoryMatrixNumber()
public void setMemoryMatrixPrintCapability(boolean pm)
public void lackingData(java.lang.String s)
public void setStratum(int l, int ln)
public int getStratum()
public boolean getCreateNumberOfUnitsGraph()
public boolean getCreateProductionGraph()
public boolean getCreateRatioGraph()
public int getMaxInactivity()
public int getMaxUnsentProducts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |