Giter Site home page Giter Site logo

simulatormanager's People

Contributors

ievgenragulin avatar

Watchers

 avatar  avatar

simulatormanager's Issues

Check if simulation is running

Try to get data from simulator. If it's impossible, set Simulation not running state to database. If it's possible, set Simulation running state to database.

Flight map - not implemented yet

When user goes to RunningSimulationsView:

  1. Download flight history from database. Filter (on the database side if possible, if no - on java side) to choose only those records where distance between two points is more than 100 meters. When the distance is less than 100 meters, we are not interested in this data and we don't put a new pin on the map.
    Question: should we also display the coordinates in text format?
  2. Every second get data about latest plane position from database. If distance from the previous position is more than 100 m, add a new pin on the map.
  3. Make sure pins look different for starting point and end point.
  4. When we change simulation, clean the map to delete info about the previous flight.
  5. When new data arrives, center the map around the current plane position. Not sure if we should do it every time new data arrives or only when the planes position changes significantly.
  6. Maybe we should also scale the map automatically to try include as much flight path as possible?
  7. Extract google map to your own component.
  8. Don't overdo it now. Anyway you will have to change it.

Running simulations page

Timestamps problem. Cannot convert value to number error message is displayed. No error message should be displayed.

PostgreSQL build index on tables

Database designer fork has generated queries for building indexes which I haven't executed. Maybe I should execute them? Does it improve performance significantly?

add a flag: should write data to database or something like that

have 2 separate schedulers? one for writing data to database. another for the simulator which we are viewing now. so that we don't retrieve data for those simulators which aren't viewed right now?

or just the flag, so that we don't contact simulators, data from which we don't want to store in the database.

Sprint 3

  1. Save info about hostname also - 0.5 day
    #24
  2. Check if simulation is running - 1 day
    #20
  3. Get data about running simulation on all simulators, save it to db - 2 days
    #21
  4. Parse simulation data, save it to a bean class, update it every second - 0.5 day
    #22
  5. Running simulations view - display data from actual simulation - 3 days
    #23
  6. Every minute clean the database to delete obsolete data - 1 day
    #25

modify buttons

add simulator button - add plus
remove simulator button - add cross

Fake data generator - unable to create new simulations

Currently fake data generator is able to only add data to existing simulation. It would be good if it could create a new simulation to test how Simulator Manager will behave when there is a new simulation available.

Primary flight display - conflict of when new data arives

Currently, when new data comes for altitude (and all other data), we check if the animation is currently running. If it is running, we ignore the last message to prevent race conditions.

Improve that:
Stop previous animation, start new animation, when new data arrives.

Every minute clean the database to delete obsolete data.

Save the last 30 minutes of the last simulation on each simulation.
If the data is older than 30 minutes, we keep a record only every minute.

We implement it by running a ScheduledExecutorService which cleans the database every minute.

Estimation - 1 day.

Previous simulations view

Maybe replay the simulation on PFD in a quick mode. That would be cool, but that would take a lot of time.

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.