idi.diplom.linda.db.interfaces
Interface AlarmDAO

All Superinterfaces:
GenericDAO<Alarm,java.lang.Long>
All Known Implementing Classes:
AlarmDAOHibernate

public interface AlarmDAO
extends GenericDAO<Alarm,java.lang.Long>


Method Summary
 boolean dismissedWithinInterval(long milliseconds, Patient p)
          Checks if the patient has any alarms that was dismissed within the specified number of milliseconds.
 Alarm getAlarmFromTrigger(Patient p, int s)
           
 java.util.List<Alarm> getAlarmsBetweenDate(Patient p, java.util.Date fromTime, java.util.Date toTime)
          Gets all alarms on the specified patient between the to specified dates
 java.util.List<Alarm> getAllActiveAlarms(Patient p)
           
 java.util.List<Alarm> getAllDismissedAlarmsWithinInterval(Patient p)
          NOT IN USE IN THIS VERSION
 
Methods inherited from interface idi.diplom.linda.db.interfaces.GenericDAO
findAll, findByExample, findById, makePersistent, makeTransient
 

Method Detail

getAlarmsBetweenDate

java.util.List<Alarm> getAlarmsBetweenDate(Patient p,
                                           java.util.Date fromTime,
                                           java.util.Date toTime)
Gets all alarms on the specified patient between the to specified dates

Parameters:
Patient - p
Date - fromTime
Date - toTime
Returns:
List alarmList

getAlarmFromTrigger

Alarm getAlarmFromTrigger(Patient p,
                          int s)
Parameters:
Patient - p
int - s
Returns:
Alarm alarm
See Also:
AlarmLogic

getAllActiveAlarms

java.util.List<Alarm> getAllActiveAlarms(Patient p)
Parameters:
Patient - p
Returns:
List alarmList
See Also:
AlarmLogic

getAllDismissedAlarmsWithinInterval

java.util.List<Alarm> getAllDismissedAlarmsWithinInterval(Patient p)
NOT IN USE IN THIS VERSION

Parameters:
p -
Returns:

dismissedWithinInterval

boolean dismissedWithinInterval(long milliseconds,
                                Patient p)
Checks if the patient has any alarms that was dismissed within the specified number of milliseconds. If so, true is returned.

Parameters:
long - milliseconds
patient - to check
Returns:
boolean dismissedWithin