idi.diplom.linda.logic
Class MedPacketLogic

java.lang.Object
  extended by idi.diplom.linda.logic.MedPacketLogic

public class MedPacketLogic
extends java.lang.Object


Constructor Summary
MedPacketLogic()
           
 
Method Summary
 MedPacket getLast(Patient p)
          Returns the last medpacket fetched from LifeShirt on the specified patient
 MedPacket[] getMedPacketsBetweenDates(Patient p, java.util.Date fromTime, java.util.Date toTime, int resolution)
          Returns a list of all medpackets in database on specified patient between the specified dates.
 java.util.List<MedPacket> getMedPacketsFromIntervalInFront(Alarm a)
          NOT IN USE IN THIS VERSION.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedPacketLogic

public MedPacketLogic()
Method Detail

getLast

public MedPacket getLast(Patient p)
                  throws DatabaseException,
                         GeneralException
Returns the last medpacket fetched from LifeShirt on the specified patient

Parameters:
patient - to get monitoring data from
Returns:
the last saved medpacket
Throws:
DatabaseException
GeneralException

getMedPacketsFromIntervalInFront

public java.util.List<MedPacket> getMedPacketsFromIntervalInFront(Alarm a)
                                                           throws DatabaseException,
                                                                  GeneralException
NOT IN USE IN THIS VERSION.

Parameters:
a -
Returns:
Throws:
DatabaseException
GeneralException

getMedPacketsBetweenDates

public MedPacket[] getMedPacketsBetweenDates(Patient p,
                                             java.util.Date fromTime,
                                             java.util.Date toTime,
                                             int resolution)
                                      throws DatabaseException,
                                             GeneralException
Returns a list of all medpackets in database on specified patient between the specified dates. Also only every resolution packets are received.

Parameters:
Patient - p
fromTime -
toTime -
int - resolution
Returns:
MedPacket[] medpacketArray
Throws:
DatabaseException
GeneralException