package nachos.threads; import nachos.machine.*; public class ReactWater{ /** * Constructor of ReactWater **/ public ReactWater() { } // end of ReactWater() /** * When H element comes, if there already exist another H element * and an O element, then call the method of Makewater(). Or let * H element wait in line. **/ public void hReady() { } // end of hReady() /** * When O element comes, if there already exist another two H * elements, then call the method of Makewater(). Or let O element * wait in line. **/ public void oReady() { } // end of oReady() /** * Print out the message of "water was made!". **/ public void Makewater() { } // end of Makewater() } // end of class ReactWater