uk.ac.leeds.ccg.andyt.grids.core
Class Grids_Environment

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
      extended by uk.ac.leeds.ccg.andyt.grids.core.Grids_OutOfMemoryErrorHandler
          extended by uk.ac.leeds.ccg.andyt.grids.core.Grids_Environment
All Implemented Interfaces:
java.io.Serializable, Grids_OutOfMemoryErrorHandlerInterface

public class Grids_Environment
extends Grids_OutOfMemoryErrorHandler
implements java.io.Serializable, Grids_OutOfMemoryErrorHandlerInterface

See Also:
Serialized Form

Field Summary
protected  java.util.HashSet<AbstractGrid2DSquareCell> _AbstractGrid2DSquareCell_HashSet
          A HashSet of AbstractGrid2DSquareCell objects that have data that can be swapped to release memory for processing.
protected  java.io.File _Directory
          Local _Directory used for caching.
protected  boolean dataToSwap
           
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grids_OutOfMemoryErrorHandler
Memory_Threshold
 
Fields inherited from class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
_Generic_TestMemory, _HandleOutOfMemoryError_boolean, _MemoryReserve, Default_Memory_Threshold, HandleOutOfMemoryErrorFalse, HandleOutOfMemoryErrorTrue
 
Constructor Summary
Grids_Environment()
           
 
Method Summary
static void combine(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> toGetCombined, java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> toCombine)
          Modifies toGetCombined by adding all mapping from toCombine if they have new keys.
 java.util.HashSet<AbstractGrid2DSquareCell> get_AbstractGrid2DSquareCell_HashSet()
           
 uk.ac.leeds.ccg.andyt.generic.math.Generic_BigDecimal get_Generic_BigDecimal()
           
protected  void init_AbstractGrid2DSquareCell_HashSet()
          Initialises _AbstractGrid2DSquareCell_HashSet if ( this._AbstractGrid2DSquareCell_HashSet == null ) { this._AbstractGrid2DSquareCell_HashSet = new HashSet(); }
protected  void init_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
          Initialises _AbstractGrid2DSquareCell_HashSet if ( this._AbstractGrid2DSquareCell_HashSet == null ) { this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet; } else { //System.err.println( this.getClass().getName() + ".init_AbstractGrid2DSquareCell_HashSet(HashSet)" ); if ( a_AbstractGrid2DSquareCell_HashSet == null ) { // Debug this._AbstractGrid2DSquareCell_HashSet = new HashSet(); } else { this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet; } }
protected  void init_Grid2DSquareCells_MemoryReserve(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
           
 void init_Grid2DSquareCells_MemoryReserve(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet, boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(boolean handleOutOfMemoryError)
           
 long init_MemoryReserve_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
           
 void init_MemoryReserve(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 void init_MemoryReserve(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
          Initialises _MemoryReserve.
 boolean isDataToSwap()
           
protected  void set_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
          this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet;
 void set_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet, boolean handleOutOfMemoryError)
          Sets this._AbstractGrid2DSquareCell_HashSet to _AbstractGrid2DSquareCell_HashSet
 void setGeneric_BigDecimal(uk.ac.leeds.ccg.andyt.generic.math.Generic_BigDecimal a_Generic_BigDecimal)
           
 void swapToFile_Data()
           
 void swapToFile_Data(boolean handleOutOfMemoryError)
           
 boolean swapToFile_DataAny()
           
 boolean swapToFile_DataAny(boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunk_Account()
           
 long swapToFile_Grid2DSquareCellChunk_Account(boolean handleOutOfMemoryError)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunk_AccountDetail()
          Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunk_AccountDetail(boolean handleOutOfMemoryError)
          Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
protected  boolean swapToFile_Grid2DSquareCellChunk()
          Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
 void swapToFile_Grid2DSquareCellChunk(boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
protected  long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
 long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
 long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunkExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkIDHashSet, boolean handleOutOfMemoryError)
           
protected  void swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
protected  boolean swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell a_AbstractGrid2DSquareCell)
          Swap to File any AbstractGrid2DSquareCell.Chunk in this._AbstractGrid2DSquareCell_HashSet except one in a_AbstractGrid2DSquareCell.
 void swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell a_AbstractGrid2DSquareCell, boolean handleOutOfMemoryError)
          Swap to File any AbstractGrid2DSquareCell.Chunk in this._AbstractGrid2DSquareCell_HashSet except one in a_AbstractGrid2DSquareCell.
protected  void swapToFile_Grid2DSquareCellChunkExcept(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)
           
protected  long swapToFile_Grid2DSquareCellChunks_Account()
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
 long swapToFile_Grid2DSquareCellChunks_Account(boolean handleOutOfMemoryError)
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunks_AccountDetail()
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunks_AccountDetail(boolean handleOutOfMemoryError)
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
protected  boolean swapToFile_Grid2DSquareCellChunks()
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
 void swapToFile_Grid2DSquareCellChunks(boolean handleOutOfMemoryError)
          Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.
protected  long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
protected  long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
           
 long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
           
protected  long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkIDs in a_ChunkID_HashSet.
protected  long swapToFile_Grid2DSquareCellChunksExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)
           
 long swapToFile_Grid2DSquareCellChunksExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
           
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
          Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.
protected  java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account()
          A method to try to ensure there is enough memory to continue.
 java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
 java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)
           
 long tryToEnsureThereIsEnoughMemoryToContinue_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail()
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)
           
 java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue()
           
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to try to ensure there is enough memory to continue.
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell)
           
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID)
           
 void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell, AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
          A method to try to ensure there is enough memory to continue.
 void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell, boolean handleOutOfMemoryError)
          A method to try to ensure there is enough memory to continue.
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
           
 void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell, java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet, boolean handleOutOfMemoryError)
          A method to ensure there is enough memory to continue.
 boolean tryToEnsureThereIsEnoughMemoryToContinue(boolean handleOutOfMemoryError)
          A method to try to ensure there is enough memory to continue.
