Class DefaultHomePowerPlantConnection

  • All Implemented Interfaces:
    de.jnkconsulting.e3dc.easyrscp.api.connection.HomePowerPlantConnection , java.io.Closeable , java.lang.AutoCloseable

    
    public final class DefaultHomePowerPlantConnection
     implements HomePowerPlantConnection
                        

    Simple implementation of HomePowerPlantConnection.

    Since:

    2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit connect()
      Unit disconnect()
      Boolean isConnected()
      Frame send(FrameĀ frame)
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultHomePowerPlantConnection

        DefaultHomePowerPlantConnection(E3DCConnectionData connectionData, AESCipherFactory aesFactory, SocketFactory socketFactory, FrameParser frameParser, List<RSCPRequestResponseListener> listener)
        Parameters:
        connectionData - Connection data to the home power plant
        aesFactory - Factory to encrypt the data before sending and decrypt the responses
        socketFactory - SocketFactory to use.
        frameParser - FrameParser to use to convert the responses from the home power plant into Frame objects.
        listener - Listeners to get informed about the lifecycle of sending/receiving frames