Unit Anatomy
An onCore Unit can be seen as a graphical representation of a function (as in traditional programming). It has one or several attributes and abilities.
Specifications of an onCore Unit
| |
Simplified Example of an onCore Unit
|
Unit Ports
There are three types of Ports:
|
Unit Types
Units can roughly be categorized in three types. Of course the exception proves the rule.
Unit Type | Description | Example |
---|---|---|
Provider Unit | They only have one or multiple Output Ports and "provide" something. | Variable Getter, System Timestamp |
Processing Unit | They have one or multiple Input and Output Ports and process or modify their input. | String Replace, String to Time |
Consumer Unit | They only have one or multiple Input Ports and "consume" data. | Print String, Variable Setter |
Unit Interaction Example
Here's a simplified schematic on how Units can interact with each other. Trigger Ports are omitted in this example, they are explained in the chapter → Unit Triggers & Events.
The data and execution flow happens from left to right. That means that Cables cannot transmit data "backwards" and also the execution flow cannot happen backwards.