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
Create a and IPC handler that would do the following:
-> Listen for IPC communications on
on-simulatechannel-> 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