package jalview.ext.archaeopteryx;
+import jalview.math.MatrixI;
+
import org.forester.evoinference.matrix.distance.DistanceMatrix;
-public class MergedMatrix implements DistanceMatrix
+public class ForesterMatrix implements DistanceMatrix
{
+ private MatrixI jalviewMatrix;
+
+ public ForesterMatrix(MatrixI jalviewInputMatrix)
+ {
+ this.jalviewMatrix = jalviewInputMatrix;
+
+ }
@Override
public String getIdentifier(int i)
@Override
public int getIndex(String identifier)
{
- // TODO Auto-generated method stub
return 0;
}
@Override
public int getSize()
{
- // TODO Auto-generated method stub
return 0;
}
@Override
public double getValue(int col, int row)
{
- // TODO Auto-generated method stub
- return 0;
+ return jalviewMatrix.getValue(row, col);
}
@Override
@Override
public void setValue(int col, int row, double distance)
{
- // TODO Auto-generated method stub
+ jalviewMatrix.setValue(row, col, distance);
}