protected  boolean tryToEnsureThereIsEnoughMemoryToContinue(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)
           
 void tryToEnsureThereIsEnoughMemoryToContinue(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap, boolean handleOutOfMemoryError)
          A method to try to ensure there is enough memory to continue.
 
Methods inherited from class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
clear_MemoryReserve, get_Generic_TestMemory, get_MemoryReserve, getRuntime, getTotalFreeMemory, getTotalFreeMemory, init_MemoryReserve, init_MemoryReserve, init_MemoryReserve, initFile, initFile, initFileDirectory, initString, initString, println, set_MemoryReserve, sin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Directory

protected transient java.io.File _Directory
Local _Directory used for caching. TODO If this were not transient upon reloading, it would be possible to ascertain what it was which might be useful.


_AbstractGrid2DSquareCell_HashSet

protected transient java.util.HashSet<AbstractGrid2DSquareCell> _AbstractGrid2DSquareCell_HashSet
A HashSet of AbstractGrid2DSquareCell objects that have data that can be swapped to release memory for processing.


dataToSwap

protected boolean dataToSwap
Constructor Detail

Grids_Environment

public Grids_Environment()
Method Detail

get_Generic_BigDecimal

public uk.ac.leeds.ccg.andyt.generic.math.Generic_BigDecimal get_Generic_BigDecimal()
Returns:
the _Generic_BigDecimal

setGeneric_BigDecimal

public void setGeneric_BigDecimal(uk.ac.leeds.ccg.andyt.generic.math.Generic_BigDecimal a_Generic_BigDecimal)
Parameters:
Generic_BigDecimal - the _Generic_BigDecimal to set

init_AbstractGrid2DSquareCell_HashSet

protected void init_AbstractGrid2DSquareCell_HashSet()
Initialises _AbstractGrid2DSquareCell_HashSet if ( this._AbstractGrid2DSquareCell_HashSet == null ) { this._AbstractGrid2DSquareCell_HashSet = new HashSet(); }


init_AbstractGrid2DSquareCell_HashSet

protected void init_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
Initialises _AbstractGrid2DSquareCell_HashSet if ( this._AbstractGrid2DSquareCell_HashSet == null ) { this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet; } else { //System.err.println( this.getClass().getName() + ".init_AbstractGrid2DSquareCell_HashSet(HashSet)" ); if ( a_AbstractGrid2DSquareCell_HashSet == null ) { // Debug this._AbstractGrid2DSquareCell_HashSet = new HashSet(); } else { this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet; } }


get_AbstractGrid2DSquareCell_HashSet

public java.util.HashSet<AbstractGrid2DSquareCell> get_AbstractGrid2DSquareCell_HashSet()
Returns:
this._AbstractGrid2DSquareCell_HashSet.

set_AbstractGrid2DSquareCell_HashSet

public void set_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet,
                                                 boolean handleOutOfMemoryError)
