simulationlogic
Class HealthCommunicator

java.lang.Object
  extended by simulationlogic.HealthCommunicator

public class HealthCommunicator
extends java.lang.Object

This sends health data to server. Currently is pulse communicator, probably should be refactored later to incorporate more data types

Author:
Shane Woolwine

Constructor Summary
HealthCommunicator(java.net.URL url)
          Must have valid url upon construction
 
Method Summary
 HealthInformation getData()
          returns health data for this packet, null if no data in packet; This is mainly used for debugging purposes
 java.net.URL getURL()
          returns URL
 void postData(HealthInformation healthdata)
          must be called before post.
 void testCommunication()
          test communication tests communication with the server by sending patient data of type pulse with id 1 and data value 65
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthCommunicator

public HealthCommunicator(java.net.URL url)
Must have valid url upon construction

Parameters:
url -
Method Detail

getURL

public java.net.URL getURL()
returns URL

Returns:

postData

public void postData(HealthInformation healthdata)
must be called before post. Gives data to packet to be sent;

Parameters:
healthdata -

getData

public HealthInformation getData()
returns health data for this packet, null if no data in packet; This is mainly used for debugging purposes

Returns:

testCommunication

public void testCommunication()
test communication tests communication with the server by sending patient data of type pulse with id 1 and data value 65