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 boolean computationalStepsInUse
          the use of computational steps
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 boolean[] shuffleListsAtEachAssignmentVector
          the vector of shuffleListsAtEachAssignment values
static int stratumNumber
          the number of strata (models) in this run
static boolean[] uniqueAssignmentInEachCycleVector
          the vector of uniqueAssignmentInEachCycle values
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 boolean getComputationalStepsInUse()
          getting the computationalStepsInUse status
static java.lang.Object getESFrameModelSwarm(int stratum)
          getting a specific model
static double getInterVisibilityMinLevel(int stratum)
          getting a specific interVisibilityMinLevel
static int getModelNumbersRandomlyReordered(int stratum)
          getting randomly reordered numbers
static boolean getShuffleListsAtEachAssignment(int stratum)
          getting a specific shuffleListsAtEachAssignment value
static int getStratumNumber()
          getting the number of strata in this run
static boolean getUniqueAssignmentInEachCycle(int stratum)
          getting a specific uniqueAssignmentInEachCycle value
static java.lang.Object getUnitActivitySpaceFromModel(int stratum)
          getting a specific unitActivitySpace
static java.lang.Object getUnitListFromModelSequence(int stratum)
          getting a specific unitList from model sequence
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 setComputationalStepsInUse(boolean s)
          setting the computationalStepsInUse status
static void setInformationFromModel(int stratum, swarm.collections.ListImpl unitList, swarm.collections.ListIndex unitListIndex, UnitActivitySpace unitActivitySpace, double interVisibilityMinLevel, boolean uniqueAssignmentInEachCycle, boolean shuffleListsAtEachAssignment)
          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

computationalStepsInUse

public static boolean computationalStepsInUse
the use of computational steps


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


uniqueAssignmentInEachCycleVector

public static boolean[] uniqueAssignmentInEachCycleVector
the vector of uniqueAssignmentInEachCycle values


shuffleListsAtEachAssignmentVector

public static boolean[] shuffleListsAtEachAssignmentVector
the vector of shuffleListsAtEachAssignment values


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,
                                           boolean uniqueAssignmentInEachCycle,
                                           boolean shuffleListsAtEachAssignment)
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


getUnitListFromModelSequence

public static java.lang.Object getUnitListFromModelSequence(int stratum)
getting a specific unitList from 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


getUniqueAssignmentInEachCycle

public static boolean getUniqueAssignmentInEachCycle(int stratum)
getting a specific uniqueAssignmentInEachCycle value


getShuffleListsAtEachAssignment

public static boolean getShuffleListsAtEachAssignment(int stratum)
getting a specific shuffleListsAtEachAssignment value


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


getComputationalStepsInUse

public static boolean getComputationalStepsInUse()
getting the computationalStepsInUse status


setComputationalStepsInUse

public static void setComputationalStepsInUse(boolean s)
setting the computationalStepsInUse status


getModelNumbersRandomlyReordered

public static int getModelNumbersRandomlyReordered(int stratum)
getting randomly reordered numbers