Sets this._AbstractGrid2DSquareCell_HashSet to _AbstractGrid2DSquareCell_HashSet

Parameters:
_AbstractGrid2DSquareCell_HashSet - The HashSet this._AbstractGrid2DSquareCell_HashSet is set to.

set_AbstractGrid2DSquareCell_HashSet

protected void set_AbstractGrid2DSquareCell_HashSet(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
this._AbstractGrid2DSquareCell_HashSet = a_AbstractGrid2DSquareCell_HashSet;


init_Grid2DSquareCells_MemoryReserve

public void init_Grid2DSquareCells_MemoryReserve(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet,
                                                 boolean handleOutOfMemoryError)
Parameters:
_AbstractGrid2DSquareCell_HashSet - A HashSet used for initialisation.

init_Grid2DSquareCells_MemoryReserve

protected void init_Grid2DSquareCells_MemoryReserve(java.util.HashSet<AbstractGrid2DSquareCell> a_AbstractGrid2DSquareCell_HashSet)
Parameters:
_AbstractGrid2DSquareCell_HashSet - A HashSet used for initialisation.

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(boolean handleOutOfMemoryError)
Initialises _MemoryReserve.

Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_Account

public long init_MemoryReserve_Account(boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve

public final void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                     boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_Account(_Grid2DSquareCell) (if that returns null then it calls swapToFile_Grid2DSquareCellChunk()) then recurses.

Specified by:
init_MemoryReserve in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_Grid2DSquareCell -
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve

public final void init_MemoryReserve(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                     boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_ChunkID,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_ChunkID -
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                        boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_ChunkID,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_ChunkID -
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_Account

public long init_MemoryReserve_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                       boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve

public final void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                     AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                     boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_Grid2DSquareCell,_ChunkID,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_Grid2DSquareCell -
a_ChunkID -
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_Account

public long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                       AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                       boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                        AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                        boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_Grid2DSquareCell,_ChunkID,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_Grid2DSquareCell -
a_ChunkID -
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                        java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                                                                                                                        boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                        boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve_Account

public long init_MemoryReserve_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                                       boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve_Account

public long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                       boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve_Account

public long init_MemoryReserve_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                       java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                       boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_Account in interface Grids_OutOfMemoryErrorHandlerInterface

init_MemoryReserve

public final void init_MemoryReserve(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                     java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                     boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_Grid2DSquareCell,a_ChunkID_HashSet,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
a_Grid2DSquareCell -
a_ChunkID_HashSet - HashSet of AbstractGrid2DSquareCell.ChunkIDs
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve

public void init_MemoryReserve(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                               boolean handleOutOfMemoryError)
Initialises _MemoryReserve. If an OutOfMemoryError is encountered this calls swapToFile_Grid2DSquareCellChunksExcept_AccountSuccess(_Grid2DSquareCell_ChunkIDHashSet,handleOutOfMemoryError) then recurses.

Specified by:
init_MemoryReserve in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
_Grid2DSquareCell_ChunkIDHashSet_HashMap - HashMap with AbstractGrid2DSquareCell as keys and a respective HashSet of AbstractGrid2DSquareCell.ChunkIDs. Identifying those ChunkIDs not to be swapped from the AbstractGrid2DSquareCell.
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

init_MemoryReserve_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> init_MemoryReserve_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                                                                                                                                        boolean handleOutOfMemoryError)
Specified by:
init_MemoryReserve_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface

tryToEnsureThereIsEnoughMemoryToContinue

public boolean tryToEnsureThereIsEnoughMemoryToContinue(boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. If not enough data is found to swap then an OutOfMemoryError is thrown.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface
Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue()
Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler

tryToEnsureThereIsEnoughMemoryToContinue

public void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                     boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. No data is swapped from a_Grid2DSquareCell. If not enough data is found to swap then an OutOfMemoryError is thrown.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell)

tryToEnsureThereIsEnoughMemoryToContinue

public void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                     AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                     boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. The Chunk with a_ChunkID from a_Grid2DSquareCell is not swapped. If not enough data is found to swap then an OutOfMemoryError is thrown.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                           AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue

public void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                     boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. No data is swapped with a_ChunkID. If not enough data is found to swap then an OutOfMemoryError is thrown.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue

public void tryToEnsureThereIsEnoughMemoryToContinue(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                                                     boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. No data is swapped as identified by a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap. If not enough data is found to swap then an OutOfMemoryError is thrown.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)

tryToEnsureThereIsEnoughMemoryToContinue

public void tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                     java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                                     boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped in a_Grid2DSquareCell that has ChunkID in a_ChunkID_HashSet.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -

tryToEnsureThereIsEnoughMemoryToContinue

protected boolean tryToEnsureThereIsEnoughMemoryToContinue(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                           java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. An attempt at Grids internal memory handling is performed if an OutOfMemoryError is encountered and handleOutOfMemoryError is true. This method may throw an OutOfMemoryError if there is not enough data to swap in Grids.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account()
A method to try to ensure there is enough memory to continue. This method quickly returns null if there is enough memory to continue. If there is not enough memory to continue it will attempt to make room. If successful, this will return an Object[] with the first element being a Boolean with value true. The second element being a HashMap> indicating the data that was swapped. If unsuccessful, this will return an Object[] with the first element being a Boolean with value false. The second element being a HashMap> indicating the data that was swapped.

Returns:
Either null or an Object[] of length 2 with first element a Boolean and second element a HashMap>.

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                             boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped from a_Grid2DSquareCell.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                             AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                             boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. The Chunk with a_ChunkID from a_Grid2DSquareCell is not swapped.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                           AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                             boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped with a_ChunkID.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                                                             boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped as identified by a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)

tryToEnsureThereIsEnoughMemoryToContinue_Account

public long tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                             java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                                             boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped as identified by a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_Account in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
Number of chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_Account

public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                           java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. An attempt at Grids internal memory handling is performed if an OutOfMemoryError is encountered and handleOutOfMemoryError is true. This method may throw an OutOfMemoryError if there is not enough data to swap in Grids.

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
handleOutOfMemoryError -
Returns:
Number of chunks swapped. A method to ensure there is enough memory to continue. For this to work accounting must be less expesive in terms of data size than swapping data!

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail()
A method to ensure there is enough memory to continue. This method will quickly return null if there is enough memory to continue. If there is not enough memory to continue it will attempt to make room. If successful, this will return an Object[] with the first element being a Boolean with value true. The second element being a HashMap> indicating the data that was swapped. If unsuccessful, this will return an Object[] with the first element being a Boolean with value false. The second element being a HashMap> indicating the data that was swapped.

Returns:
Either null or an Object[] of length 2 with first element a Boolean and second element a HashMap>.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                              boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped from a_Grid2DSquareCell. For this to work accounting must be less expesive in terms of data size than swapping data!

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
HashMap> identifying chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                              AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                                              boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. The Chunk with a_ChunkID from a_Grid2DSquareCell is not swapped. For this to work accounting must be less expesive in terms of data size than swapping data!

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
HashMap> identifying chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                    AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                                              boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped with a_ChunkID. For this to work accounting must be less expesive in terms of data size than swapping data!

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
HashMap> identifying chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap,
                                                                                                                                                              boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped as identified by a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap. For this to work accounting must be less expesive in terms of data size than swapping data!

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
HashMap> identifying chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap)

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                              java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                                                                                                                                              boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue. No data is swapped as identified by a_AbstractGrid2DSquareCell_ChunkID_HashSet_HashMap. For this to work accounting must be less expesive in terms of data size than swapping data!

Specified by:
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail in interface Grids_OutOfMemoryErrorHandlerInterface
Parameters:
handleOutOfMemoryError -
Returns:
HashMap> identifying chunks swapped.

tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail

protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                    java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)

swapToFile_Grid2DSquareCellChunks_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunks_AccountDetail(boolean handleOutOfMemoryError)
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.

Parameters:
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught in this method then swap operations are initiated prior to retrying. If false then OutOfMemoryErrors are caught and thrown.

swapToFile_Grid2DSquareCellChunks_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunks_AccountDetail()
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.


swapToFile_Grid2DSquareCellChunks_Account

public long swapToFile_Grid2DSquareCellChunks_Account(boolean handleOutOfMemoryError)
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.

Parameters:
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught in this method then swap operations are initiated prior to retrying. If false then OutOfMemoryErrors are caught and thrown.

swapToFile_Grid2DSquareCellChunks_Account

protected long swapToFile_Grid2DSquareCellChunks_Account()
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.


swapToFile_Grid2DSquareCellChunks

public void swapToFile_Grid2DSquareCellChunks(boolean handleOutOfMemoryError)
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.

Parameters:
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught in this method then swap operations are initiated prior to retrying. If false then OutOfMemoryErrors are caught and thrown.

swapToFile_Grid2DSquareCellChunks

protected boolean swapToFile_Grid2DSquareCellChunks()
Attempts to swap all AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.


swapToFile_Grid2DSquareCellChunk_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunk_AccountDetail(boolean handleOutOfMemoryError)
Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet. This is the lowest level of OutOfMemoryError handling in this class.

Parameters:
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught in this method then swap operations are initiated prior to retrying. If false then OutOfMemoryErrors are caught and thrown.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunk

public void swapToFile_Grid2DSquareCellChunk(boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunk

protected boolean swapToFile_Grid2DSquareCellChunk()
Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.


swapToFile_Grid2DSquareCellChunk_Account

public long swapToFile_Grid2DSquareCellChunk_Account(boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunk_Account

protected long swapToFile_Grid2DSquareCellChunk_Account()

swapToFile_Grid2DSquareCellChunkExcept

public void swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell a_AbstractGrid2DSquareCell,
                                                   boolean handleOutOfMemoryError)
Swap to File any AbstractGrid2DSquareCell.Chunk in this._AbstractGrid2DSquareCell_HashSet except one in a_AbstractGrid2DSquareCell.

Parameters:
a_AbstractGrid2DSquareCell -

swapToFile_Grid2DSquareCellChunkExcept

protected boolean swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell a_AbstractGrid2DSquareCell)
Swap to File any AbstractGrid2DSquareCell.Chunk in this._AbstractGrid2DSquareCell_HashSet except one in a_AbstractGrid2DSquareCell.

Parameters:
a_AbstractGrid2DSquareCell -

combine

public static void combine(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> toGetCombined,
                           java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> toCombine)
Modifies toGetCombined by adding all mapping from toCombine if they have new keys. If they don't then this adds the contents of the values

Parameters:
toGetCombined -
toCombine -

swapToFile_Grid2DSquareCellChunk_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunk_AccountDetail()
Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet.

Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                                            boolean handleOutOfMemoryError)
Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in with AbstractGrid2DSquareCell.ChunkID = _ChunkID.

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in with AbstractGrid2DSquareCell.ChunkID = _ChunkID.

