Class NetworkVisualizationExample

java.lang.Object
jline.examples.java.basic.NetworkVisualizationExample

public class NetworkVisualizationExample extends Object
Demonstrates JUNG visualization of Network models using the plot() method.

This example creates queueing network models and displays them using the built-in plot() method. The visualization showcases the structure of queueing networks.

The visualization uses shape coding:

  • White right-triangle: Source nodes
  • Black left-triangle: Sink nodes
  • White rectangle: Queue stations
  • White circle: Delay stations
  • White diamond: Fork/Join nodes
  • White hexagon: ClassSwitch nodes

All edges are black solid lines indicating routing paths.

  • Constructor Details

    • NetworkVisualizationExample

      public NetworkVisualizationExample()
  • Method Details

    • createSimpleOpenNetwork

      public static Network createSimpleOpenNetwork()
      Creates a simple open queueing network with Source, Queue, Delay, and Sink.
      Returns:
      configured open network model
    • createForkJoinNetwork

      public static Network createForkJoinNetwork()
      Creates a network with a Fork-Join structure.
      Returns:
      configured fork-join network model
    • createMultiPathNetwork

      public static Network createMultiPathNetwork()
      Creates a more complex network with multiple paths.
      Returns:
      configured multi-path network model
    • createMixedClassNetwork

      public static Network createMixedClassNetwork()
      Creates a larger mixed-class network with open and closed classes.
      Returns:
      configured mixed-class network model
    • createCentralServerModel

      public static Network createCentralServerModel()
      Creates a central server model (closed network with CPU and multiple disks).
      Returns:
      configured central server network model
    • main

      public static void main(String[] args)
      Main method demonstrating the plot() method on Network models.
      Parameters:
      args - command line arguments (not used)