|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimulationlogic.HealthCommunicator
public class HealthCommunicator
This sends health data to server. Currently is pulse communicator, probably should be refactored later to incorporate more data types
| 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 |
|---|
public HealthCommunicator(java.net.URL url)
url - | Method Detail |
|---|
public java.net.URL getURL()
public void postData(HealthInformation healthdata)
healthdata - public HealthInformation getData()
public void testCommunication()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||