new module:Blackbox(appInstance, inputConnectors, outputConnectors, evalFunction, nameopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
appInstance |
App | instance of App |
|
inputConnectors |
number | number of input connectors |
|
outputConnectors |
number | number of output connectors |
|
evalFunction |
function | function that takes |
|
name |
String |
<optional> |
name that will be displayed on the blackbox |
Extends
- Box
Members
-
evalFunction
-
function that takes
inputConnectors
Logic.states and returnsoutputConnectors
Logic.states. -
exportData
-
get data of this blackbox as a JSON-ready object
Methods
-
refreshState()
-
proccess the input connector states and reflect them in the output connector states according to the logic defined by this.evalFunction