Interface SequenceCodec<T>

    • Method Detail

      • decode

        Span[] decode​(java.util.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​(java.lang.String[] outcomes)
        Checks if the outcomes of the model are compatible with the codec.
        Parameters:
        outcomes - all possible model outcomes
        Returns: