sclass G22NetworkCable { settable G22NetworkElement.Port from; settable G22NetworkElement.Port to; // was this made by magnetic connection? settable bool isAutomatic; void connect { from.cable(this); to.cable(this); } void remove { from?.cable(null); to?.cable(null); } toString { ret renderVars("G22NetworkCable", +from, +to, +isAutomatic); } }
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: | 582 / 630 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |