|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kahina.core.behavior.KahinaBehavior<KahinaTree>
org.kahina.core.behavior.KahinaTreeBehavior
org.kahina.lp.behavior.LogicProgrammingTreeBehavior
public class LogicProgrammingTreeBehavior
| Field Summary | |
|---|---|
protected List<TreeAutomaton> |
creepPoints
|
protected List<TreeAutomaton> |
failPoints
|
protected int |
lastActiveID
|
protected Map<Integer,Integer> |
newStepIDByLastStepID
|
protected List<TreeAutomaton> |
primaryBreakpoints
|
protected List<TreeAutomaton> |
primaryWarnPoints
|
protected List<TreeAutomaton> |
secondaryBreakpoints
|
protected KahinaTree |
secondaryTree
|
protected List<TreeAutomaton> |
secondaryWarnPoints
|
protected List<TreeAutomaton> |
skipPoints
|
protected int |
stepBeingRedone
|
| Fields inherited from class org.kahina.core.behavior.KahinaBehavior |
|---|
kahina, object |
| Constructor Summary | |
|---|---|
LogicProgrammingTreeBehavior(KahinaTree tree,
KahinaInstance<?,?,?> kahina,
KahinaTree secondaryTree)
|
|
| Method Summary | |
|---|---|
void |
breakpointCheck(int stepID)
checks for breakpoint matches caused by adding or modifying the step at stepID; causes events to be fired in the case of matches |
void |
compileCreepPoints()
|
void |
compileFailPoints()
|
void |
compilePrimaryBreakpoints()
|
void |
compilePrimaryWarnPoints()
|
void |
compileSecondaryBreakpoints()
|
void |
compileSecondaryWarnPoints()
|
void |
compileSkipPoints()
|
void |
exceptionBreakpointCheck(int stepID)
checks for breakpoint matches caused by exception of the step at stepID; causes events to be fired in the case of matches |
void |
failureBreakpointCheck(int stepID)
checks for breakpoint matches caused by failure of the step at stepID; causes events to be fired in the case of matches |
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,
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 |
setMaxNodeLabelLength(int maxNodeLabelLength)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected KahinaTree secondaryTree
protected int lastActiveID
protected List<TreeAutomaton> primaryBreakpoints
protected List<TreeAutomaton> secondaryBreakpoints
protected List<TreeAutomaton> primaryWarnPoints
protected List<TreeAutomaton> secondaryWarnPoints
protected List<TreeAutomaton> skipPoints
protected List<TreeAutomaton> creepPoints
protected List<TreeAutomaton> failPoints
protected int stepBeingRedone
protected Map<Integer,Integer> newStepIDByLastStepID
| Constructor Detail |
|---|
public LogicProgrammingTreeBehavior(KahinaTree tree,
KahinaInstance<?,?,?> kahina,
KahinaTree secondaryTree)
| Method Detail |
|---|
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()
public void compilePrimaryBreakpoints()
public void compileSecondaryBreakpoints()
public void compilePrimaryWarnPoints()
public void compileSecondaryWarnPoints()
public void compileSkipPoints()
public void compileCreepPoints()
public void compileFailPoints()
public void breakpointCheck(int stepID)
public void failureBreakpointCheck(int stepID)
public void exceptionBreakpointCheck(int stepID)
protected void integrateIncomingNode(int stepID,
int parentID)
public void processStepInformation(int stepID,
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 system
public 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 KahinaListenerprocessEvent in class KahinaBehavior<KahinaTree>public void processLogicProgrammingBridgeEvent(LogicProgrammingBridgeEvent e)
public void processSystemEvent(KahinaSystemEvent e)
public void processStepDescriptionEvent(KahinaStepDescriptionEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||