|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_AgentEnvironment
public class GENESIS_AgentEnvironment
Field Summary | |
---|---|
protected GENESIS_AgentCollectionManager |
_AgentCollectionManager
|
protected java.io.File |
_Directory
|
GENESIS_Environment |
_GENESIS_Environment
|
protected GENESIS_PersonFactory |
_PersonFactory
|
Fields inherited from class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler |
---|
_Generic_TestMemory, _HandleOutOfMemoryError_boolean, _MemoryReserve, Default_Memory_Threshold, HandleOutOfMemoryErrorFalse, HandleOutOfMemoryErrorTrue |
Fields inherited from interface uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_OutOfMemoryErrorHandlerInterface |
---|
serialVersionUID |
Constructor Summary | |
---|---|
GENESIS_AgentEnvironment()
Default constructor |
|
GENESIS_AgentEnvironment(GENESIS_AgentEnvironment a_GENESIS_AgentEnvironment)
For creating a deep copy of toDeepCopy_GENESIS_AgentEnvironment This is not straight forward because of the linked references between toDeepCopy_GENESIS_AgentEnvironment._GENESIS_Environment and toDeepCopy_GENESIS_AgentEnvironment._GENESIS_Environment._GENESIS_AgentEnvironment |
|
GENESIS_AgentEnvironment(GENESIS_Environment a_GENESIS_Environment)
|
|
GENESIS_AgentEnvironment(GENESIS_Environment a_GENESIS_Environment,
GENESIS_AgentEnvironment a_GENESIS_AgentEnvironment)
|
Method Summary | |
---|---|
protected GENESIS_AgentCollectionManager |
get_AgentCollectionManager()
|
GENESIS_AgentCollectionManager |
get_AgentCollectionManager(boolean handleOutOfMemoryError)
|
java.io.File |
get_Directory()
|
long |
init_MemoryReserve_Account(boolean handleOutOfMemoryError)
|
long |
init_MemoryReserve_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection,
boolean handleOutOfMemoryError)
|
long |
init_MemoryReserve_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection,
boolean handleOutOfMemoryError)
|
java.lang.Object[] |
init_MemoryReserve_AccountDetail(boolean handleOutOfMemoryError)
|
java.lang.Object[] |
init_MemoryReserve_AccountDetail(GENESIS_FemaleCollection a_GENESIS_FemaleCollection,
boolean handleOutOfMemoryError)
|
java.lang.Object[] |
init_MemoryReserve_AccountDetail(GENESIS_MaleCollection a_GENESIS_MaleCollection,
boolean handleOutOfMemoryError)
|
void |
init_MemoryReserve(boolean handleOutOfMemoryError)
Initialises _MemoryReserve. |
protected void |
set_AgentCollectionManager(GENESIS_AgentCollectionManager _AgentCollectionManager)
|
void |
set_AgentCollectionManager(GENESIS_AgentCollectionManager a_GENESIS_AgentCollectionManager,
boolean handleOutOfMemoryError)
|
boolean |
swapToFile_DataAny()
|
boolean |
swapToFile_DataAny(boolean handleOutOfMemoryError)
|
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_Account()
To try to ensure there is enough memory to continue whilst accounting a tally of the number of AgentCollections swapped to disk. |
long |
tryToEnsureThereIsEnoughMemoryToContinue_Account(boolean handleOutOfMemoryError)
|
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection)
A method to ensure there is enough memory to continue whilst not swapping to disk a_AgentCollection and accounting by returning a HashSet |
long |
tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection,
boolean handleOutOfMemoryError)
|
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection)
A method to ensure there is enough memory to continue whilst not swapping to disk a_AgentCollection and accounting by returning a HashSet |
long |
tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection,
boolean handleOutOfMemoryError)
|
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail()
A method to ensure there is enough memory to continue whilst accounting by returning a HashSet |
java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue that returns a HashSet |
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_FemaleCollection a_FemaleCollection)
|
java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_FemaleCollection a_GENESIS_FemaleCollection,
boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue whilst not swapping to disk a_FemaleCollection |
protected java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_MaleCollection a_MaleCollection)
|
java.lang.Object[] |
tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_MaleCollection a_GENESIS_MaleCollection,
boolean handleOutOfMemoryError)
A method to ensure there is enough memory to continue whilst not swapping to disk a_MaleCollection |
protected boolean |
tryToEnsureThereIsEnoughMemoryToContinue()
|
boolean |
tryToEnsureThereIsEnoughMemoryToContinue(boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. |
protected boolean |
tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_FemaleCollection a_FemaleCollection)
A method to try to ensure there is enough memory to continue whilst not swapping to disk a_FemaleCollection. |
void |
tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_FemaleCollection a_FemaleCollection,
boolean handleOutOfMemoryError)
A method to try to ensure there is enough memory to continue. |
protected boolean |
tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_MaleCollection a_MaleCollection)
A method to try to ensure there is enough memory to continue whilst not swapping to disk a_MaleCollection. |
void |
tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_MaleCollection a_MaleCollection,
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, 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 |
---|
public transient GENESIS_Environment _GENESIS_Environment
protected transient GENESIS_AgentCollectionManager _AgentCollectionManager
protected java.io.File _Directory
protected GENESIS_PersonFactory _PersonFactory
Constructor Detail |
---|
public GENESIS_AgentEnvironment()
public GENESIS_AgentEnvironment(GENESIS_AgentEnvironment a_GENESIS_AgentEnvironment)
toDeepCopy_GENESIS_AgentEnvironment
- public GENESIS_AgentEnvironment(GENESIS_Environment a_GENESIS_Environment, GENESIS_AgentEnvironment a_GENESIS_AgentEnvironment)
public GENESIS_AgentEnvironment(GENESIS_Environment a_GENESIS_Environment)
Method Detail |
---|
public GENESIS_AgentCollectionManager get_AgentCollectionManager(boolean handleOutOfMemoryError)
protected GENESIS_AgentCollectionManager get_AgentCollectionManager()
public void set_AgentCollectionManager(GENESIS_AgentCollectionManager a_GENESIS_AgentCollectionManager, boolean handleOutOfMemoryError)
protected void set_AgentCollectionManager(GENESIS_AgentCollectionManager _AgentCollectionManager)
public void init_MemoryReserve(boolean handleOutOfMemoryError)
init_MemoryReserve
in interface GENESIS_OutOfMemoryErrorHandlerInterface
init_MemoryReserve
in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
_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.public long init_MemoryReserve_Account(boolean handleOutOfMemoryError)
public java.lang.Object[] init_MemoryReserve_AccountDetail(boolean handleOutOfMemoryError)
public long init_MemoryReserve_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection, boolean handleOutOfMemoryError)
public long init_MemoryReserve_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection, boolean handleOutOfMemoryError)
public java.lang.Object[] init_MemoryReserve_AccountDetail(GENESIS_FemaleCollection a_GENESIS_FemaleCollection, boolean handleOutOfMemoryError)
public java.lang.Object[] init_MemoryReserve_AccountDetail(GENESIS_MaleCollection a_GENESIS_MaleCollection, boolean handleOutOfMemoryError)
public boolean tryToEnsureThereIsEnoughMemoryToContinue(boolean handleOutOfMemoryError)
tryToEnsureThereIsEnoughMemoryToContinue
in interface GENESIS_OutOfMemoryErrorHandlerInterface
tryToEnsureThereIsEnoughMemoryToContinue
in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
handleOutOfMemoryError
- protected boolean tryToEnsureThereIsEnoughMemoryToContinue()
tryToEnsureThereIsEnoughMemoryToContinue
in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
public void tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_FemaleCollection a_FemaleCollection, boolean handleOutOfMemoryError)
handleOutOfMemoryError
- public void tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_MaleCollection a_MaleCollection, boolean handleOutOfMemoryError)
handleOutOfMemoryError
- protected boolean tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_FemaleCollection a_FemaleCollection)
a_FemaleCollection
- An FemaleCollection not to be swapped.protected boolean tryToEnsureThereIsEnoughMemoryToContinue(GENESIS_MaleCollection a_MaleCollection)
a_MaleCollection
- An MaleCollection not to be swapped.public long tryToEnsureThereIsEnoughMemoryToContinue_Account(boolean handleOutOfMemoryError)
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account()
public long tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection, boolean handleOutOfMemoryError)
public long tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection, boolean handleOutOfMemoryError)
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_FemaleCollection a_GENESIS_FemaleCollection)
a_AgentCollection
- An AgentCollection not to be swapped.
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_Account(GENESIS_MaleCollection a_GENESIS_MaleCollection)
a_AgentCollection
- An AgentCollection not to be swapped.
public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(boolean handleOutOfMemoryError)
handleOutOfMemoryError
-
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail()
public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_FemaleCollection a_GENESIS_FemaleCollection, boolean handleOutOfMemoryError)
a_FemaleCollection
- A FemaleCollection not to be swapped.handleOutOfMemoryError
-
public java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_MaleCollection a_GENESIS_MaleCollection, boolean handleOutOfMemoryError)
a_MaleCollection
- A MaleCollection not to be swapped.handleOutOfMemoryError
-
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_FemaleCollection a_FemaleCollection)
protected java.lang.Object[] tryToEnsureThereIsEnoughMemoryToContinue_AccountDetail(GENESIS_MaleCollection a_MaleCollection)
public java.io.File get_Directory()
public boolean swapToFile_DataAny(boolean handleOutOfMemoryError)
swapToFile_DataAny
in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
public boolean swapToFile_DataAny()
swapToFile_DataAny
in class uk.ac.leeds.ccg.andyt.generic.memory.Generic_OutOfMemoryErrorHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |