Interface WriteFunction<V>

  • Type Parameters:
    V - The type of value to write.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface WriteFunction<V>
    Defines the interface of a write function.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void apply​(java.lang.String functionalProfile, java.lang.String dataPoint, V value)
      Executes the function.
    • Method Detail

      • apply

        void apply​(java.lang.String functionalProfile,
                   java.lang.String dataPoint,
                   V value)
            throws com.smartgridready.driver.api.common.GenDriverException,
                   com.smartgridready.driver.api.modbus.GenDriverModbusException,
                   com.smartgridready.driver.api.modbus.GenDriverSocketException,
                   java.io.IOException,
                   RestApiServiceCallException,
                   RestApiAuthenticationException,
                   RestApiResponseParseException
        Executes the function.
        Parameters:
        functionalProfile - the functional profile name
        dataPoint - the data point name
        value - the value to set
        Throws:
        com.smartgridready.driver.api.common.GenDriverException - when an unspecific error occurred
        com.smartgridready.driver.api.modbus.GenDriverModbusException - when a Modbus error occurred
        com.smartgridready.driver.api.modbus.GenDriverSocketException - when a network error occurred
        java.io.IOException - when a communication error occurred
        RestApiServiceCallException - when the HTTP request failed
        RestApiAuthenticationException - when HTTP authentication failed
        RestApiResponseParseException - when the HTTP response could not be parsed