GithubHelp home page GithubHelp logo

device-observer's Introduction

Device observer application

Screenshot from the running application

Installation and start

  • run "install.cmd" for application installation - downloads all necessary dependencies (currently only JavaFX)
  • run "run.cmd" for application start

"install.cmd" will compile the project and generates jar files in target/modules directory

Requirement

  • you monitor devices, which are sending data to you,
  • each device has a unique name,
  • each device produces measurements.

Challenge: compute number of messages you got or read from the devices.

Solution

The created application simulates producing data from random devices and visualising this data in graph. Each line in the graph represents one device and its data. In the table you can see information about current devices, its IDs and most importantly count of all received messages for each device. Buttons right next to the table are used for adding or removing new/existing devices.

To start simulation just hit the start button.

Explanation

By default, there will be 10 initialized devices ready to produce data. There is one ExecutorService initialized to contain 4 fixed worker threads. When simulation starts, four instances of device data producer is created and attached to the executor service to generate data. Devices are picked randomly and so are data produced by device. The Graph is updated periodically in UI thread. It checks new data received from devices and add new values to the graph. If there is too many values, old will be removed.

Total count of received messages is updated when new data are synchronized with GUI.

device-observer's People

Contributors

stechy1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.