ResultStorageCSV
replace this implementation. This class
will be remove in 5.0.0.0@Deprecated public class ResultMappedStorage extends ResultStorageAbstract
Modifier and Type | Class and Description |
---|---|
protected static class |
ResultMappedStorage.ResultMapped
Deprecated.
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.
|
Modifier and Type | Field and Description |
---|---|
protected org.nuiton.math.matrix.MatrixFactory |
matrixFactory
Deprecated.
|
protected Map<String,Map<TimeStep,ResultMappedStorage.ResultMapped>> |
nameStepResults
Deprecated.
|
protected long |
offset
Deprecated.
|
protected RandomAccessFile |
raf
Deprecated.
|
decorator, enabledResult, simulation
Constructor and Description |
---|
ResultMappedStorage(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 |
close()
Deprecated.
Close result storage.
|
void |
delete()
Deprecated.
Delete all result for this result storage.
|
protected void |
finalize()
Deprecated.
|
protected org.nuiton.math.matrix.MatrixFactory |
getMatrixFactory()
Deprecated.
sub class can overwrite this method to return specifique factory
|
protected Map<TimeStep,ResultMappedStorage.ResultMapped> |
getResult(String name)
Deprecated.
|
List<String> |
getResultName()
Deprecated.
Retourne la liste de tous les résultats.
|
protected org.nuiton.math.matrix.MatrixND |
readResult(TimeStep step,
String name)
Deprecated.
Return one result for step and name.
|
protected void |
storeResult(ResultMappedStorage.ResultMapped r)
Deprecated.
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)
Deprecated.
Write active rule
|
protected void |
writeResult(TimeStep step,
String name,
org.nuiton.math.matrix.MatrixND mat)
Deprecated.
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, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getProvider, isEnabled, stepChange, undecorate, undecorate, undecorate
protected 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 resultIOException
protected org.nuiton.math.matrix.MatrixFactory getMatrixFactory()
ResultStorageAbstract
getMatrixFactory
in class ResultStorageAbstract
protected void finalize() throws Throwable
public void delete()
ResultStorage
delete
in interface ResultStorage
delete
in class ResultStorageAbstract
public void close()
ResultStorage
close
in interface ResultStorage
close
in class ResultStorageAbstract
protected 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)
ResultStorageAbstract
readResult
in class ResultStorageAbstract
protected void writeResult(TimeStep step, String name, org.nuiton.math.matrix.MatrixND mat)
ResultStorageAbstract
writeResult
in class ResultStorageAbstract
protected void writeActiveRule(TimeStep step, String name, String params)
ResultStorageAbstract
writeActiveRule
in class ResultStorageAbstract
public List<String> getResultName()
getResultName
in interface ResultStorage
getResultName
in class ResultStorageAbstract
Copyright © 1999–2020 CodeLutin. All rights reserved.