|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.efiAnalytics.plugin.ecu.ControllerAccess
public class ControllerAccess
This is a Singleton that acts as a gateway to the Controller for the plugin. It
is will be initialized by the host application TunerStudio with valid implementations
of ControllerParameterServer and OutputChannelServer.
| Method Summary | |
|---|---|
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)
|
static void |
initialize(OutputChannelServer outputServer,
ControllerParameterServer parameterServer)
Initializes this ControllerAccess with valid implementations of ControllerParameterServer and OutputChannelServer. |
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 |
setUiComponentServerProvider(UiSettingServerProvider uiComponentServer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 set
public double evaluateExpression(java.lang.String configurationName,
java.lang.String expression)
throws MathException
configurationName - expression -
MathException
public void sendBurnCommand(java.lang.String configurationName)
throws ControllerException
configurationName -
ControllerExceptionpublic void setMathExpressionEvaluator(MathExpressionEvaluator mathExpressionEvaluator)
mathExpressionEvaluator - the mathExpressionEvaluator to set
public 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||