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 Summary
Modifier and TypeMethodDescriptionvoidinitiates a burn command to the named configuration.getControllerParameter(String ecuConfigurationName, String controllerParameterName) retrieves aControllerParameterby name.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 filevoidsubscribe(String ecuConfigurationName, String parameterName, ControllerParameterChangeListener listener) subscribes the listener to be notified any time there is a change in value for the parameter referenced by name.voidunsubscribe(ControllerParameterChangeListener listener) unsubscribes the listener from all parametersvoidupdateParameter(String ecuConfigurationName, String controllerParameterName, double value) updates the value of a scalar parameter.voidupdateParameter(String ecuConfigurationName, String controllerParameterName, double[][] values) updates an Array.voidupdateParameter(String ecuConfigurationName, String controllerParameterName, String option) used to update the value of a bit selection
-
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. usegetParameterNames()to retrieve a full list of ecu Paramenter name in the current ecuConfiguration- Throws:
ControllerException
-
unsubscribe
unsubscribes the listener from all parameters -
getParameterNames
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 aControllerParameterby name. valid names are defined in the ecu configuration or ini file and can be retrieved withgetParameterNames()- Parameters:
ecuConfigurationName-controllerParameterName-- Throws:
ControllerException
-
updateParameter
void updateParameter(String ecuConfigurationName, String controllerParameterName, double value) throws ControllerException updates the value of a scalar parameter. throwsControllerExceptionThe 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 fromControllerParameterthrowsControllerExceptionThe 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 nameoption- - String value description, must be equal to a valid value retrieved fromControllerParameterthrowsControllerExceptionThe Exception message will provide greater detail on the error.- Throws:
ControllerException
-
burnData
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
-