swapToFile_Grid2DSquareCellChunkExcept_Account

public long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                           boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunkExcept_Account

protected long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in with AbstractGrid2DSquareCell.ChunkID = _ChunkID.

swapToFile_Grid2DSquareCellChunkExcept

protected void swapToFile_Grid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkIDHashSet,
                                                                                                                                                            boolean handleOutOfMemoryError)
Parameters:
a_Grid2DSquareCell_ChunkIDHashSet - HashMap with AbstractGrid2DSquareCell as keys and a respective HashSet of AbstractGrid2DSquareCell.ChunkIDs. Identifying those ChunkIDs not to be swapped from the AbstractGrid2DSquareCell. TODO tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(>,boolean);
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell_ChunkIDHashSet.

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)
Parameters:
_Grid2DSquareCell_ChunkIDHashSet - HashMap with AbstractGrid2DSquareCell as keys and a respective HashSet of AbstractGrid2DSquareCell.ChunkIDs. Identifying those ChunkIDs not to be swapped from the AbstractGrid2DSquareCell.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell_ChunkIDHashSet.

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                               java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                               AbstractGrid2DSquareCell.ChunkID a_ChunkID)

swapToFile_Grid2DSquareCellChunkExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunkExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)

swapToFile_Grid2DSquareCellChunkExcept_Account

