Interface SequenceCodec<T>

All Known Implementing Classes:
BilouCodec, BioCodec

public interface SequenceCodec<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the outcomes of the model are compatible with the codec.
    Creates a sequence validator which can validate a sequence of outcomes.
    Decodes a sequence T objects into Span objects.
    T[]
    encode(Span[] names, int length)
    Encodes Span objects into a sequence of T objects.
  • Method Details

    • decode

      Span[] decode(List<T> c)
      Decodes a sequence T objects into Span objects.
      Parameters:
      c -
      Returns:
    • encode

      T[] encode(Span[] names, int length)
      Encodes Span objects into a sequence of T objects.
      Parameters:
      names -
      length -
      Returns:
    • createSequenceValidator

      SequenceValidator<T> createSequenceValidator()
      Creates a sequence validator which can validate a sequence of outcomes.
      Returns:
    • areOutcomesCompatible

      boolean areOutcomesCompatible(String[] outcomes)
      Checks if the outcomes of the model are compatible with the codec.
      Parameters:
      outcomes - all possible model outcomes
      Returns: