Question: Your task is to complete the implementation of four classes: RadiationSensor which extends Observable. Because we do not have a real reactor to monitor, we
Your task is to complete the implementation of four classes:
RadiationSensor which extends Observable. Because we do not have a real reactor to monitor, we will simulate radiation readings using a random number generator. readRadiation() should set a private radiation variable to a random double between 0 and 10. Hint: to assist you with the remainder of readRadiation(), inspect the JDK class Observable.
RadiationMonitor which implements the Observer interface. Note that now() is already complete, but you will need to implement the rest of the class except for the abstract methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
