Package alarm

Class AlarmProcess

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class AlarmProcess extends PamProcess
  • Constructor Details

    • AlarmProcess

      public AlarmProcess(AlarmControl alarmControl)
  • Method Details

    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • getAlarmStatus

      public int getAlarmStatus()
      Returns:
      the alarmStatus
    • updateAlarmScore

      public void updateAlarmScore(double alarmCount, long timeMillis)
      Received an updated alarm score.
      Parameters:
      alarmCount -
    • setAlarmStatus

      public void setAlarmStatus(int alarmStatus, double score, long timeMillis)
      Parameters:
      alarmStatus - the alarmStatus to set
    • masterClockUpdate

      public void masterClockUpdate(long timeMilliseconds, long sampleNumber)
      Specified by:
      masterClockUpdate in interface PamObserver
      Overrides:
      masterClockUpdate in class PamProcess
    • newData

      public void newData(PamObservable o, PamDataUnit dataUnit)
      Overrides:
      newData in class PamProcess
    • updateData

      public void updateData(PamObservable o, PamDataUnit arg)
      Description copied from interface: PamObserver
      Informs the PamObserver that existing data have been updated
      Specified by:
      updateData in interface PamObserver
      Overrides:
      updateData in class PamProcess
    • setupAlarm

      public boolean setupAlarm()
    • getAlarmDataBlock

      public AlarmDataBlock getAlarmDataBlock()
    • getAlarmCounter

      public AlarmCounter getAlarmCounter()
      Returns:
      the alarmCounter
    • destroyProcess

      public void destroyProcess()
      Description copied from class: PamProcess
      Called from the PamControlled unit when a PamControlled unit is removed from the model. Offers an opportunity to disconnect individual processed from the rest of the model. May be necessary to override to clean up some processes.
      Overrides:
      destroyProcess in class PamProcess