idi.diplom.linda.logic
Class MedPacketLogic
java.lang.Object
idi.diplom.linda.logic.MedPacketLogic
public class MedPacketLogic
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MedPacketLogic
public MedPacketLogic()
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
- pfromTime
- toTime
- int
- resolution
- Returns:
- MedPacket[] medpacketArray
- Throws:
DatabaseException
GeneralException