Skip to content

Implement simulation from app [Back-end] #70

Description

Create a and IPC handler that would do the following:

-> Listen for IPC communications on on-simulate channel
-> Create a DB cluster used for storing simulation data
-> Process the type of message and handle the following cases

[ Simulate ]

@param {Object} msg - Variable containing message from renderer

msg = {
type: START/STOP
interval: int
}

-> Get the simulation's interval value and start the simulation scrip in another thread using node os package
-> Datastore api has to be modified to store simulated data into simulated database
-> There should be a constant value for the max amount of seconds that a simulation can run.
-> Check if the simulation time hasn't exceeded the max time, if so, stop the simulation

[Stop Simulation]

-> Stop the simulation and empty simulation database

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions