public class LogicProgrammingTreeBehavior extends KahinaTreeBehavior
Modifier and Type | Field and Description |
---|---|
protected int |
lastActiveID |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
newStepIDByLastStepID |
protected KahinaTree |
secondaryTree |
protected int |
stepBeingRedone |
kahina, object
Constructor and Description |
---|
LogicProgrammingTreeBehavior(KahinaTree tree,
KahinaInstance<?,?,?,?> kahina,
KahinaTree secondaryTree) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxNodeLabelLength() |
void |
initializeCreepPoints()
overwrite this to fill the creepPoints list with node patterns describing
for which nodes the bridge is to automatically hand over a creep command
to the logic programming system
|
void |
initializeFailPoints()
overwrite this to fill the failPoints list with node patterns describing
for which nodes the bridge is to automatically hand over a fail command
to the logic programming system
|
void |
initializePrimaryBreakpoints()
overwrite this to fill the primaryBreakpoints list with node patterns
describing at detection of which node patterns in the primary step tree
the bridge is to pause leaping or skipping
|
void |
initializePrimaryWarnPoints() |
void |
initializeSecondaryBreakpoints()
overwrite this to fill the secondaryBreakpoints list with node patterns
describing at detection of which node patterns in the secondary step tree
the bridge is to pause leaping or skipping
|
void |
initializeSecondaryWarnPoints() |
void |
initializeSkipPoints()
overwrite this to fill the skipPoints list with node patterns describing
for which nodes the bridge is to hand over a skip command to the logic
programming system
|
protected void |
integrateIncomingNode(int stepID,
int parentID)
contains the logic by which the tree is formed out of callstacks called
by the event processing routine for a KahinaTreeEvent of type "new step"
|
void |
processEvent(KahinaEvent e)
Does not react to any event by default; is overridden by implementations.
|
void |
processLogicProgrammingBridgeEvent(LogicProgrammingBridgeEvent e) |
void |
processStepDescriptionEvent(KahinaStepDescriptionEvent e) |
void |
processStepException(int stepID) |
void |
processStepExit(int stepID,
boolean deterministic)
register and react to an incoming exit operation
|
void |
processStepFail(int stepID)
registers and reacts to an incoming failed step
|
void |
processStepInformation(int stepID,
java.lang.String stepInfo)
integrate incoming step detail information (usually goal descriptions)
into tree called by the event processing routine for a KahinaTreeEvent of
type "new step"
|
void |
processStepRedo(int lastStepID)
register and react to an incoming redo operation
|
void |
processSystemEvent(KahinaSystemEvent e) |
void |
processVirtualRedo(int lastStepID)
register and react to an incoming virtual redo operation;
|
void |
setMaxNodeLabelLength(int maxNodeLabelLength) |
protected KahinaTree secondaryTree
protected int lastActiveID
protected int stepBeingRedone
protected java.util.Map<java.lang.Integer,java.lang.Integer> newStepIDByLastStepID
public LogicProgrammingTreeBehavior(KahinaTree tree, KahinaInstance<?,?,?,?> kahina, KahinaTree secondaryTree)
public int getMaxNodeLabelLength()
public void setMaxNodeLabelLength(int maxNodeLabelLength)
maxNodeLabelLength
- Length after which node labels are cut off. -1
for no
cutoff.public void initializePrimaryBreakpoints()
public void initializeSecondaryBreakpoints()
public void initializePrimaryWarnPoints()
public void initializeSecondaryWarnPoints()
public void initializeSkipPoints()
public void initializeCreepPoints()
public void initializeFailPoints()
protected void integrateIncomingNode(int stepID, int parentID)
public void processStepInformation(int stepID, java.lang.String stepInfo)
stepID
- - the step ID in the monitored logic programming systemstepInfo
- - the step information to be associated with the steppublic void processStepRedo(int lastStepID)
lastStepID
- - the ID of the step being redone in the monitored logic programming systempublic void processVirtualRedo(int lastStepID)
lastStepID
- - the ID of the step being redone in the monitored logic programming systempublic void processStepExit(int stepID, boolean deterministic)
stepID
- - the ID of the step that exited in the monitored logic
programming systemdeterministic
- - whether the exit was deterministicpublic void processStepFail(int stepID)
stepID
- - the ID of the step that failed in the monitored logic
programming systempublic void processStepException(int stepID)
public void processEvent(KahinaEvent e)
KahinaBehavior
processEvent
in interface KahinaListener
processEvent
in class KahinaBehavior<KahinaTree>
public void processLogicProgrammingBridgeEvent(LogicProgrammingBridgeEvent e)
public void processSystemEvent(KahinaSystemEvent e)
public void processStepDescriptionEvent(KahinaStepDescriptionEvent e)