Package heronarts.lx.script
Class LXScriptEngine
java.lang.Object
heronarts.lx.script.LXScriptEngine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclassInterface of methods exposed for Javascript to call back up into the LX devicefinal class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringParameterUser facing error messagefinal MutableParameterA bang is sent to this parameter to notify the UI when a reload has happened for any reason at all, or any event that require UI update.final TriggerParameterstatic final intImmutable public view of the JS control parametersfinal StringParameter -
Constructor Summary
ConstructorsConstructorDescriptionLXScriptEngine(LXDeviceComponent device, LXScriptEngine.DeviceAdapter adapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinvokeFunction(String function, Object... args) booleanisHiddenControl(LXParameter parameter) voidload()protected voidonModelChanged(LXModel model) voidreload()void
-
Field Details
-
RENDER_ERROR_LOG_INTERVAL_MS
public static final int RENDER_ERROR_LOG_INTERVAL_MS- See Also:
-
scriptName
-
reload
-
onReload
A bang is sent to this parameter to notify the UI when a reload has happened for any reason at all, or any event that require UI update. -
error
User facing error message -
scriptControls
Immutable public view of the JS control parameters
-
-
Constructor Details
-
LXScriptEngine
-
-
Method Details
-
getScriptName
-
isHiddenControl
-
reload
public void reload() -
onModelChanged
-
invokeFunction
-
load
public void load() throws ScriptException, NoSuchFileException, IOException, NoSuchMethodException, URISyntaxException -
run
-