|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anji.persistence.HibernatePersistence
public class HibernatePersistence
Field Summary |
---|
Fields inherited from interface com.anji.persistence.Persistence |
---|
PERSISTENCE_CLASS_KEY |
Constructor Summary | |
---|---|
HibernatePersistence()
default ctor; must call init() before using this object |
Method Summary | |
---|---|
void |
deleteChromosome(java.lang.String id)
delete chromosome identified by by id |
void |
init(Properties props)
See Parameter Details for specific property settings. |
Chromosome |
loadChromosome(java.lang.String id,
Configuration config)
|
Genotype |
loadGenotype(Configuration aConfig)
loads genotype as of latest generation in run |
void |
reset()
remove all data from storage |
void |
startRun(java.lang.String aRunId)
Begin run. |
void |
store(Activator a)
|
void |
store(Chromosome c)
|
void |
store(Run r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernatePersistence()
init()
before using this object
Method Detail |
---|
public void init(Properties props)
Persistence
init
in interface Persistence
init
in interface Configurable
props
- configuration parametersConfigurable.init(com.anji.util.Properties)
public void reset()
Persistence
reset
in interface Persistence
Persistence.reset()
public void store(Chromosome c) throws java.lang.Exception
store
in interface Persistence
c
- chromosome to store
java.lang.Exception
Persistence.store(org.jgap.Chromosome)
public void store(Activator a) throws java.lang.Exception
store
in interface Persistence
a
- activator to store
java.lang.Exception
Persistence.store(com.anji.integration.Activator)
public void store(Run r) throws java.lang.Exception
store
in interface Persistence
r
- run to store
java.lang.Exception
Persistence.store(com.anji.run.Run)
public Chromosome loadChromosome(java.lang.String id, Configuration config)
loadChromosome
in interface Persistence
Persistence.loadChromosome(java.lang.String,
org.jgap.Configuration)
public void deleteChromosome(java.lang.String id) throws java.lang.Exception
Persistence
id
deleteChromosome
in interface Persistence
id
- id of chromosome to delete
java.lang.Exception
Persistence.deleteChromosome(java.lang.String)
public Genotype loadGenotype(Configuration aConfig)
Persistence
loadGenotype
in interface Persistence
Persistence.loadGenotype(org.jgap.Configuration)
public void startRun(java.lang.String aRunId)
Persistence
startRun
in interface Persistence
Persistence.startRun(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |