Class InformationRepository

java.lang.Object
  extended byInformationRepository

public class InformationRepository
extends java.lang.Object

A static class used to distribute information among models

Author:
Pietro Terna

Field Summary
static swarm.collections.ArrayImpl eSFrameModelSwarmArray
          the array of the models
static double[] interVisibilityMinLevelVector
          the vector of interVisibilityMinLevel
static int[] modelNumbers
          the vectors with model numbers
static int[] modelNumbersRandomlyReordered
          the vectors with model numbers
static int stratumNumber
          the number of strata (models) in this run
static swarm.collections.ArrayImpl unitActivitySpaceArray
          the arrays of unitList, unitListIndex, unitActivitySpace
static swarm.collections.ArrayImpl unitListArray
          the arrays of unitList, unitListIndex, unitActivitySpace
static swarm.collections.ArrayImpl unitListIndexArray
          the arrays of unitList, unitListIndex, unitActivitySpace
 
Constructor Summary
InformationRepository()
           
 
Method Summary
static void createArraysAndVectors(swarm.defobj.Zone aZone, int ln)
          the creation of the list memory spaces, once in a run, from the first model
static java.lang.Object getESFrameModelSwarm(int stratum)
          getting a specific model
static double getInterVisibilityMinLevel(int stratum)
          getting a specific interVisibilityMinLevel
static int getStratumNumber()
          getting the number of strata in this run
static java.lang.Object getUnitActivitySpaceFromModel(int stratum)
          getting a specific unitActivitySpace
static java.lang.Object getUnitListFromReorderedModelSequence(int stratum)
          getting a specific unitList from random model sequence
static java.lang.Object getUnitListIndexFromReorderedModelSequence(int stratum)
          getting a specific unitListIndex from random model sequence
static void setInformationFromModel(int stratum, swarm.collections.ListImpl unitList, swarm.collections.ListIndex unitListIndex, UnitActivitySpace unitActivitySpace, double interVisibilityMinLevel)
          setting information, from each model
static void setInformationFromObserver(swarm.collections.ArrayImpl modelA)
          setting information, from the observer
static void setModelSequence()
          shuffling in each cycle, from the first model schedule, the model order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eSFrameModelSwarmArray

public static swarm.collections.ArrayImpl eSFrameModelSwarmArray
the array of the models


unitListArray

public static swarm.collections.ArrayImpl unitListArray
the arrays of unitList, unitListIndex, unitActivitySpace


unitListIndexArray

public static swarm.collections.ArrayImpl unitListIndexArray
the arrays of unitList, unitListIndex, unitActivitySpace


unitActivitySpaceArray

public static swarm.collections.ArrayImpl unitActivitySpaceArray
the arrays of unitList, unitListIndex, unitActivitySpace


interVisibilityMinLevelVector

public static double[] interVisibilityMinLevelVector
the vector of interVisibilityMinLevel


modelNumbers

public static int[] modelNumbers
the vectors with model numbers


modelNumbersRandomlyReordered

public static int[] modelNumbersRandomlyReordered
the vectors with model numbers


stratumNumber

public static int stratumNumber
the number of strata (models) in this run

Constructor Detail

InformationRepository

public InformationRepository()
Method Detail

createArraysAndVectors

public static void createArraysAndVectors(swarm.defobj.Zone aZone,
                                          int ln)
the creation of the list memory spaces, once in a run, from the first model


setInformationFromObserver

public static void setInformationFromObserver(swarm.collections.ArrayImpl modelA)
setting information, from the observer


setInformationFromModel

public static void setInformationFromModel(int stratum,
                                           swarm.collections.ListImpl unitList,
                                           swarm.collections.ListIndex unitListIndex,
                                           UnitActivitySpace unitActivitySpace,
                                           double interVisibilityMinLevel)
setting information, from each model


setModelSequence

public static void setModelSequence()
shuffling in each cycle, from the first model schedule, the model order


getUnitListFromReorderedModelSequence

public static java.lang.Object getUnitListFromReorderedModelSequence(int stratum)
getting a specific unitList from random model sequence


getUnitListIndexFromReorderedModelSequence

public static java.lang.Object getUnitListIndexFromReorderedModelSequence(int stratum)
getting a specific unitListIndex from random model sequence


getUnitActivitySpaceFromModel

public static java.lang.Object getUnitActivitySpaceFromModel(int stratum)
getting a specific unitActivitySpace


getInterVisibilityMinLevel

public static double getInterVisibilityMinLevel(int stratum)
getting a specific interVisibilityMinLevel


getESFrameModelSwarm

public static java.lang.Object getESFrameModelSwarm(int stratum)
getting a specific model


getStratumNumber

public static int getStratumNumber()
getting the number of strata in this run