--- /dev/null
+package jalview.ext.archaeopteryx;
+
+import jalview.math.MatrixI;
+
+import org.forester.evoinference.matrix.distance.DistanceMatrix;
+
+public class MatrixConversionFactory
+{
+ DistanceMatrix foresterMatrix;
+
+ MatrixI jalviewMatrix;
+
+ public static MatrixConversionFactory createConverter(
+ DistanceMatrix foresterInputMatrix)
+ {
+ MatrixConversionFactory converter = new MatrixConversionFactory();
+ converter.convertForesterToJalview(foresterInputMatrix);
+ return converter;
+
+ }
+
+ public static MatrixConversionFactory createConverter(MatrixI jalviewInputMatrix)
+ {
+ MatrixConversionFactory converter = new MatrixConversionFactory();
+ converter.convertJalviewToForester(jalviewInputMatrix);
+ return converter;
+
+ }
+
+ private DistanceMatrix convertJalviewToForester(
+ MatrixI jalviewMatrix)
+ {
+ this.jalviewMatrix = jalviewMatrix;
+ return foresterMatrix;
+
+ }
+
+ private MatrixI convertForesterToJalview(
+ DistanceMatrix foresterMatrix)
+ {
+ this.foresterMatrix = foresterMatrix;
+
+ return jalviewMatrix;
+ }
+
+ protected DistanceMatrix getForesterMatrix()
+ {
+ return foresterMatrix;
+ }
+
+ protected void setForesterMatrix(DistanceMatrix foresterMatrix)
+ {
+ this.foresterMatrix = foresterMatrix;
+ }
+
+ protected MatrixI getJalviewMatrix()
+ {
+ return jalviewMatrix;
+ }
+
+ protected void setJalviewMatrix(MatrixI jalviewMatrix)
+ {
+ this.jalviewMatrix = jalviewMatrix;
+ }
+
+}
--- /dev/null
+package jalview.ext.archaeopteryx;
+
+import org.forester.evoinference.matrix.distance.DistanceMatrix;
+
+public class MergedMatrix implements DistanceMatrix
+{
+
+ @Override
+ public String getIdentifier(int i)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @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;
+ }
+
+ @Override
+ public void setIdentifier(int i, String identifier)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setValue(int col, int row, double distance)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public StringBuffer toStringBuffer(Format format)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public double[][] getValues()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
\ No newline at end of file