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 swarm.collections.ListImpl hibernatedComputationalAssemblerList
          the list of the hibernated this list is used to manage the virtually dropped memoryMatrixes
static swarm.collections.ListImpl hibernatedComputationalSpecificationSetList
          the list of the hibernated this list is used to manage the virtually dropped memoryMatrixes
static swarm.collections.ListImpl hibernatedMemoryMatrixList
          the list of the hibernated memoryMatrixes this list is used to manage the virtually dropped memoryMatrixes
static swarm.collections.ListImpl hibernatedOrderList
          the list of the hibernated orders this list is used to manage the virtually dropped orders
static swarm.collections.ListImpl hibernatedUnitList
          the list of the hibernated units this list is used to manage the virtually dropped units
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 addToHibernatedComputationalAssemblerList(ComputationalAssembler aComputationalAssembler)
          adding an order to the hibernatedComputationalAssemblerList
static void addToHibernatedComputationalSpecificationSetList(ComputationalSpecificationSet aComputationalSpecificationSet)
          adding an order to the hibernatedComputationalSpecificationSetList
static void addToHibernatedMemoryMatrixList(MemoryMatrix aMemoryMatrix)
          adding an order to the hibernatedMemoryMatrixList
static void addToHibernatedOrderList(Order anOrder)
          adding an order to the hibernatedOrderList
static void addToHibernatedUnitList(Unit aUnit)
          adding a unit to the hibernatedUnitList
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 int getCountFromHibernatedComputationalAssemblerList()
          getting the count of the hibernatedComputationalAssemblerList
static int getCountFromHibernatedComputationalSpecificationSetList()
          getting the count of the hibernatedComputationalSpecificationSetList
static int getCountFromHibernatedMemoryMatrixList()
          getting the count of the hibernatedMemoryMatrixList
static int getCountFromHibernatedOrderList()
          getting the count of the hibernatedOrderList
static int getCountFromHibernatedUnitList()
          getting the count of the hibernatedUnitList
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 ComputationalAssembler removeFromHibernatedComputationalAssemblerList()
          removing an order from the hibernatedComputationalAssemblerList
static ComputationalSpecificationSet removeFromHibernatedComputationalSpecificationSetList()
          removing an order from the hibernatedComputationalSpecificationSetList
static MemoryMatrix removeFromHibernatedMemoryMatrixList()
          removing an order from the hibernatedMemoryMatrixList
static Order removeFromHibernatedOrderList()
          removing an order from the hibernatedOrderList
static Unit removeFromHibernatedUnitList()
          removing a unit from the hibernatedUnitList
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


hibernatedUnitList

public static swarm.collections.ListImpl hibernatedUnitList
the list of the hibernated units this list is used to manage the virtually dropped units


hibernatedOrderList

public static swarm.collections.ListImpl hibernatedOrderList
the list of the hibernated orders this list is used to manage the virtually dropped orders


hibernatedMemoryMatrixList

public static swarm.collections.ListImpl hibernatedMemoryMatrixList
the list of the hibernated memoryMatrixes this list is used to manage the virtually dropped memoryMatrixes


hibernatedComputationalSpecificationSetList

public static swarm.collections.ListImpl hibernatedComputationalSpecificationSetList
the list of the hibernated this list is used to manage the virtually dropped memoryMatrixes


hibernatedComputationalAssemblerList

public static swarm.collections.ListImpl hibernatedComputationalAssemblerList
the list of the hibernated this list is used to manage the virtually dropped memoryMatrixes

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


addToHibernatedUnitList

public static void addToHibernatedUnitList(Unit aUnit)
adding a unit to the hibernatedUnitList


removeFromHibernatedUnitList

public static Unit removeFromHibernatedUnitList()
removing a unit from the hibernatedUnitList


getCountFromHibernatedUnitList

public static int getCountFromHibernatedUnitList()
getting the count of the hibernatedUnitList


addToHibernatedOrderList

public static void addToHibernatedOrderList(Order anOrder)
adding an order to the hibernatedOrderList


removeFromHibernatedOrderList

public static Order removeFromHibernatedOrderList()
removing an order from the hibernatedOrderList


getCountFromHibernatedOrderList

public static int getCountFromHibernatedOrderList()
getting the count of the hibernatedOrderList


addToHibernatedMemoryMatrixList

public static void addToHibernatedMemoryMatrixList(MemoryMatrix aMemoryMatrix)
adding an order to the hibernatedMemoryMatrixList


removeFromHibernatedMemoryMatrixList

public static MemoryMatrix removeFromHibernatedMemoryMatrixList()
removing an order from the hibernatedMemoryMatrixList


getCountFromHibernatedMemoryMatrixList

public static int getCountFromHibernatedMemoryMatrixList()
getting the count of the hibernatedMemoryMatrixList


addToHibernatedComputationalSpecificationSetList

public static void addToHibernatedComputationalSpecificationSetList(ComputationalSpecificationSet aComputationalSpecificationSet)
adding an order to the hibernatedComputationalSpecificationSetList


removeFromHibernatedComputationalSpecificationSetList

public static ComputationalSpecificationSet removeFromHibernatedComputationalSpecificationSetList()
removing an order from the hibernatedComputationalSpecificationSetList


getCountFromHibernatedComputationalSpecificationSetList

public static int getCountFromHibernatedComputationalSpecificationSetList()
getting the count of the hibernatedComputationalSpecificationSetList


addToHibernatedComputationalAssemblerList

public static void addToHibernatedComputationalAssemblerList(ComputationalAssembler aComputationalAssembler)
adding an order to the hibernatedComputationalAssemblerList


removeFromHibernatedComputationalAssemblerList

public static ComputationalAssembler removeFromHibernatedComputationalAssemblerList()
removing an order from the hibernatedComputationalAssemblerList


getCountFromHibernatedComputationalAssemblerList

public static int getCountFromHibernatedComputationalAssemblerList()
getting the count of the hibernatedComputationalAssemblerList