public class TulipaBridge extends KahinaBridge
Modifier and Type | Field and Description |
---|---|
protected char |
bridgeState |
protected int |
currentID |
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
itemIDConv |
static boolean |
verbose |
kahina
Constructor and Description |
---|
TulipaBridge(TulipaInstance kahina) |
Modifier and Type | Method and Description |
---|---|
void |
announceItemProcessing(int extID) |
int |
convertItemID(int extID)
convert external item IDs to internal IDs corresponding to dag nodes
uses entries in itemIDConv table, extending it together with the dag if
no entry was found
|
TulipaStep |
generateStep() |
int |
getNextCommand() |
void |
initializeParse() |
protected void |
processControlEvent(KahinaControlEvent e) |
void |
registerGrammarClause(int clauseID,
java.lang.String rcgClause) |
void |
registerInitialItem(int newID) |
void |
registerItemLabel(int extID,
java.lang.String label) |
void |
registerPredictStep(int ancID,
int newID) |
void |
registerResumeStep(int anc1ID,
int anc2ID,
int newID) |
void |
registerScanEpsilonStep(int ancID,
int newID) |
void |
registerScanStep(int ancID,
int newID) |
void |
registerSuspendStep(int anc1ID,
int anc2ID,
int newID) |
deregister, processEvent, processSelectionEvent, processSystemEvent, processWarnEvent
public static final boolean verbose
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> itemIDConv
protected char bridgeState
protected int currentID
public TulipaBridge(TulipaInstance kahina)
public int convertItemID(int extID)
public TulipaStep generateStep()
generateStep
in class KahinaBridge
public int getNextCommand()
public void registerGrammarClause(int clauseID, java.lang.String rcgClause)
public void initializeParse()
public void announceItemProcessing(int extID)
public void registerInitialItem(int newID)
public void registerScanEpsilonStep(int ancID, int newID)
public void registerScanStep(int ancID, int newID)
public void registerPredictStep(int ancID, int newID)
public void registerSuspendStep(int anc1ID, int anc2ID, int newID)
public void registerResumeStep(int anc1ID, int anc2ID, int newID)
public void registerItemLabel(int extID, java.lang.String label)
protected void processControlEvent(KahinaControlEvent e)
processControlEvent
in class KahinaBridge