|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
An interface for visualizing agents, variables, constraints, and message exchanges. More...

Classes | |
| enum | MsgVisualization |
| Whether and how long to display a message type. More... | |
Public Member Functions | |
| abstract boolean | setCompiled (boolean compiled) |
| Configures the compilation mode. | |
| abstract void | render (DCOPProblemInterface<?, ?> problem) |
| Renders the input problem instance. | |
| 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 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 | |
| Visualizer () | |
| Constructor. | |
| abstract void | showOutgoingAgentMessage (Object fromAgent, Message msg, Object toAgent, MsgVisualization viz) |
| Visualizes an outgoing message. | |
| abstract void | showIncomingAgentMessage (Message msg, Object toAgent, MsgVisualization viz) |
| Visualizes an incoming message. | |
| final void | wait (MsgVisualization viz) |
| Waits until the specified condition. | |
Static Private Attributes | |
| static VisualizerControls | controls |
| The GUI to control how much time each message is displayed. | |
| static long | displayTime = 25 |
| How long each message should be displayed, in ms. | |
| static MsgVisualization | defaultViz = MsgVisualization.STEPPED |
| The default message visualization strategy. | |
| static final ConcurrentHashMap< MessageType, MsgVisualization > | msgViz = new ConcurrentHashMap<MessageType, MsgVisualization> () |
| For each message type, how long to display messages. | |
An interface for visualizing agents, variables, constraints, and message exchanges.
Make it possible to switch between primal constraint graph, bi-partite function graph, and dual decision graph
Make it possible to switch between decomposition, clustering (nodes owned by common agent close together), and compilation
Make it possible to switch between pair-wise graph and hypergraph (= function graph with hidden nodes?)
Make it possible to display messages exchanged between nodes
Render the construction of the variable ordering
Display outbound UTIL message computation progress bars for DPOP
|
protected |
|
static |
References displayTime.
Referenced by frodo2.gui.VisualizerControls.MsgTypeSetting.MsgTypeSetting(), and wait().
|
static |
Looks up the visualization strategy for a given message type.
| msgType | the message type |
References controls, defaultViz, getMsgViz(), frodo2.communication.MessageType.getParent(), msgViz, frodo2.gui.Visualizer.MsgVisualization.STEPPED, and Visualizer().
Referenced by getMsgViz(), frodo2.gui.VisualizerControls.MsgTypeSetting.MsgTypeSetting(), showIncomingAgentMessage(), and showOutgoingAgentMessage().

|
abstract |
Renders the input problem instance.
| problem | the problem instance |
Reimplemented in frodo2.gui.ConsoleVisualizer, and frodo2.gui.jung.JungVisualizer.
Referenced by frodo2.algorithms.test.MessageDebugger.createVisualizer().
|
abstract |
Configures the compilation mode.
| compiled | whether or not the graph should be compiled |
Reimplemented in frodo2.gui.ConsoleVisualizer, and frodo2.gui.jung.JungVisualizer.
Referenced by frodo2.algorithms.test.MessageDebugger.createVisualizer().
|
static |
Sets the visualization strategy for a given message type.
| msgType | the message type |
| viz | how long to display each message of the input type |
References msgViz.
Referenced by frodo2.gui.VisualizerControls.MsgTypeSetting.stateChanged().
| final void frodo2.gui.Visualizer.showIncomingAgentMessage | ( | Message | msg, |
| Object | toAgent ) |
Visualizes an incoming message.
| msg | the message |
| toAgent | ID of the destination agent |
References getMsgViz(), frodo2.communication.Message.getType(), frodo2.gui.Visualizer.MsgVisualization.NONE, and showIncomingAgentMessage().
Referenced by frodo2.algorithms.test.MessageDebugger.notifyIn(), and showIncomingAgentMessage().

|
abstractprotected |
Visualizes an incoming message.
| msg | the message |
| toAgent | ID of the destination agent |
| viz | the visualization strategy |
Reimplemented in frodo2.gui.ConsoleVisualizer, and frodo2.gui.jung.JungVisualizer.
| final void frodo2.gui.Visualizer.showOutgoingAgentMessage | ( | Object | fromAgent, |
| Message | msg, | ||
| Object | toAgent ) |
Visualizes an outgoing message.
| fromAgent | ID of the source agent |
| msg | the message |
| toAgent | ID of the destination agent |
References getMsgViz(), frodo2.communication.Message.getType(), frodo2.gui.Visualizer.MsgVisualization.NONE, and showOutgoingAgentMessage().
Referenced by frodo2.algorithms.test.MessageDebugger.notifyOut(), and showOutgoingAgentMessage().

|
abstractprotected |
Visualizes an outgoing message.
| fromAgent | ID of the source agent |
| msg | the message |
| toAgent | ID of the destination agent |
| viz | the visualization strategy |
Reimplemented in frodo2.gui.ConsoleVisualizer, and frodo2.gui.jung.JungVisualizer.
|
protected |
Waits until the specified condition.
| viz | the visualization strategy |
References controls, and getDisplayTime().
Referenced by frodo2.gui.jung.JungVisualizer.showIncomingAgentMessage(), and frodo2.gui.jung.JungVisualizer.showOutgoingAgentMessage().

|
staticprivate |
The GUI to control how much time each message is displayed.
Referenced by getMsgViz(), Visualizer(), and wait().
|
staticprivate |
The default message visualization strategy.
Referenced by getMsgViz().
|
staticprivate |
How long each message should be displayed, in ms.
Referenced by getDisplayTime().
|
staticprivate |
For each message type, how long to display messages.
Referenced by getMsgViz(), and setMsgViz().