simulationlogic
Class HealthInformation

java.lang.Object
  extended by simulationlogic.HealthInformation

public class HealthInformation
extends java.lang.Object

This is a generic health information wrapper. It contains patient id, patient data type, health data, and timestamp

Author:
shane

Constructor Summary
HealthInformation(java.lang.String patientUsername, java.lang.String dataType, java.lang.Double healthData, java.util.Date timeStamp)
          Health Information Packet Constructor
 
Method Summary
 java.lang.String getDataType()
          returns string representing dataType
 java.lang.Double getHealthData()
          returns health data as an integer
 java.lang.String getPatientUsername()
          return patient username as a String
 java.util.Date getTimeStamp()
          returns time stamp of this packets health data in form of Date
 void setData(java.lang.Double healthData)
          dynamically changes the health data
 void setDate(java.util.Date date)
          dynamically change the date on the packet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthInformation

public HealthInformation(java.lang.String patientUsername,
                         java.lang.String dataType,
                         java.lang.Double healthData,
                         java.util.Date timeStamp)
Health Information Packet Constructor

Parameters:
patientID -
dataType -
healthData -
timeStamp -
Method Detail

setData

public void setData(java.lang.Double healthData)
dynamically changes the health data

Parameters:
healthData -

setDate

public void setDate(java.util.Date date)
dynamically change the date on the packet

Parameters:
date -

getPatientUsername

public java.lang.String getPatientUsername()
return patient username as a String

Returns:

getDataType

public java.lang.String getDataType()
returns string representing dataType

Returns:

getHealthData

public java.lang.Double getHealthData()
returns health data as an integer

Returns:

getTimeStamp

public java.util.Date getTimeStamp()
returns time stamp of this packets health data in form of Date

Returns: