Network Monitoring Demo

This demo shows a simple network monitoring tool. You can watch the traffic flow through the network and even influence the network. The network consists of PCs, Laptops, Tablets, Switches, Servers, Databases and W-LANS. The color of the edges change from green to yellow to red depending on its traffic load. The traffic load of nodes is shown on their info label. Active edges are marked through an animation.

Things to try

Class Description
demo.view.networkmonitoring.NetworkMonitoringDemoAllows to watch and influence the traffic flow through a network.
demo.view.networkmonitoring.NetworkDataNetwork data for a network node or a connection as seen by the view.
demo.view.networkmonitoring.NetworkInfoLabelPainterPaints an info label that displays a label text and additional buttons on a bubble shaped background.
demo.view.networkmonitoring.NetworkConnectionPainterA painter that paints network connections.
demo.view.networkmonitoring.NetworkInteractionModeViewMode to disable, enable or repair network nodes and edges.
demo.view.networkmonitoring.NetworkModelInterface for a network model
demo.view.networkmonitoring.NetworkModelImpl This is an elementary network model that creates consistent data load. In this model, PCs generate data. Data is sent between nodes without a specific target. The nodes behave differently:
  • Switches and W-LANs route data to the least busy node.
  • Server and databases send (maybe more) data back to the node who send him data.
  • PCs, Laptops and Tablets generate data and are the only target for data
demo.view.networkmonitoring.NetworkModelObserverInterface for NetworkModel observer
demo.view.networkmonitoring.NetworkMonitoringFactoryFactory class that provides realizer configurations for network nodes and connections. Also provides color constants and the warning icon.
demo.view.networkmonitoring.NetworkNodeInfoContains the name and ip address of a network node
demo.view.networkmonitoring.NetworkNodePainterA painter that paints a network node either in enabled or disabled state.
demo.view.networkmonitoring.NetworkViewThe network view creates a view graph and updates it every time the state of elements in the model graph changes.

Running the Demos

From Within an IDE

Set <yFilesDir>/src as your source directory. Then add <yFilesDir>/lib/y.jar and the source folder <yFilesDir>/src to your classpath. Now you should be ready to compile and run all executable demo classes.

With Ant

First make sure you have the build tool Ant installed on your system. Now you can use the demo build script build.xml located in <yFilesDir>/src/demo to launch each demo by specifying its simple class name as a target. Alternatively, launch the interactive demo driver by specifying run as target to conveniently access all demos.