ResultStorageCSV
replace this implementation. This class
will be remove in 5.0.0.0@Deprecated public class ResultDatabaseStorage extends Object implements SimulationResultGetter, ResultStorage
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
availableResult
Deprecated.
contains all available result as string: String(date + ':' + name)
|
protected org.apache.commons.collections4.map.ReferenceMap<String,org.nuiton.math.matrix.MatrixND> |
cache
Deprecated.
cache to maintains some result. key: String(date + ':' + name), value: matrix
TODO: cache will be more efficient if it keep at min the number of result by year
|
protected org.apache.commons.collections4.map.ReferenceMap<String,org.nuiton.topia.TopiaContext> |
cacheContext
Deprecated.
|
protected Set<String> |
enabledResult
Deprecated.
result enabled
|
protected SimulationStorage |
simulation
Deprecated.
|
Constructor and Description |
---|
ResultDatabaseStorage(SimulationStorage simulation)
Deprecated.
Les ResultStorage ne doivent pas etre instancier directement, mais
recuperer a partir d'un
SimulationStorage.getResultStorage() |
Modifier and Type | Method and Description |
---|---|
void |
addActiveRule(TimeStep step,
Rule rule)
Deprecated.
|
protected void |
addAvailableResult(TimeStep step,
String name)
Deprecated.
Ajoute un resultat comme etant disponible pour une date donnée.
|
void |
addResult(boolean force,
TimeStep step,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(boolean force,
TimeStep step,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(boolean force,
TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(boolean force,
TimeStep step,
String name,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(SimulationContext context,
TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(TimeStep step,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(TimeStep step,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
addResult(TimeStep step,
String name,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
void |
afterSimulation(SimulationContext context)
Deprecated.
called after simulation
|
void |
beforeSimulation(SimulationContext context)
Deprecated.
called before simulation
|
void |
close()
Deprecated.
Close result storage.
|
void |
delete()
Deprecated.
Delete all result for this result storage.
|
protected void |
doAddResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
|
protected void |
doAddResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat,
org.nuiton.topia.TopiaContext tx)
Deprecated.
|
protected Set<String> |
getAvailableResult()
Deprecated.
Retourne le nom de tous les resultats disponibles le nom est constitué
de la date et du nom du resultat.
|
protected org.nuiton.math.matrix.MatrixND |
getInCache(String name)
Deprecated.
|
protected org.nuiton.math.matrix.MatrixND |
getInCache(TimeStep step,
String name)
Deprecated.
|
String |
getInfo()
Deprecated.
Return some information on result storage.
|
TimeStep |
getLastStep()
Deprecated.
Get last simulation date.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(List<TimeStep> steps,
Population pop,
String name)
Deprecated.
Retourne la matrice stocke pour des pas de temps
|
org.nuiton.math.matrix.MatrixND |
getMatrix(List<TimeStep> steps,
Population pop,
String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(List<TimeStep> steps,
String name)
Deprecated.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(List<TimeStep> steps,
String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
Retourne la matrice stocke pour des pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(Population pop,
String name)
Deprecated.
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(Population pop,
String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(SimulationContext context,
List<TimeStep> steps,
String name)
Deprecated.
Retourne la matrice stocke pour un ensemble de pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(SimulationContext context,
String name)
Deprecated.
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(SimulationContext context,
TimeStep step,
String name)
Deprecated.
Retourne la matrice stocke pour un pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(String name)
Deprecated.
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
Population pop,
String name)
Deprecated.
Retourne la matrice stocke pour un pas de temps
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
Population pop,
String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
String name)
Deprecated.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
String name,
org.nuiton.topia.TopiaContext tx)
Deprecated.
Retourne la matrice stocke pour un pas de temps.
|
List<String> |
getResultName()
Deprecated.
Retourne la liste de tous les résultats.
|
protected boolean |
isAvailableResult(TimeStep step,
String name)
Deprecated.
Verifie si un resultat est disponible pour une date donnée.
|
boolean |
isEnabled(String name)
Deprecated.
Permet de savoir si lorsque l'on ajoutera ce resultat, il sera
sauvé ou non.
|
protected void |
putInCache(String name,
org.nuiton.math.matrix.MatrixND mat,
org.nuiton.topia.TopiaContext context)
Deprecated.
|
protected void |
putInCache(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat,
org.nuiton.topia.TopiaContext context)
Deprecated.
|
protected void |
removeInCache(String name)
Deprecated.
Result can be removed from cache when computed result (from multiple step)
become invalidated by new step result.
|
void |
stepChange(SimulationContext context,
TimeStep step)
Deprecated.
Receive event when simulation change step
|
protected SimulationStorage simulation
protected transient org.apache.commons.collections4.map.ReferenceMap<String,org.nuiton.topia.TopiaContext> cacheContext
protected transient org.apache.commons.collections4.map.ReferenceMap<String,org.nuiton.math.matrix.MatrixND> cache
protected transient Set<String> availableResult
public ResultDatabaseStorage(SimulationStorage simulation)
SimulationStorage.getResultStorage()
simulation
- storage to get resultpublic String getInfo()
ResultStorage
getInfo
in interface ResultStorage
public void delete()
ResultStorage
delete
in interface ResultStorage
public void close()
ResultStorage
close
in interface ResultStorage
protected void putInCache(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat, org.nuiton.topia.TopiaContext context)
protected void putInCache(String name, org.nuiton.math.matrix.MatrixND mat, org.nuiton.topia.TopiaContext context)
protected void removeInCache(String name)
name
- result name to removeprotected org.nuiton.math.matrix.MatrixND getInCache(TimeStep step, String name)
protected org.nuiton.math.matrix.MatrixND getInCache(String name)
protected Set<String> getAvailableResult()
protected boolean isAvailableResult(TimeStep step, String name)
step
- name
- true
if result is availableprotected void addAvailableResult(TimeStep step, String name)
step
- name
- public boolean isEnabled(String name)
ResultStorage
isEnabled
in interface ResultStorage
name
- result nametrue
if result is enabledpublic void addResult(TimeStep step, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(TimeStep step, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(boolean force, TimeStep step, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(boolean force, TimeStep step, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(TimeStep step, String name, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(boolean force, TimeStep step, String name, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
public void addResult(boolean force, TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface ResultStorage
IsisFishException
protected void doAddResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
IsisFishException
protected void doAddResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat, org.nuiton.topia.TopiaContext tx) throws IsisFishException
IsisFishException
public void addActiveRule(TimeStep step, Rule rule) throws IsisFishException
addActiveRule
in interface ResultStorage
IsisFishException
public List<String> getResultName()
ResultStorage
getResultName
in interface ResultStorage
public org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, Population pop, String name)
ResultStorage
getMatrix
in interface ResultStorage
step
- le pas de temps que l'on souhaitepop
- la population pour lequelle on souhaite le resultatname
- le nom des resultats dont on veut la matricepublic org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, String name)
getMatrix
in interface ResultStorage
public org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, String name, org.nuiton.topia.TopiaContext tx)
ResultStorage
getMatrix
in interface ResultStorage
step
- le pas de temps que l'on souhaitename
- le nom des resultats dont on veut la matricetx
- TopiaContext a utiliser pour recuperer les resultats et donc les semantiquesnull
si aucune matrice ne correspond a
la demande.public org.nuiton.math.matrix.MatrixND getMatrix(Population pop, String name)
ResultStorage
getMatrix
in interface ResultStorage
pop
- la population pour lequel on souhaite la matricename
- le nom des resultats dont on veut une matrice globale.public org.nuiton.math.matrix.MatrixND getMatrix(Population pop, String name, org.nuiton.topia.TopiaContext tx)
ResultStorage
getMatrix
in interface ResultStorage
pop
- la population pour lequel on souhaite la matricename
- le nom des resultats dont on veut une matrice globale.tx
- la transaction a utiliserpublic org.nuiton.math.matrix.MatrixND getMatrix(String name)
ResultStorage
getMatrix
in interface ResultStorage
name
- le nom des resultats dont on veut une matrice globale.public org.nuiton.math.matrix.MatrixND getMatrix(String name, org.nuiton.topia.TopiaContext tx)
ResultStorage
getMatrix
in interface ResultStorage
name
- le nom des resultats dont on veut une matrice globale.tx
- TopiaContext a utiliser pour recuperer les resultats et donc les semantiquespublic TimeStep getLastStep()
ResultStorage
getLastStep
in interface ResultStorage
public void addResult(SimulationContext context, TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult
in interface SimulationResultListener
IsisFishException
public org.nuiton.math.matrix.MatrixND getMatrix(SimulationContext context, TimeStep step, String name)
SimulationResultGetter
getMatrix
in interface SimulationResultGetter
step
- le pas de temps que l'on souhaitename
- le nom des resultats dont on veut la matricepublic org.nuiton.math.matrix.MatrixND getMatrix(SimulationContext context, String name)
SimulationResultGetter
getMatrix
in interface SimulationResultGetter
name
- le nom des resultats dont on veut une matrice globale.public void afterSimulation(SimulationContext context)
SimulationListener
afterSimulation
in interface SimulationListener
public void beforeSimulation(SimulationContext context)
SimulationListener
beforeSimulation
in interface SimulationListener
public void stepChange(SimulationContext context, TimeStep step)
SimulationListener
stepChange
in interface SimulationListener
step
- new Steppublic org.nuiton.math.matrix.MatrixND getMatrix(SimulationContext context, List<TimeStep> steps, String name)
SimulationResultGetter
getMatrix
in interface SimulationResultGetter
steps
- les pas de temps que l'on souhaitename
- le nom des resultats dont on veut la matricepublic org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, Population pop, String name, org.nuiton.topia.TopiaContext tx)
getMatrix
in interface ResultStorage
public org.nuiton.math.matrix.MatrixND getMatrix(List<TimeStep> steps, Population pop, String name)
ResultStorage
getMatrix
in interface ResultStorage
steps
- les pas de temps que l'on souhaitepop
- la population pour lequelle on souhaite le resultatname
- le nom des resultats dont on veut la matricepublic org.nuiton.math.matrix.MatrixND getMatrix(List<TimeStep> steps, Population pop, String name, org.nuiton.topia.TopiaContext tx)
getMatrix
in interface ResultStorage
public org.nuiton.math.matrix.MatrixND getMatrix(List<TimeStep> steps, String name)
getMatrix
in interface ResultStorage
public org.nuiton.math.matrix.MatrixND getMatrix(List<TimeStep> steps, String name, org.nuiton.topia.TopiaContext tx)
ResultStorage
getMatrix
in interface ResultStorage
steps
- les pas de temps que l'on souhaitename
- le nom des resultats dont on veut la matricetx
- TopiaContext a utiliser pour recuperer les resultats et donc les semantiquesnull
si aucune matrice ne correspond a
la demande.Copyright © 1999–2020 CodeLutin. All rights reserved.