protected long swapToFile_Grid2DSquareCellChunkExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)

swapToFile_Grid2DSquareCellChunkExcept

protected void swapToFile_Grid2DSquareCellChunkExcept(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)

swapToFile_Grid2DSquareCellChunkExcept_Account

public long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                           java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet,
                                                           boolean handleOutOfMemoryError)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell with AbstractGrid2DSquareCell._ChunkID in a_ChunkID_HashSet.

swapToFile_Grid2DSquareCellChunkExcept_Account

protected long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                              java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell with AbstractGrid2DSquareCell._ChunkID in a_ChunkID_HashSet.

swapToFile_Grid2DSquareCellChunkExcept_Account

public long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                           AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                           boolean handleOutOfMemoryError)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for that in _Grid2DSquareCell with AbstractGrid2DSquareCell._ChunkID _ChunkID.

swapToFile_Grid2DSquareCellChunkExcept_Account

protected long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                              AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for that in _Grid2DSquareCell with AbstractGrid2DSquareCell._ChunkID _ChunkID.

swapToFile_Grid2DSquareCellChunkExcept_Account

public long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                           boolean handleOutOfMemoryError)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell.

swapToFile_Grid2DSquareCellChunkExcept_Account

protected long swapToFile_Grid2DSquareCellChunkExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)
Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped. Attempts to swap any AbstractGrid2DSquareCellChunk in this._AbstractGrid2DSquareCell_HashSet except for those in _Grid2DSquareCell.

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                                             boolean handleOutOfMemoryError)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                             boolean handleOutOfMemoryError)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped. swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_Account

public long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                            boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunksExcept_Account

protected long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell)

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

public java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                             AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                                                                                                                             boolean handleOutOfMemoryError)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_Account

public long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                            AbstractGrid2DSquareCell.ChunkID a_ChunkID,
                                                            boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunksExcept_Account

protected long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                               AbstractGrid2DSquareCell.ChunkID a_ChunkID)

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                                AbstractGrid2DSquareCell.ChunkID a_ChunkID)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkID _ChunkID.

Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
a_ChunkID - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_AccountDetail

protected java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> swapToFile_Grid2DSquareCellChunksExcept_AccountDetail(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                                                                                                                                java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)

swapToFile_Grid2DSquareCellChunksExcept_Account

protected long swapToFile_Grid2DSquareCellChunksExcept_Account(AbstractGrid2DSquareCell a_Grid2DSquareCell,
                                                               java.util.HashSet<AbstractGrid2DSquareCell.ChunkID> a_ChunkID_HashSet)
Attempts to Swap all AbstractGrid2DSquareCell.ChunkIDs in this._AbstractGrid2DSquareCell_HashSet except those with AbstractGrid2DSquareCell.ChunkIDs in a_ChunkID_HashSet.

Parameters:
a_Grid2DSquareCell - AbstractGrid2DSquareCell that's chunks are not to be swapped.
a_ChunkID_HashSet - The AbstractGrid2DSquareCell.ChunkID not to be swapped.
Returns:
HashMap with: key as the AbstractGrid2DSquareCell from which the AbstractGrid2DSquareCellChunk was swapped; and, value as the AbstractGrid2DSquareCellChunk._ChunkID swapped.

swapToFile_Grid2DSquareCellChunksExcept_Account

public long swapToFile_Grid2DSquareCellChunksExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap,
                                                            boolean handleOutOfMemoryError)

swapToFile_Grid2DSquareCellChunksExcept_Account

protected long swapToFile_Grid2DSquareCellChunksExcept_Account(java.util.HashMap<AbstractGrid2DSquareCell,java.util.HashSet<AbstractGrid2DSquareCell.ChunkID>> a_Grid2DSquareCell_ChunkID_HashSet_HashMap)

swapToFile_Data

public void swapToFile_Data()

swapToFile_Data

public void swapToFile_Data(boolean handleOutOfMemoryError)

swapToFile_DataAny

public boolean swapToFile_DataAny(boolean handleOutOfMemoryError)
Specified by:
swapToFile_DataAny in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler

swapToFile_DataAny

public boolean swapToFile_DataAny()
Specified by:
swapToFile_DataAny in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler

isDataToSwap

public boolean isDataToSwap()