public class ResultStorageInMemory extends Object implements SimulationResultGetter, ResultStorage
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
enabledResult
result enabled
|
static String |
MAX_TIME_STEP |
protected int |
maxTimeStep |
protected SimulationStorage |
simulation |
| Constructor and Description |
|---|
ResultStorageInMemory(SimulationStorage simulation)
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) |
void |
addResult(boolean force,
TimeStep step,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(boolean force,
TimeStep step,
Population pop,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(boolean force,
TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(boolean force,
TimeStep step,
String name,
Population pop,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(SimulationContext context,
TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(TimeStep step,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(TimeStep step,
Population pop,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat) |
void |
addResult(TimeStep step,
String name,
Population pop,
org.nuiton.math.matrix.MatrixND mat) |
void |
afterSimulation(SimulationContext context)
called after simulation
|
void |
beforeSimulation(SimulationContext context)
called before simulation
|
void |
close()
Close result storage.
|
void |
delete()
Delete all result for this result storage.
|
protected void |
doAddResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat) |
TimeStep |
getLastStep()
Get last simulation date.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(Population pop,
String name)
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(Population pop,
String name,
org.nuiton.topia.TopiaContext tx)
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(SimulationContext context,
String name)
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(SimulationContext context,
TimeStep step,
String name)
Retourne la matrice stocke pour un pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(String name)
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(String name,
org.nuiton.topia.TopiaContext tx)
Retourne une matrice contenant tous les pas de temps.
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
Population pop,
String name)
Retourne la matrice stocke pour un pas de temps
|
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
String name) |
org.nuiton.math.matrix.MatrixND |
getMatrix(TimeStep step,
String name,
org.nuiton.topia.TopiaContext tx)
Retourne la matrice stocke pour un pas de temps.
|
List<String> |
getResultName()
Retourne la liste de tous les résultats.
|
boolean |
isEnabled(String name)
Permet de savoir si lorsque l'on ajoutera ce resultat, il sera
sauvé ou non.
|
public static final String MAX_TIME_STEP
protected int maxTimeStep
protected SimulationStorage simulation
public ResultStorageInMemory(SimulationStorage simulation)
SimulationStorage.getResultStorage()simulation - storage to get resultpublic void delete()
ResultStoragedelete in interface ResultStoragepublic void close()
ResultStorageclose in interface ResultStoragepublic boolean isEnabled(String name)
ResultStorageisEnabled in interface ResultStoragename - result nametrue if result is enabledpublic void addResult(TimeStep step, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(TimeStep step, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(boolean force,
TimeStep step,
org.nuiton.math.matrix.MatrixND mat)
throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(boolean force,
TimeStep step,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(TimeStep step, String name, Population pop, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(boolean force,
TimeStep step,
String name,
Population pop,
org.nuiton.math.matrix.MatrixND mat)
throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionpublic void addResult(boolean force,
TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
throws IsisFishException
addResult in interface ResultStorageIsisFishExceptionprotected void doAddResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
IsisFishExceptionpublic void addActiveRule(TimeStep step, Rule rule) throws IsisFishException
addActiveRule in interface ResultStorageIsisFishExceptionpublic List<String> getResultName()
ResultStoragegetResultName in interface ResultStoragepublic org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, Population pop, String name)
ResultStoragegetMatrix in interface ResultStoragestep - 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 ResultStoragepublic org.nuiton.math.matrix.MatrixND getMatrix(TimeStep step, String name, org.nuiton.topia.TopiaContext tx)
ResultStoragegetMatrix in interface ResultStoragestep - 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)
ResultStoragegetMatrix in interface ResultStoragepop - 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)
ResultStoragegetMatrix in interface ResultStoragepop - 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)
ResultStoragegetMatrix in interface ResultStoragename - le nom des resultats dont on veut une matrice globale.public org.nuiton.math.matrix.MatrixND getMatrix(String name, org.nuiton.topia.TopiaContext tx)
ResultStoragegetMatrix in interface ResultStoragename - le nom des resultats dont on veut une matrice globale.tx - TopiaContext a utiliser pour recuperer les resultats et donc les semantiquespublic TimeStep getLastStep()
ResultStoragegetLastStep in interface ResultStoragepublic void addResult(SimulationContext context, TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat) throws IsisFishException
addResult in interface SimulationResultListenerIsisFishExceptionpublic org.nuiton.math.matrix.MatrixND getMatrix(SimulationContext context, TimeStep step, String name)
SimulationResultGettergetMatrix in interface SimulationResultGetterstep - 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)
SimulationResultGettergetMatrix in interface SimulationResultGettername - le nom des resultats dont on veut une matrice globale.public void afterSimulation(SimulationContext context)
SimulationListenerafterSimulation in interface SimulationListenerpublic void beforeSimulation(SimulationContext context)
SimulationListenerbeforeSimulation in interface SimulationListenerCopyright © 1999–2014 CodeLutin. All rights reserved.