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.
Class | Description |
---|---|
demo.view.networkmonitoring.NetworkMonitoringDemo | Allows to watch and influence the traffic flow through a network. |
demo.view.networkmonitoring.NetworkData | Network data for a network node or a connection as seen by the view. |
demo.view.networkmonitoring.NetworkInfoLabelPainter | Paints an info label that displays a label text and additional buttons on a bubble shaped background. |
demo.view.networkmonitoring.NetworkConnectionPainter | A painter that paints network connections. |
demo.view.networkmonitoring.NetworkInteractionMode | ViewMode to disable, enable or repair network nodes and edges. |
demo.view.networkmonitoring.NetworkModel | Interface 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:
|
demo.view.networkmonitoring.NetworkModelObserver | Interface for NetworkModel observer |
demo.view.networkmonitoring.NetworkMonitoringFactory | Factory class that provides realizer configurations for network nodes and connections. Also provides color constants and the warning icon. |
demo.view.networkmonitoring.NetworkNodeInfo | Contains the name and ip address of a network node |
demo.view.networkmonitoring.NetworkNodePainter | A painter that paints a network node either in enabled or disabled state. |
demo.view.networkmonitoring.NetworkView | The network view creates a view graph and updates it every time the state of elements in the model graph changes. |
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.
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.