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

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

public class ConnectionDriver_Template
extends ConnectionDriver

This is a template for a connection driver to use by ConnectionDriver

Because all drivers have their own methods this is a wrapper class which converts the methods of a driver to make them usable by the SEHR connection manager.
The methods below don't contain any special code. If you are using your favorite package for IP connections you have to implement the wrapping code.

Author:
IFDarwin (concept of class loading), hansjhaase (adopting to SEHR), kaesebrot (RAS driver tests)

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
ConnectionDriver_Template()
           
 
Method Summary
 int connect()
          Connect to SEHR host
 ConnectionDriver.StatusNotification getNotification()
          Get a status notifiation from driver (if any)
 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

ConnectionDriver_Template

public ConnectionDriver_Template()
Method Detail

run

public void run()
Monitoring LAN connection...

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

connect

public int connect()
Connect to SEHR host

Overrides:
connect in class ConnectionDriver

getNotification

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