transient srecord noeq G22NetworkInstance(G22Network network) { new Map<S, O> elementsByIdentifier; new Map<G22NetworkElement, O> elementsByBlueprint; void makeInstance(G22Utils g22utils, G22NetworkElement e) { if (e == null) ret; O instance = e.makeInstance(g22utils, this); print("Calculated: " + instance); if (instance != null) { elementsByBlueprint.put(e, instance); mapPut(elementsByIdentifier, e.identifier(), instance); } } void init(G22Utils g22utils) { // This is in wrong order anyway for (e : network.elements) makeInstance(g22utils, e); } }
Began life as a copy of #1035446
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035458 |
| Snippet name: | G22NetworkInstance - an instance of a G22Network ready for use in calculation (backup) |
| Eternal ID of this version: | #1035458/1 |
| Text MD5: | ce73291a209cf82f94ba61b58e1ba36a |
| Author: | stefan |
| Category: | javax / gazelle 2 |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-19 18:54:08 |
| Source code size: | 648 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 364 / 349 |
| Referenced in: | [show references] |