please include function aiConceptsMap_cached. sbool createAIConcept_verbose; static AIConcept createAIConcept(S name, S universe) { ret createAIConcept(name, "", universe); } // returns an unlisted copy for immediate use static AIConcept createAIConcept(S name, S comment, S universe) { RemoteDB db = new RemoteDB(aiConceptsProgram()); S globalID = aGlobalID(); O[] params = { +globalID, +name, +comment, originatingUniverse := universe, touched := now() }; db.xnew("AIConcept", params); db.close(); AIConcept c = unlisted(AIConcept); cset(c, params); synchronized(aiConceptsMap_cached_cache) { put(aiConceptsMap_cached_cache!, c.globalID, c); } if (createAIConcept_verbose) print("createAIConcept: " + globalID + " - " + name); ret c; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007551 |
Snippet name: | createAIConcept - uses RemoteDB to connect to AI Concepts program |
Eternal ID of this version: | #1007551/13 |
Text MD5: | bac8cd9c9d2fe85aa22e68bfaf2b423f |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-22 03:19:36 |
Source code size: | 790 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 584 / 568 |
Version history: | 12 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007626 - createStatement #1007867 - createAIConcept_listed |