public class QTypeBridge extends SICStusPrologBridge
currentID, selectedID, skipFlag, skipID, stepIDConv, waitingForReturnFromSkip
kahina
Constructor and Description |
---|
QTypeBridge(QTypeDebuggerInstance kahina) |
Modifier and Type | Method and Description |
---|---|
void |
call(int extID)
Called, typically following a call to
#step(int, String, Stirng, String) very soon, to indicate that
the call port of the procedure box with the given ID has been reached. |
void |
exit(int extID,
boolean deterministic,
java.lang.String newDescription) |
void |
fail(int extID)
Called to indicate that the fail port of the procedure box with the given
ID has been reached.
|
protected QTypeStep |
generateStep() |
void |
redo(int extID)
Called to indicate that the redo port of the procedure box with the given
ID has been reached.
|
void |
registerExample(int number,
java.lang.String expectation,
java.lang.String sentence) |
void |
registerGoal(int extID,
java.lang.String key,
java.lang.String grisu) |
void |
step(int extID,
java.lang.String type,
java.lang.String description,
java.lang.String consoleMessage)
For each new procedure box that is created, this method or one of its
variants must first be called.
|
int |
virtualRedo(int stepID) |
registerBinding
isQueryRoot
canSkipOrAutocomplete, convertStepID, deregister, end, exception, exit, exit, getAction, getBridgeState, getParentCandidateID, isPaused, linkNodes, maybeUpdateStepCount, performBreakAction, performCompleteAction, performCreepAction, performFailAction, performSkipAction, processControlEvent, processEvent, processSelectionEvent, processSystemEvent, processWarnEvent, registerLayer, registerStepSourceCodeLocation, select, selectIfPaused, setBridgeState, setParentCandidateID, step, step, warning
public QTypeBridge(QTypeDebuggerInstance kahina)
public void step(int extID, java.lang.String type, java.lang.String description, java.lang.String consoleMessage)
LogicProgrammingBridge
LogicProgrammingBridge.call(int)
for
historic reasons and for flexibility, e.g. it can be overloaded with
various arguments representing all kinds of information about a step
without touching the call method. Note however that information about a
step that is not absolutely central, such as source code locations,
should be sent to Kahina using specialized methods following the call to
the step method.step
in class LogicProgrammingBridge
extID
- An ID identifying the procedure box uniquely.type
- A string identifying the type of the step, e.g. a Prolog
predicate identifier such as append/3
. Will be used
for categorizing and counting steps in the profiler.description
- A full description of the step, such as
append([1,2],[3,4],X)
. Will be used for labeling nodes
in the control flow graph.consoleMessage
- A more extensive description of the (type of) the step, such
as a prose description of what append/3
does. Will be
displayed in the message console.public void call(int extID)
LogicProgrammingBridge
#step(int, String, Stirng, String)
very soon, to indicate that
the call port of the procedure box with the given ID has been reached.
This will cause the corresponding node to appear in Kahina's control flow
graph.call
in class LogicProgrammingBridge
public void redo(int extID)
LogicProgrammingBridge
redo
in class LogicProgrammingBridge
public int virtualRedo(int stepID)
virtualRedo
in class LogicProgrammingBridge
public void exit(int extID, boolean deterministic, java.lang.String newDescription)
exit
in class LogicProgrammingBridge
public void fail(int extID)
LogicProgrammingBridge
fail
in class LogicProgrammingBridge
public void registerExample(int number, java.lang.String expectation, java.lang.String sentence)
protected QTypeStep generateStep()
generateStep
in class SICStusPrologBridge
public void registerGoal(int extID, java.lang.String key, java.lang.String grisu)