public class ShiftLight extends SIMPluginCallback
Each light must have a unique port assigned to it in the settings. For example: If your light is on COM3, then use
mspec-rpm = 3By default the light will come on when speeding. You can control this with the "mspec-speeding = true or false" variable. This document was used as the reference to this implementation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
types |
Constructor and Description |
---|
ShiftLight(SIMPlugin SIMPlugin) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called when the SIMPlugin is destroyed.
|
boolean |
ProcessData(SIMPlugin SIMPlugin,
java.util.Map<java.lang.String,Data> data)
ProcessData is called from within the dedicated thread for this plug-in
every time there is data available in the queue it pops it off the queue and passes it to this method.
|
DataReady, Waiting
public ShiftLight(SIMPlugin SIMPlugin) throws SIMPlugin.SIMPluginException
SIMPlugin.SIMPluginException
public void destroy()
SIMPluginCallback
destroy
in class SIMPluginCallback
public boolean ProcessData(SIMPlugin SIMPlugin, java.util.Map<java.lang.String,Data> data)
SIMPluginCallback
//When calling the SIMPlugin from this method, you must synchronize on it first. It is not thread safe. Data d; synchronized (SIMPlugin) { //do not spend much time in here, we are blocking the main thread //Get the data and get out of the synchronized block d = SIMPlugin.getData("/Session/IsGreenFlag"); d = SIMPlugin.getSession().getIsGreenFlag(); } //do something with the data
ProcessData
in class SIMPluginCallback
SIMPlugin
- A reference to the SIMPlugin instance.data
- The Data objects added to the queue.