Firebird/Concepts: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) (→Models) |
Stonezhong (talk | contribs) (→Models) |
||
| Line 60: | Line 60: | ||
<h3>connect</h3> | <h3>connect</h3> | ||
<pre><nowiki> | <pre><nowiki> | ||
# You can use >>, << to connect nodes, here are examples: | |||
nodeA >> nodeB # connect default output port of nodeA to default input port of node B | |||
nodeA["foo"] >> nodeB # connect port "foo" of nodeA to default input port of node B | |||
nodeA["foo"] >> nodeB["bar"] # connect port "foo" of nodeA to port "bar" of node B | |||
# | # You can also use << as a reverse of >> | ||
</nowiki></pre> | </nowiki></pre> | ||
<h3>emit</h3> | |||
<pre><nowiki> | <pre><nowiki> | ||
def emit(self, data:Any, name:str=DEFAULT_PORT_NAME) | def emit(self, data:Any, name:str=DEFAULT_PORT_NAME) | ||
