Package heronarts.lx.script
Class LXScriptEngine
java.lang.Object
heronarts.lx.script.LXScriptEngine
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
class
Interface of methods exposed for Javascript to call back up into the LX device -
Field Summary
Modifier and TypeFieldDescriptionfinal StringParameter
User facing error messagefinal MutableParameter
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.final TriggerParameter
static final int
Immutable public view of the JS control parametersfinal StringParameter
-
Constructor Summary
ConstructorDescriptionLXScriptEngine
(LXDeviceComponent device, LXScriptEngine.DeviceAdapter adapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
invokeFunction
(String function, Object... args) boolean
isHiddenControl
(LXParameter parameter) void
load()
protected void
onModelChanged
(LXModel model) void
reload()
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
-