Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1035446 // G22NetworkInstance - an instance of a G22Network ready for use in calculation

JavaX fragment (include) [tags: use-pretranspiled]

Uses 2164K of libraries. Click here for Pure Java version (52750L/279K).

transient srecord noeq G22NetworkInstance(G22Network network) {
  new Map<S, O> elementsByIdentifier;
  new Map<G22NetworkElement, O> elementsByBlueprint;
  
  void init(G22Utils g22utils) {
    for (e : network.elements) {
      O instance = e.makeInstance(g22utils);
      if (instance != null) {
        elementsByBlueprint.put(e, instance);
        mapPut(elementsByIdentifier, e.identifier(), instance);
      }
    }
  }
}

Author comment

Began life as a copy of #1035441

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035446
Snippet name: G22NetworkInstance - an instance of a G22Network ready for use in calculation
Eternal ID of this version: #1035446/3
Text MD5: 661c813c1a702e472778491c5bfd5aa2
Transpilation MD5: 07451808ea7b924b75bc1f60ca670318
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-13 19:50:24
Source code size: 441 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 9 / 31
Version history: 2 change(s)
Referenced in: [show references]