Package org.openwebnet4j
Interface GatewayListener
- 
public interface GatewayListenerInterfaceGatewayListenerto listen to event and changes in aOpenGateway- Author:
 - M. Valla - Initial contribution
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnected()This method is called after the connection to the gateway has been established correctlyvoidonConnectionClosed()This method is called after the gateway connection has been closed callingOpenGateway.closeConnection()voidonConnectionError(OWNException error)This method is called when connecting to gateway has returned and errorvoidonDisconnected(OWNException error)This method is called after the connection with gateway has been lost/disconnectedvoidonDiscoveryCompleted()This method is called afterOpenGateway.discoverDevices()is called when device discovery has been completed successfullyvoidonEventMessage(OpenMessage msg)This method is called when a new OpenWebNet message is received on the gateway MON sessionvoidonNewDevice(Where where, OpenDeviceType deviceType, BaseOpenMessage message)AfterOpenGateway.discoverDevices()is called, each time a new device is discovered, this method will be calledvoidonReconnected()This method is called after the connection with gateway has been re-connected 
 - 
 
- 
- 
Method Detail
- 
onConnected
void onConnected()
This method is called after the connection to the gateway has been established correctly 
- 
onConnectionError
void onConnectionError(OWNException error)
This method is called when connecting to gateway has returned and error- Parameters:
 error- theOWNExceptionreturned
 
- 
onConnectionClosed
void onConnectionClosed()
This method is called after the gateway connection has been closed callingOpenGateway.closeConnection() 
- 
onDisconnected
void onDisconnected(OWNException error)
This method is called after the connection with gateway has been lost/disconnected- Parameters:
 error- theOWNExceptionreturned
 
- 
onReconnected
void onReconnected()
This method is called after the connection with gateway has been re-connected 
- 
onEventMessage
void onEventMessage(OpenMessage msg)
This method is called when a new OpenWebNet message is received on the gateway MON session- Parameters:
 msg- the OpenMessage received
 
- 
onNewDevice
void onNewDevice(Where where, OpenDeviceType deviceType, BaseOpenMessage message)
AfterOpenGateway.discoverDevices()is called, each time a new device is discovered, this method will be called- Parameters:
 where- the discovered device's address (WHERE)deviceType- device type of the discovered devicemessage- the OWN message received that identified the device
 
- 
onDiscoveryCompleted
void onDiscoveryCompleted()
This method is called afterOpenGateway.discoverDevices()is called when device discovery has been completed successfully 
 - 
 
 -