public class BilouCodec extends Object implements SequenceCodec<String>
Modifier and Type | Field and Description |
---|---|
static String |
CONTINUE |
static String |
LAST |
static String |
OTHER |
static String |
START |
static String |
UNIT |
Constructor and Description |
---|
BilouCodec() |
Modifier and Type | Method and Description |
---|---|
boolean |
areOutcomesCompatible(String[] outcomes)
B requires CL or L
C requires BL
L requires B
O requires any valid combo/unit
U requires none
|
SequenceValidator<String> |
createSequenceValidator()
Creates a sequence validator which can validate a sequence of outcomes.
|
Span[] |
decode(List<String> c)
Decodes a sequence T objects into Span objects.
|
String[] |
encode(Span[] names,
int length)
Encodes Span objects into a sequence of T objects.
|
public static final String START
public static final String CONTINUE
public static final String LAST
public static final String UNIT
public static final String OTHER
public Span[] decode(List<String> c)
SequenceCodec
decode
in interface SequenceCodec<String>
public String[] encode(Span[] names, int length)
SequenceCodec
encode
in interface SequenceCodec<String>
public SequenceValidator<String> createSequenceValidator()
SequenceCodec
createSequenceValidator
in interface SequenceCodec<String>
public boolean areOutcomesCompatible(String[] outcomes)
areOutcomesCompatible
in interface SequenceCodec<String>
outcomes
- all possible model outcomesCopyright © 2018 The Apache Software Foundation. All rights reserved.