Skip to main content

State Connectors

Icon

StateConnectors_image1.png

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 the InNum interface plus 10.
  • The green process passes a variable named Number with an initial value of 0 to the InNumber port and a variable named Output to the OutNumber 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.