~gregor-middell/collatex/1.0development

« back to all changes in this revision

Viewing changes to collatex/src/main/java/eu/interedition/collatex2/implementation/output/table/RankedGraphBasedAlignmentTable.java

  • Committer: Ronald Haentjens Dekker
  • Date: 2011-02-25 11:15:43 UTC
  • Revision ID: ronald.dekker@huygensinstituut.knaw.nl-20110225111543-76pz2ccgzt5k8a84
[RHD]
- More API cleanups:
- Removed getPosition() method from ICell interface
- Removed getPosition() method from IColumn interface
- Removed getWitnessForSigil method from IVariantGraphVertex interface
- Removed containsWitness(sigil) method from IVariantGraphVertex interface
- Deleted IAlignmentTableVisitor interface... no references anymore
- Deleted IInputPlugin interface... no references anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import eu.interedition.collatex2.interfaces.IVariantGraphVertex;
13
13
import eu.interedition.collatex2.interfaces.IWitness;
14
14
 
15
 
//TODO: remove explicit dependency on rankedgraph implementation classes!
 
15
//TODO: remove explicit dependency on ranked graph implementation classes!
16
16
//TODO: The maximum dependency is implementation classes of the same package!
17
17
public class RankedGraphBasedAlignmentTable extends BaseAlignmentTable {
18
18
  private final IVariantGraph graph;
41
41
      int rank = nextVertex.getRank();
42
42
//      System.out.println("DEBUG: "+nextVertex.getNormalized()+":"+nextVertex.getRank());
43
43
      if (rank>columns.size()) {
44
 
        addNewColumn(next, nextVertex.getRank());
 
44
        addNewColumn(next);
45
45
      } else {
46
46
        columns.get(rank-1).addVertex(next);
47
47
      }
49
49
//    System.out.println("TOTAL number of columns: "+columns.size());
50
50
  }
51
51
 
52
 
  private IColumn addNewColumn(IVariantGraphVertex vertex, int rank) {
53
 
    final IColumn column = new VariantGraphBasedColumn(vertex, rank);
 
52
  private IColumn addNewColumn(IVariantGraphVertex vertex) {
 
53
    final IColumn column = new VariantGraphBasedColumn(vertex);
54
54
    columns.add(column);
55
55
    return column;
56
56
  }