SimpleProfile implements Profile<S, C> { @Override public int getLength() { return length; } protected  SimpleProfile(AlignedSequence<S, C> query, AlignedSequence<S, C> target);  SimpleProfile(S sequence); protected  SimpleProfile(S query, S target, List<Step> sx, int xb, int xa, List<Step> sy, int yb, int ya); protected  SimpleProfile(Profile<S, C> query, Profile<S, C> target, List<Step> sx, List<Step> sy);  SimpleProfile(Collection<AlignedSequence<S,C>> alignedSequences); @Override AlignedSequence<S, C> getAlignedSequence(int listIndex); @Override AlignedSequence<S, C> getAlignedSequence(S sequence); @Override List<AlignedSequence<S, C>> getAlignedSequences(); @Override List<AlignedSequence<S, C>> getAlignedSequences(int... listIndices); @Override List<AlignedSequence<S, C>> getAlignedSequences(S... sequences); @Override C getCompoundAt(int listIndex, int alignmentIndex); @Override C getCompoundAt(S sequence, int alignmentIndex); @Override int[] getCompoundCountsAt(int alignmentIndex); @Override int[] getCompoundCountsAt(int alignmentIndex, List<C> compounds); @Override List<C> getCompoundsAt(int alignmentIndex); @Override CompoundSet<C> getCompoundSet(); @Override float[] getCompoundWeightsAt(int alignmentIndex); @Override float[] getCompoundWeightsAt(int alignmentIndex, List<C> compounds); @Override int getIndexOf(C compound); @Override int[] getIndicesAt(int alignmentIndex); @Override int getLastIndexOf(C compound); @Override int getLength(); @Override List<S> getOriginalSequences(); @Override int getSize(); @Override ProfileView<S, C> getSubProfile(Location location); @Override boolean hasGap(int alignmentIndex); @Override boolean isCircular(); @Override String toString(int width); @Override String toString(StringFormat format); @Override String toString(); @Override Iterator<AlignedSequence<S, C>> iterator();  }
@Test public void testGetLength() { assertEquals(global.getLength(), 5); assertEquals(local.getLength(), 3); assertEquals(single.getLength(), 4); }