Package fr.ifremer.isisfish.datastore
Class ResultMappedStorage.ResultMapped
java.lang.Object
fr.ifremer.isisfish.datastore.ResultMappedStorage.ResultMapped
- Enclosing class:
- ResultMappedStorage
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.
Les deux operations doivent etre symetrique on lit et ecrit les meme informations
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Classe permettant de lire et ecrire le header d'un resultat matrice Le header comprend tout sauf les donnees de la matrice. -
Field Summary
-
Constructor Summary
ConstructorDescriptionResultMapped
(RandomAccessFile raf, long offset, TimeStep step, String name, org.nuiton.math.matrix.MatrixND matrix) write date to fileResultMapped
(org.nuiton.math.matrix.MatrixFactory matrixFactory, RandomAccessFile raf, long offset) read data from file -
Method Summary
-
Field Details
-
raf
-
offset
protected long offset -
size
protected long size -
step
-
name
-
matrix
protected org.nuiton.math.matrix.MatrixND matrix
-
-
Constructor Details
-
ResultMapped
public ResultMapped(org.nuiton.math.matrix.MatrixFactory matrixFactory, RandomAccessFile raf, long offset) throws IOException read data from file- Throws:
IOException
-
ResultMapped
public ResultMapped(RandomAccessFile raf, long offset, TimeStep step, String name, org.nuiton.math.matrix.MatrixND matrix) throws IOException write date to file- Throws:
IOException
-
-
Method Details
-
size
public long size()retourne la taille en nombre de byte- Returns:
-
getStep
-
getName
-
getMatrix
public org.nuiton.math.matrix.MatrixND getMatrix() -
getMatrix
public org.nuiton.math.matrix.MatrixND getMatrix(org.nuiton.topia.TopiaContext tx)
-