Interface HomePowerPlantConnection
-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public interface HomePowerPlantConnection implements Closeable
Connection to the home power plant. Provides the ability to send and receive frames.
- Since:
2.0
-
-
Method Summary
Modifier and Type Method Description abstract Unitconnect()Establishes the connection to the home power plant. abstract Unitdisconnect()Closes the connection to the home power plant. abstract BooleanisConnected()Checks if there is a connection abstract Framesend(Frame frame)Sends a frame to the home power plant and returns the response -
-
Method Detail
-
connect
abstract Unit connect()
Establishes the connection to the home power plant. If a connection already exists, this is a no-op.
- Since:
2.0
-
disconnect
abstract Unit disconnect()
Closes the connection to the home power plant. If there is no connection, this is a no-op. close calls disconnect.
- Since:
2.0
-
isConnected
abstract Boolean isConnected()
Checks if there is a connection
- Returns:
true, if the connection exists, otherwise false
- Since:
2.0
-
-
-
-