/* Heart.idl
 * This file contains an idl description of a heart rate monitor
 * at a nurses station.  It receives messages from local monitors in
 * each patient's room.
 *
 * Written by: Stuart Hansen
 * Date: February 3, 2009
 */
module heartMonitor {
   interface HeartRateMonitor {

      // This method registers a local monitor with the server
      oneway void register (in string name);

      // This method unregisters a local monitor with the server
      oneway void unregister (in string name);
     
      // A method to receive a new heart rate value
      oneway void newRate (in string name, in long rate);

      // A method to sound an alarm when the heart rate goes too fast or
      // too slow.  It is left to the local client to decide what the
      // appropriate values for the alarm are.  Typical values in a real
      // hospital setting would be 40 and 140.
      oneway void soundAlarm (in string name, in long rate);
   };
};