OntoSim 2.3

fr.inrialpes.exmo.ontosim.util.matrix
Class MatrixFile<R,C>

java.lang.Object
  extended by fr.inrialpes.exmo.ontosim.util.matrix.MatrixFile<R,C>
All Implemented Interfaces:
Matrix<R,C>

public class MatrixFile<R,C>
extends Object
implements Matrix<R,C>


Field Summary
private  HashMap<C,Integer> cIdx
           
private  int cSeq
           
private  File f
           
private  RandomAccessFile matrixFile
           
private  HashMap<R,Integer> rIdx
           
private  int rSeq
           
 
Constructor Summary
MatrixFile()
           
 
Method Summary
 boolean containsCdim(C c)
           
 boolean containsRdim(R r)
           
protected  void finalize()
           
 double get(R r, C c)
           
 Set<C> getDimC()
           
 Set<R> getDimR()
           
 Set<?> keySet()
           
 void put(R r, C c, double value)
           
 void putAll(Matrix<R,C> m)
           
 MatrixDoubleArray<R,C> toArray()
           
 MatrixDoubleArray<C,R> toArrayT()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f

private final File f

matrixFile

private final RandomAccessFile matrixFile

rSeq

private int rSeq

cSeq

private int cSeq

rIdx

private HashMap<R,Integer> rIdx

cIdx

private HashMap<C,Integer> cIdx
Constructor Detail

MatrixFile

public MatrixFile()
Method Detail

containsCdim

public boolean containsCdim(C c)
Specified by:
containsCdim in interface Matrix<R,C>

containsRdim

public boolean containsRdim(R r)
Specified by:
containsRdim in interface Matrix<R,C>

get

public double get(R r,
                  C c)
Specified by:
get in interface Matrix<R,C>

getDimC

public Set<C> getDimC()
Specified by:
getDimC in interface Matrix<R,C>

getDimR

public Set<R> getDimR()
Specified by:
getDimR in interface Matrix<R,C>

keySet

public Set<?> keySet()
Specified by:
keySet in interface Matrix<R,C>

put

public void put(R r,
                C c,
                double value)
Specified by:
put in interface Matrix<R,C>

putAll

public void putAll(Matrix<R,C> m)
Specified by:
putAll in interface Matrix<R,C>

toArray

public MatrixDoubleArray<R,C> toArray()
Specified by:
toArray in interface Matrix<R,C>

toArrayT

public MatrixDoubleArray<C,R> toArrayT()
Specified by:
toArrayT in interface Matrix<R,C>

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

OntoSim 2.3

(C) INRIA, UPMF & friends, 2008-2011