1 | sclass G22NetworkCable { |
2 | settable G22NetworkElement.Port from; |
3 | settable G22NetworkElement.Port to; |
4 | |
5 | // was this made by magnetic connection? |
6 | settable bool isAutomatic; |
7 | |
8 | void connect { |
9 | from.cable(this); |
10 | to.cable(this); |
11 | } |
12 | |
13 | void remove { |
14 | from?.cable(null); |
15 | to?.cable(null); |
16 | } |
17 | |
18 | toString { ret renderVars("G22NetworkCable", +from, +to, +isAutomatic); } |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035447 |
Snippet name: | G22NetworkCable |
Eternal ID of this version: | #1035447/6 |
Text MD5: | 41dbe3308ffe80d02de25128e16fc7f1 |
Author: | stefan |
Category: | javax / gazelle 22 |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-17 20:17:03 |
Source code size: | 409 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 157 / 196 |
Version history: | 5 change(s) |
Referenced in: | [show references] |