Package jline.examples.java.basic
Class NetworkVisualizationExample
java.lang.Object
jline.examples.java.basic.NetworkVisualizationExample
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkCreates a central server model (closed network with CPU and multiple disks).static NetworkCreates a network with a Fork-Join structure.static NetworkCreates a larger mixed-class network with open and closed classes.static NetworkCreates a more complex network with multiple paths.static NetworkCreates a simple open queueing network with Source, Queue, Delay, and Sink.static voidMain method demonstrating the plot() method on Network models.
-
Constructor Details
-
NetworkVisualizationExample
public NetworkVisualizationExample()
-
-
Method Details
-
createSimpleOpenNetwork
Creates a simple open queueing network with Source, Queue, Delay, and Sink.- Returns:
- configured open network model
-
createForkJoinNetwork
Creates a network with a Fork-Join structure.- Returns:
- configured fork-join network model
-
createMultiPathNetwork
Creates a more complex network with multiple paths.- Returns:
- configured multi-path network model
-
createMixedClassNetwork
Creates a larger mixed-class network with open and closed classes.- Returns:
- configured mixed-class network model
-
createCentralServerModel
Creates a central server model (closed network with CPU and multiple disks).- Returns:
- configured central server network model
-
main
Main method demonstrating the plot() method on Network models.- Parameters:
args- command line arguments (not used)
-