Class LayeredVisualizationExample

  • All Implemented Interfaces:

    
    public class LayeredVisualizationExample
    
                        

    Demonstrates JUNG visualization of LayeredNetwork models using the plot() method.

    This example creates layered queueing network models and displays them using the built-in plot() method. The visualization showcases the structure of complex multi-tier software architectures.

    The visualization uses shape coding:

    • Red pyramids: Processors/Hosts
    • Red parallelograms: Tasks
    • Red rectangles: Entries
    • Red circles: Activities

    Edge styles indicate relationship types (all edges are black):

    • Solid lines: Parent-child containment, entry-to-activity binding, activity precedence
    • Dashed lines: Synchronous calls
    • Dot-dashed lines: Asynchronous calls
    • Dotted lines: Forwarding calls

    The window includes menus for switching layouts and mouse modes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static LayeredNetwork createForwardingExample() Creates a simple model demonstrating forwarding calls.
      static void main(Array<String> args) Main method demonstrating the plot() method on LayeredNetwork.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayeredVisualizationExample

        LayeredVisualizationExample()
    • Method Detail

      • createForwardingExample

         static LayeredNetwork createForwardingExample()

        Creates a simple model demonstrating forwarding calls.

        In this model:

        • Client calls Server1
        • Server1 forwards the reply to Server2 (50% probability)
        • Server2 sends the reply back to Client
        Returns:

        LayeredNetwork with forwarding calls

      • main

         static void main(Array<String> args)

        Main method demonstrating the plot() method on LayeredNetwork.

        Parameters:
        args - command line arguments (not used)