public class ControllerAccess
extends java.lang.Object
ControllerParameterServer and OutputChannelServer.| Modifier and Type | Method and Description |
|---|---|
double |
evaluateExpression(java.lang.String configurationName,
java.lang.String expression)
evaluates any mathematical expression made up of numbers, OutputChannel
names and Constant/ControllerParameter names.
|
ControllerParameterServer |
getControllerParameterServer()
Provides access to ControllerParameterServer
|
java.lang.String[] |
getEcuConfigurationNames()
Provides visibility to the currently loaded Configuration Names.
|
static ControllerAccess |
getInstance()
This will provide add hock access to the ControllerAccess.
|
OutputChannelServer |
getOutputChannelServer()
Provides access to the OuputChannelServer.
|
UiSettingServer |
getUiComponentServer(java.lang.String configurationName) |
void |
goOffline()
if offline, will command the main controller to go online.
|
void |
goOnline()
if offline, will command the main controller to go online.
|
static void |
initialize(OutputChannelServer outputServer,
ControllerParameterServer parameterServer)
Initializes this ControllerAccess with valid implementations of
ControllerParameterServer and OutputChannelServer. |
boolean |
isOnline()
determines if the main controller is online.
|
void |
sendBurnCommand(java.lang.String configurationName)
sends a Burn Command to the named ECU Configuration instructing it to
persist setting data from RAM to FLASH
|
void |
setBurnExecutor(BurnExecutor burnExecutor) |
void |
setConfigurationNameProvider(EcuConfigurationNameServer configurationNameProvider) |
void |
setMathExpressionEvaluator(MathExpressionEvaluator mathExpressionEvaluator) |
void |
setOnlineExecutor(OnlineExecution onlineExecutor) |
void |
setUiComponentServerProvider(UiSettingServerProvider uiComponentServer) |
public static void initialize(OutputChannelServer outputServer, ControllerParameterServer parameterServer)
ControllerParameterServer and OutputChannelServer.
This should only be called by the host application, not the plugin
Plug ins will access this via getInstance() or as it is
passed into ApplicationPlugin initialize.outputServer - A instance of a OutputChannelServerparameterServer - An instance of ControllerParameterServerpublic static ControllerAccess getInstance()
public OutputChannelServer getOutputChannelServer()
OutputChannelServer for
access to the currently loaded controller configuration.public ControllerParameterServer getControllerParameterServer()
ControllerParemeterServer that
was initialized by the host applicationpublic java.lang.String[] getEcuConfigurationNames()
public void setConfigurationNameProvider(EcuConfigurationNameServer configurationNameProvider)
configurationNameProvider - the configurationNameProvider to setpublic double evaluateExpression(java.lang.String configurationName,
java.lang.String expression)
throws MathException
configurationName - expression - MathExceptionpublic void sendBurnCommand(java.lang.String configurationName)
throws ControllerException
configurationName - ControllerExceptionpublic void setMathExpressionEvaluator(MathExpressionEvaluator mathExpressionEvaluator)
mathExpressionEvaluator - the mathExpressionEvaluator to setpublic UiSettingServer getUiComponentServer(java.lang.String configurationName) throws ControllerException
ControllerExceptionpublic void setUiComponentServerProvider(UiSettingServerProvider uiComponentServer)
uiComponentServer - the uiComponentServer to setpublic void setBurnExecutor(BurnExecutor burnExecutor)
burnExecutor - the burnExecutor to setpublic void setOnlineExecutor(OnlineExecution onlineExecutor)
onlineExecutor - the onlineExecutor to setpublic boolean isOnline()
throws ControllerException
ControllerExceptionpublic void goOnline()
throws ControllerException
ControllerExceptionpublic void goOffline()
throws ControllerException
ControllerException