![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
graph traversal example More...
Public Member Functions | |
TraversalExample () | |
create instance More... | |
MyGraph | graph () |
get graph (associated with traversal ) More... | |
![]() | |
SingleStepper (JFrame parent) | |
create new instance More... | |
SingleStepper (String caption) | |
create new instance More... | |
JFrame | parent () |
get parent widget More... | |
void | halt (String text, int timeout) |
display text and wait for user or timeout More... | |
void | setTimeout (int timeout) |
Set global timeout. More... | |
SingleStepper | whereAmI () |
print location of calling code More... | |
SingleStepper | showSource () |
jmp to caller's location in editor (emacs only) More... | |
void | halt (String text) |
display text and wait for user (or global timeout) More... | |
void | halt () |
wait for user More... | |
Static Public Member Functions | |
static void | main (String[] args) |
example (see also usage ) More... | |
static void | main (String[] args) |
Public Attributes | |
Traversal | traversal = null |
the particular traversal algorithm More... | |
Protected Member Functions | |
void | onHalt () |
![]() | |
JComponent | createComponents () |
void | onNext () |
call on button pressed More... | |
void | println (String text) |
print to both, text area and stdout More... | |
void | onHalt () |
Static Protected Member Functions | |
static void | usage () |
Protected Attributes | |
DotViewer | viewer_ |
![]() | |
JFrame | frame |
JTextArea | history |
JButton | next |
Object | monitor = new Object() |
int | timeout = 0 |
graph traversal example
Definition at line 8 of file TraversalExample.java.
create instance
Definition at line 16 of file TraversalExample.java.
Referenced by aud.example.graph.TraversalExample.main().
MyGraph aud.example.graph.TraversalExample.graph | ( | ) |
get graph (associated with traversal
)
Definition at line 21 of file TraversalExample.java.
References aud.example.graph.TraversalExample.traversal.
Referenced by aud.example.graph.TraversalExample.main(), and aud.example.graph.TraversalExample.onHalt().
|
static |
example (see also usage
)
Reimplemented from aud.util.SingleStepper.
Definition at line 42 of file TraversalExample.java.
References aud.example.graph.MyNode.color, aud.example.graph.MyGraph.getAbstractGraph(), aud.example.graph.MyGraph.getDecorator(), aud.graph.GraphAM< Node extends AbstractNode, Edge extends AbstractEdge >.getSomeNode(), aud.example.graph.TraversalExample.graph(), aud.util.SingleStepper.halt(), aud.example.graph.Traversal.name(), aud.example.graph.Traversal.nsteps, aud.example.graph.GraphParser.parse(), aud.example.graph.Traversal.singlestepper, aud.example.graph.Traversal.start(), aud.example.graph.TraversalExample.traversal, aud.example.graph.TraversalExample.TraversalExample(), aud.example.graph.TraversalExample.usage(), and aud.example.graph.Traversal.verbose.
|
protected |
Reimplemented from aud.util.SingleStepper.
Definition at line 23 of file TraversalExample.java.
References aud.util.DotViewer.display(), aud.example.graph.TraversalExample.graph(), and aud.example.graph.TraversalExample.viewer_.
|
staticprotected |
Definition at line 28 of file TraversalExample.java.
Referenced by aud.example.graph.TraversalExample.main().
Traversal aud.example.graph.TraversalExample.traversal = null |
the particular traversal algorithm
Definition at line 13 of file TraversalExample.java.
Referenced by aud.example.graph.TraversalExample.graph(), and aud.example.graph.TraversalExample.main().
|
protected |
Definition at line 9 of file TraversalExample.java.
Referenced by aud.example.graph.TraversalExample.onHalt().