|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
P - public interface IExperimentLogger<P extends NodeProperties>
This class provides the ability to log events in a series
of operations. When added to a TreeVisualization
or TreeExperiment, it receives callbacks for
each event.
| Field Summary | |
|---|---|
static int |
HEIGHT_UPDATE
event_id for logOther call for height changing |
static int |
SIZE_UPDATE
event_id for logOther call for size changing |
| Method Summary | |
|---|---|
void |
logDeletion(ShadowNode<P> n)
Called on IDeletingNode.predecessorHibbardDelete
and IDeletingNode.successorHibbardDelete PRIOR
to the actual deletion. |
void |
logInsertion(ShadowNode<P> n)
Called on IInsertNode.insertLeft
and IInsertNode.insertRight |
void |
logOther(IAlgorithmNode<P> n,
int event_id)
Catch-all logging function for anything missed by the others. |
void |
logRotation(ShadowNode<P> n)
Called on IAlgorithmNode.rotateLeft
and IAlgorithmNode.rotateRight PRIOR
to the actual rotation. |
void |
logSearchHit(ShadowNode<P> n)
Called on ISearchingNode.markFound |
| Field Detail |
|---|
static final int HEIGHT_UPDATE
static final int SIZE_UPDATE
| Method Detail |
|---|
void logInsertion(ShadowNode<P> n)
IInsertNode.insertLeft
and IInsertNode.insertRight
n - Node that was just insertedvoid logRotation(ShadowNode<P> n)
IAlgorithmNode.rotateLeft
and IAlgorithmNode.rotateRight PRIOR
to the actual rotation.
n - Node is being rotated down the treevoid logDeletion(ShadowNode<P> n)
IDeletingNode.predecessorHibbardDelete
and IDeletingNode.successorHibbardDelete PRIOR
to the actual deletion.
n - Node being deletedvoid logSearchHit(ShadowNode<P> n)
ISearchingNode.markFound
n - Node that has been found
void logOther(IAlgorithmNode<P> n,
int event_id)
n - Node being loggedevent_id - Used to identify the event this call represents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||