Firebird/Concepts: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) (→Sink) |
Stonezhong (talk | contribs) (→Port) |
||
| Line 104: | Line 104: | ||
<div class="mw-collapsible-preview">Port</div> | <div class="mw-collapsible-preview">Port</div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Represent | Represent an input port or output port of a node. | ||
Properties | <b>Properties</b> | ||
* type: | <pre><nowiki> | ||
* | * type: Either PortType.INPUT or PortType.OUTPUT, represent it is a input port or output port | ||
* owner: | * id: ID of the port, it is unique within the node | ||
* owner: The node which this port belongs to | |||
</nowiki></pre> | |||
<b>method: <nowiki>>> and <<</nowiki></b> | |||
<pre><nowiki> | <pre><nowiki> | ||
# connect this port to other port | # connect this port to other port | ||
# see Node document. | |||
</nowiki></pre> | </nowiki></pre> | ||
| Line 122: | Line 122: | ||
def emit(self, json_data:Any) | def emit(self, json_data:Any) | ||
# emit data to this port | # emit JSON data to this port | ||
</nowiki></pre> | </nowiki></pre> | ||
