com.rubecula.darwin.domain.helper
Class Realm_

java.lang.Object
  extended by com.rubecula.darwin.domain.helper.Realm_
All Implemented Interfaces:
HasPhenotypeCache, Realm
Direct Known Subclasses:
Realm_Wallacian

public abstract class Realm_
extends java.lang.Object
implements Realm

Base implementation of Realm.

Author:
Robin Hillyard

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
protected Realm_()
          Protected constructor.
protected Realm_(PhenotypeCache phenotypeCache, FitnessCache fitnessCache)
          Protected constructor.
 
Method Summary
 void flushCaches()
           
 FitnessCache getFitnessCache()
           
 PhenotypeCache getPhenotypeCache()
           
 void setFitnessCacheActive(boolean active)
           
 void setPhenotypeCacheActive(boolean active)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

Realm_

protected Realm_()
Protected constructor.


Realm_

protected Realm_(PhenotypeCache phenotypeCache,
                 FitnessCache fitnessCache)
Protected constructor.

Parameters:
phenotypeCache -
fitnessCache -
Method Detail

flushCaches

public void flushCaches()
Specified by:
flushCaches in interface Realm
See Also:
Realm.flushCaches()

getFitnessCache

public FitnessCache getFitnessCache()
Specified by:
getFitnessCache in interface Realm
Returns:
the fitness cache for this realm.
See Also:
Realm.getFitnessCache()

getPhenotypeCache

public PhenotypeCache getPhenotypeCache()
Specified by:
getPhenotypeCache in interface HasPhenotypeCache
Returns:
the cache for phenotypes
See Also:
HasPhenotypeCache.getPhenotypeCache()

setFitnessCacheActive

public void setFitnessCacheActive(boolean active)
Parameters:
active -

setPhenotypeCacheActive

public void setPhenotypeCacheActive(boolean active)
Parameters:
active -


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.