public class TransitionTable extends java.lang.Object implements Table, DecisionPropertyTable
Constructor and Description |
---|
TransitionTable(java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
int |
addSymbol(java.lang.String symbol) |
void |
addTransition(int code,
java.lang.String symbol,
boolean labeled,
TransitionTable childrenTable) |
boolean |
continueWithNextDecision(int code) |
boolean |
continueWithNextDecision(java.lang.String symbol) |
java.lang.String |
getName() |
java.lang.String |
getSymbolCodeToString(int code) |
int |
getSymbolStringToCode(java.lang.String symbol) |
double |
getSymbolStringToValue(java.lang.String symbol) |
Table |
getTableForNextDecision(int code) |
Table |
getTableForNextDecision(java.lang.String symbol) |
Transition |
getTransition(int code) |
Transition |
getTransition(java.lang.String symbol) |
int |
size() |
public TransitionTable(java.lang.String tableName)
public void addTransition(int code, java.lang.String symbol, boolean labeled, TransitionTable childrenTable)
public boolean continueWithNextDecision(int code) throws MaltChainedException
continueWithNextDecision
in interface DecisionPropertyTable
MaltChainedException
public boolean continueWithNextDecision(java.lang.String symbol) throws MaltChainedException
continueWithNextDecision
in interface DecisionPropertyTable
MaltChainedException
public Table getTableForNextDecision(int code) throws MaltChainedException
getTableForNextDecision
in interface DecisionPropertyTable
MaltChainedException
public Table getTableForNextDecision(java.lang.String symbol) throws MaltChainedException
getTableForNextDecision
in interface DecisionPropertyTable
MaltChainedException
public Transition getTransition(java.lang.String symbol)
public Transition getTransition(int code)
public int addSymbol(java.lang.String symbol) throws MaltChainedException
addSymbol
in interface Table
MaltChainedException
public java.lang.String getSymbolCodeToString(int code) throws MaltChainedException
getSymbolCodeToString
in interface Table
MaltChainedException
public int getSymbolStringToCode(java.lang.String symbol) throws MaltChainedException
getSymbolStringToCode
in interface Table
MaltChainedException
public double getSymbolStringToValue(java.lang.String symbol) throws MaltChainedException
getSymbolStringToValue
in interface Table
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.