Class NetworkVisualizationExample
-
- All Implemented Interfaces:
public class NetworkVisualizationExampleDemonstrates 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 Summary
Constructors Constructor Description NetworkVisualizationExample()
-
Method Summary
Modifier and Type Method Description static NetworkcreateSimpleOpenNetwork()Creates a simple open queueing network with Source, Queue, Delay, and Sink. static NetworkcreateForkJoinNetwork()Creates a network with a Fork-Join structure. static NetworkcreateMultiPathNetwork()Creates a more complex network with multiple paths. static NetworkcreateMixedClassNetwork()Creates a larger mixed-class network with open and closed classes. static NetworkcreateCentralServerModel()Creates a central server model (closed network with CPU and multiple disks). static voidmain(Array<String> args)Main method demonstrating the plot() method on Network models. -
-
Method Detail
-
createSimpleOpenNetwork
static Network createSimpleOpenNetwork()
Creates a simple open queueing network with Source, Queue, Delay, and Sink.
- Returns:
configured open network model
-
createForkJoinNetwork
static Network createForkJoinNetwork()
Creates a network with a Fork-Join structure.
- Returns:
configured fork-join network model
-
createMultiPathNetwork
static Network createMultiPathNetwork()
Creates a more complex network with multiple paths.
- Returns:
configured multi-path network model
-
createMixedClassNetwork
static Network createMixedClassNetwork()
Creates a larger mixed-class network with open and closed classes.
- Returns:
configured mixed-class network model
-
createCentralServerModel
static Network createCentralServerModel()
Creates a central server model (closed network with CPU and multiple disks).
- Returns:
configured central server network model
-
-
-
-