public class TraceRecorder extends Object implements MovementListener, SelectionListener, TopologyListener, StartListener
| Constructor and Description |
|---|
TraceRecorder(Topology tp,
TraceFileWriter traceFileWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
onMovement(Node node)
Notifies the underlying listener that a node has moved.
|
void |
onNodeAdded(Node node)
Notifies the underlying listener that a node has been added to the
topology.
|
void |
onNodeRemoved(Node node)
Notifies the underlying listener that a node has been removed to the
topology.
|
void |
onSelection(Node node)
Notifies the underlying listener that a node has selected.
|
void |
onStart()
Notifies that a restart was requested on this topology.
|
void |
start() |
void |
stopAndWrite(String filename) |
public TraceRecorder(Topology tp, TraceFileWriter traceFileWriter)
public void onStart()
StartListeneronStart in interface StartListenerpublic void onMovement(Node node)
MovementListeneronMovement in interface MovementListenernode - The node.public void onSelection(Node node)
SelectionListeneronSelection in interface SelectionListenernode - The selected node.public void onNodeAdded(Node node)
TopologyListeneronNodeAdded in interface TopologyListenernode - The added node.public void onNodeRemoved(Node node)
TopologyListeneronNodeRemoved in interface TopologyListenernode - The removed node.public void start()