public class ResultMappedStorage extends ResultStorageAbstract
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ResultMappedStorage.ResultMapped
Represente un resultat
Lors de la construction, si on ne passe que le RandomAccessFile et l'offset, on relie un resultat
si on passe toutes les infos, on ecrit le resultat.
|
ResultStorageAbstract.EntitySemanticsDecorator| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.math.matrix.MatrixFactory |
matrixFactory |
protected Map<String,Map<TimeStep,ResultMappedStorage.ResultMapped>> |
nameStepResults |
protected long |
offset |
protected RandomAccessFile |
raf |
decorator, enabledResult, simulation| Constructor and Description |
|---|
ResultMappedStorage(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 |
close()
Close result storage.
|
void |
delete()
Delete all result for this result storage.
|
protected void |
finalize() |
protected org.nuiton.math.matrix.MatrixFactory |
getMatrixFactory()
sub class can overwrite this method to return specifique factory
|
protected Map<TimeStep,ResultMappedStorage.ResultMapped> |
getResult(String name) |
List<String> |
getResultName()
Retourne la liste de tous les résultats.
|
protected org.nuiton.math.matrix.MatrixND |
readResult(TimeStep step,
String name)
Return one result for step and name.
|
protected void |
storeResult(ResultMappedStorage.ResultMapped r)
Methode interne pour que les deux Map soit mise a jour en meme temps
C'est la seul methode qui permet d'ajouter des noms de result dans les Map
|
protected void |
writeActiveRule(TimeStep step,
String name,
String params)
Write active rule
|
protected void |
writeResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
write result
|
addActiveRule, addResult, addResult, addResult, addResult, addResult, addResult, addResult, addResult, addResult, afterSimulation, beforeSimulation, decorate, doAddResult, getInfo, getLastStep, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getTx, isEnabled, stepChange, undecorate, undecorate, undecorateprotected org.nuiton.math.matrix.MatrixFactory matrixFactory
protected RandomAccessFile raf
protected long offset
protected Map<String,Map<TimeStep,ResultMappedStorage.ResultMapped>> nameStepResults
public ResultMappedStorage(SimulationStorage simulation) throws IOException
SimulationStorage.getResultStorage()simulation - storage to get resultIOExceptionprotected org.nuiton.math.matrix.MatrixFactory getMatrixFactory()
ResultStorageAbstractgetMatrixFactory in class ResultStorageAbstractprotected void finalize()
throws Throwable
public void delete()
ResultStoragedelete in interface ResultStoragedelete in class ResultStorageAbstractpublic void close()
ResultStorageclose in interface ResultStorageclose in class ResultStorageAbstractprotected void storeResult(ResultMappedStorage.ResultMapped r)
r - protected Map<TimeStep,ResultMappedStorage.ResultMapped> getResult(String name)
protected org.nuiton.math.matrix.MatrixND readResult(TimeStep step, String name)
ResultStorageAbstractreadResult in class ResultStorageAbstractprotected void writeResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat)
ResultStorageAbstractwriteResult in class ResultStorageAbstractprotected void writeActiveRule(TimeStep step, String name, String params)
ResultStorageAbstractwriteActiveRule in class ResultStorageAbstractpublic List<String> getResultName()
getResultName in interface ResultStoragegetResultName in class ResultStorageAbstractCopyright © 1999–2014 CodeLutin. All rights reserved.