|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A Visualizer using JUNG2. More...

Public Member Functions | |
| JungVisualizer () | |
| Constructor. | |
| void | render (DCOPProblemInterface<?, ?> problem) |
| boolean | setCompiled (boolean compiled) |
| void | actionPerformed (ActionEvent e) |
| Public Member Functions inherited from frodo2.gui.Visualizer | |
| final void | showOutgoingAgentMessage (Object fromAgent, Message msg, Object toAgent) |
| Visualizes an outgoing message. | |
| final void | showIncomingAgentMessage (Message msg, Object toAgent) |
| Visualizes an incoming message. | |
Static Public Member Functions | |
| static String | toHTML (String str) |
| Converts an input string to HTML. | |
| Static Public Member Functions inherited from frodo2.gui.Visualizer | |
| static long | getDisplayTime () |
| static MsgVisualization | getMsgViz (MessageType msgType) |
| Looks up the visualization strategy for a given message type. | |
| static void | setMsgViz (MessageType msgType, MsgVisualization viz) |
| Sets the visualization strategy for a given message type. | |
Protected Member Functions | |
| void | showOutgoingAgentMessage (Object fromAgent, Message msg, Object toAgent, MsgVisualization viz) |
| void | showIncomingAgentMessage (Message msg, Object toAgent, MsgVisualization viz) |
| Protected Member Functions inherited from frodo2.gui.Visualizer | |
| Visualizer () | |
| Constructor. | |
| final void | wait (MsgVisualization viz) |
| Waits until the specified condition. | |
Private Member Functions | |
| void | init () |
| Initializes the VisualizationViewer. | |
| void | render () |
| Renders the problem instance. | |
| void | drawVertices () |
| Draws the vertices. | |
| void | drawEdges () |
| Draws the edges. | |
Private Attributes | |
| Graph< String, String > | graph = Graphs.synchronizedGraph(new SparseGraph<String, String>()) |
| The JUNG graph. | |
| VisualizationViewer< String, String > | vv |
| The JUNG visualization viewer. | |
| DCOPProblemInterface<?, ?> | problem |
| The problem instance to be rendered. | |
| HashMap< String, Color > | agentColors = new HashMap<String, Color> () |
| The color assigned to each agent. | |
| LoadingCache< String, Paint > | vertexColors |
| The color of each vertex. | |
| boolean | compiled = false |
| If true, then the nodes are the agents. | |
| JFrame | frame |
| The frame. | |
| AbstractLayout< String, String > | layout |
| The layout. | |
| ConcurrentHashMap< String, Message > | inMsgs = new ConcurrentHashMap<String, Message> () |
| For each agent (name), its incoming message. | |
A Visualizer using JUNG2.
| frodo2.gui.jung.JungVisualizer.JungVisualizer | ( | ) |
Constructor.
| void frodo2.gui.jung.JungVisualizer.actionPerformed | ( | ActionEvent | e | ) |
|
private |
Draws the edges.
References frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods(), and frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgents().
Referenced by render().

|
private |
Draws the vertices.
References frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getVariables(), and problem.
Referenced by render().

|
private |
Initializes the VisualizationViewer.
References graph, layout, and vv.
Referenced by render().
|
private |
Renders the problem instance.
References drawEdges(), drawVertices(), and frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgents().

| void frodo2.gui.jung.JungVisualizer.render | ( | DCOPProblemInterface<?, ?> | problem | ) |
| boolean frodo2.gui.jung.JungVisualizer.setCompiled | ( | boolean | compiled | ) |
Reimplemented from frodo2.gui.Visualizer.
References compiled.
|
protected |
Reimplemented from frodo2.gui.Visualizer.
References frodo2.gui.Visualizer.wait().

|
protected |
Reimplemented from frodo2.gui.Visualizer.
References toHTML(), frodo2.communication.Message.toString(), and frodo2.gui.Visualizer.wait().

|
static |
Converts an input string to HTML.
| str | the input string |
Referenced by showOutgoingAgentMessage().
|
private |
The color assigned to each agent.
|
private |
If true, then the nodes are the agents.
Referenced by setCompiled().
|
private |
The frame.
|
private |
The JUNG graph.
Referenced by init().
|
private |
For each agent (name), its incoming message.
|
private |
The layout.
Referenced by actionPerformed(), and init().
|
private |
The problem instance to be rendered.
Referenced by drawVertices(), and render().
|
private |
The color of each vertex.
|
private |
The JUNG visualization viewer.
Referenced by actionPerformed(), and init().