Class BioCodec

  • All Implemented Interfaces:
    SequenceCodec<java.lang.String>

    public class BioCodec
    extends java.lang.Object
    implements SequenceCodec<java.lang.String>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONTINUE  
      static java.lang.String OTHER  
      static java.lang.String START  
    • Constructor Summary

      Constructors 
      Constructor Description
      BioCodec()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean areOutcomesCompatible​(java.lang.String[] outcomes)
      Checks if the outcomes of the model are compatible with the codec.
      NameFinderSequenceValidator createSequenceValidator()
      Creates a sequence validator which can validate a sequence of outcomes.
      Span[] decode​(java.util.List<java.lang.String> c)
      Decodes a sequence T objects into Span objects.
      java.lang.String[] encode​(Span[] names, int length)
      Encodes Span objects into a sequence of T objects.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BioCodec

        public BioCodec()
    • Method Detail

      • decode

        public Span[] decode​(java.util.List<java.lang.String> c)
        Description copied from interface: SequenceCodec
        Decodes a sequence T objects into Span objects.
        Specified by:
        decode in interface SequenceCodec<java.lang.String>
        Returns:
      • encode

        public java.lang.String[] encode​(Span[] names,
                                         int length)
        Description copied from interface: SequenceCodec
        Encodes Span objects into a sequence of T objects.
        Specified by:
        encode in interface SequenceCodec<java.lang.String>
        Returns:
      • areOutcomesCompatible

        public boolean areOutcomesCompatible​(java.lang.String[] outcomes)
        Description copied from interface: SequenceCodec
        Checks if the outcomes of the model are compatible with the codec.
        Specified by:
        areOutcomesCompatible in interface SequenceCodec<java.lang.String>
        Parameters:
        outcomes - all possible model outcomes
        Returns: