State Connectors
Icon
Function
State Connectors pass the data objects to the ports of a (calling) process.
Key Points
- State Connectors are undirected, and they map data objects to ports.
- They connect data components to ports (When a process has local variable interfaces, its Call, Ask (to call behaviors), and Neural Network components have corresponding ports).
- For details on data passing within processes, see the related chapter.
- No additional setup is required for State Connectors.
Example
Examples
- A grey passive process, Plus10, assigns the
OutNum
interface a value equal to theInNum
interface plus 10. - The green process passes a variable named
Number
with an initial value of 0 to theInNumber
port and a variable namedOutput
to theOutNumber
port. - Upon completion of the run, the value of the Output variable is 0 + 10 = 10.
Tip
In addition to using State Connectors to pass data objects to (call) ports, you can also pass values to ports using expressions in the properties panel of the calling object. See the Process Interfaces and Data Passing chapter for details on the usage and differences.