org.ifeth.sehr.client.api.driver
Class LANDriver

java.lang.Object
  extended byorg.ifeth.sehr.client.api.driver.ConnectionDriver
      extended byorg.ifeth.sehr.client.api.driver.LANDriver
All Implemented Interfaces:
java.lang.Runnable

public class LANDriver
extends ConnectionDriver

This is a 'simple' LAN driver object to connect a client directly by LAN to a SEHR host.

Author:
hansjhaase
See Also:
ConnectionDriver

Nested Class Summary
 
Nested classes inherited from class org.ifeth.sehr.client.api.driver.ConnectionDriver
ConnectionDriver.StatusNotification
 
Field Summary
 int TypeOfDriver
           
 
Fields inherited from class org.ifeth.sehr.client.api.driver.ConnectionDriver
Log
 
Constructor Summary
LANDriver()
           
 
Method Summary
 int connect()
          Connect to a SEHR host via LAN
 ConnectionDriver.StatusNotification getNotification()
          Get a status notifiation from driver (if any)
 boolean reconnect()
          Reconnect to a SEHR host via LAN; just reset status for LAN :)
 void run()
          Monitoring LAN connection...
 
Methods inherited from class org.ifeth.sehr.client.api.driver.ConnectionDriver
discardConnectionLayer, disconnect, getConnectionInfo, getConnectionLayer, getConnectionLayers, getConnections, getLastConTime, getNotifiation, getTotalConTime, getTypeOfDriver, initialize, newConnection, notifyListeners, registerConnectionListener, setRASEntry, setRASPassword, setRASUsername, start, stop, switchConnectionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TypeOfDriver

public int TypeOfDriver
Constructor Detail

LANDriver

public LANDriver()
Method Detail

run

public void run()
Monitoring LAN connection...

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class ConnectionDriver

reconnect

public boolean reconnect()
Reconnect to a SEHR host via LAN; just reset status for LAN :)


connect

public int connect()
Connect to a SEHR host via LAN

Overrides:
connect in class ConnectionDriver

getNotification

public ConnectionDriver.StatusNotification getNotification()
Get a status notifiation from driver (if any)