Interface ReadFunction<R>

  • Type Parameters:
    R - The type of result.

    public interface ReadFunction<R>
    Defines the interface of a read function.
    • Method Summary

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

      • apply

        R apply​(java.lang.String functionalProfile,
                java.lang.String dataPoint)
         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
        Returns:
        a result of the generic type
        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