Package jline.io

Class ModelVisualizer

  • All Implemented Interfaces:

    
    public class ModelVisualizer
    
                        

    Unified visualizer for both Network and LayeredNetwork models using the JUNG library.

    This visualizer accepts either a Network or LayeredNetwork object and provides appropriate visual styling for each model type:

    • White shapes (except Sink which is black)
    • 9 node types: Source, Sink, Queue, Delay, Fork, Join, ClassSwitch, Cache, Router
    • Sugiyama-style left-to-right hierarchical layout
    • Solid black edges
    • Red shapes (yellow when selected)
    • 4 node types: Host (triangle), Task (parallelogram), Entry (rectangle), Activity (circle)
    • 4-level hierarchical layout (Host→Task→Entry→Activity)
    • 6 edge styles: solid (hierarchy), dashed (sync), dot-dashed (async), dotted (forwarding)