Interface ControllerParameterServer


public interface ControllerParameterServer
This interface will be implemented by the Host Application. Plugins will retrieve an instance of it from ControllerParameterManager
Author:
Philip Tobin
  • Method Details

    • subscribe

      void subscribe(String ecuConfigurationName, String parameterName, ControllerParameterChangeListener listener) throws ControllerException
      subscribes the listener to be notified any time there is a change in value for the parameter referenced by name. use getParameterNames() to retrieve a full list of ecu Paramenter name in the current ecuConfiguration
      Throws:
      ControllerException
    • unsubscribe

      void unsubscribe(ControllerParameterChangeListener listener)
      unsubscribes the listener from all parameters
    • getParameterNames

      String[] getParameterNames(String ecuConfigurationName)
      returns a list of all parameter names in the current controller configuration these names would have been defined in the ecu configuration or ini file
    • getControllerParameter

      ControllerParameter getControllerParameter(String ecuConfigurationName, String controllerParameterName) throws ControllerException
      retrieves a ControllerParameter by name. valid names are defined in the ecu configuration or ini file and can be retrieved with getParameterNames()
      Parameters:
      ecuConfigurationName -
      controllerParameterName -
      Throws:
      ControllerException
    • updateParameter

      void updateParameter(String ecuConfigurationName, String controllerParameterName, double value) throws ControllerException
      updates the value of a scalar parameter. throws ControllerException The Exception message will provide greater detail on the error.
      Throws:
      ControllerException
    • updateParameter

      void updateParameter(String ecuConfigurationName, String controllerParameterName, double[][] values) throws ControllerException
      updates an Array. The array dimensions must be equal to that of the Parameter which would have been retrieved from ControllerParameter throws ControllerException The Exception message will provide greater detail on the error.
      Throws:
      ControllerException
    • updateParameter

      void updateParameter(String ecuConfigurationName, String controllerParameterName, String option) throws ControllerException
      used to update the value of a bit selection
      Parameters:
      controllerParameterName - - Valid Parameter name
      option - - String value description, must be equal to a valid value retrieved from ControllerParameter throws ControllerException The Exception message will provide greater detail on the error.
      Throws:
      ControllerException
    • burnData

      void burnData(String configurationName) throws ControllerException
      initiates a burn command to the named configuration. This will persist any changes that have been made to the settings data.
      Parameters:
      configurationName - - the name of the configuration to initiate the burn command.
      Throws:
      ControllerException