Uses 911K of libraries. Click here for Pure Java version (2221L/12K).
!7 // a stage can be not started, running or done sclass Stage { S stageName; //long started, done; // timestamps bool done; O result; //S log; sS _fieldOrder = "stageName result"; } cmodule MultiStageProcessing > DynObjectTable<Stage> { start { itemToMap = func(Stage s) -> Map { litorderedmap("Stage Name" := s.stageName, Result := s.done ? str(s.result) : "not done yet") }; } // API Stage addStage(S stageName) { ret addAndReturn(nu Stage(+stageName)); } Stage addStage(S stageName, O result) { ret addAndReturn(nu Stage(+stageName, done := true, +result)); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027106 |
Snippet name: | Multi-Stage Processing |
Eternal ID of this version: | #1027106/14 |
Text MD5: | fddd82ab29728456c4bc516225b0e89a |
Transpilation MD5: | 0bc634b641e08ee05f871f709b48f27b |
Author: | stefan |
Category: | javax / stefan's os / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-20 19:15:40 |
Source code size: | 656 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 310 / 881 |
Version history: | 13 change(s) |
Referenced in: | #1027125 - Winograd Multi-Stage Base Code [dev.] #1027866 - Stage - some stage in a process |