change code in method to deploy an array of sensor simulators
£10-20 GBP
Ολοκληρώθηκε
Αναρτήθηκε πάνω από 8 χρόνια πριν
£10-20 GBP
Πληρωμή κατά την παράδοση
In [login to view URL] and change the code in the
runSimulation() method so that an array of SensorSim objects are employed
rather than a single one. They should all be given the same initial nominal
value and noise value and the random-walk should adjust them all in the same
way. The reading should be an average of their readings.
Rather than hard-coding the size of this array, make it a parameter passed in
through the constructor.
Make one of the simulated sensors is a FaultySensorSim and the remainder noisy but non-faulty SensorSim instances. Investigate the behaviour of this
simulation with three (1+2) sensors: how high can the nominal value go before
an emergency shut-down is triggered? Repeat with four (1 faulty + 3 non-faulty)
sensors.
sensor = new SensorSim(sensorNom, sensorErr);
for faulty sensor sim change to
sensor = new FaultySensorSim(sensorNom, sensorErr, 10000, 200);
where the first value is fault interval and the next is fault value
Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!Ready to work!