1 | please include function aiConceptsMap_cached. |
2 | sbool createAIConcept_verbose; |
3 | |
4 | static AIConcept createAIConcept(S name, S universe) { |
5 | ret createAIConcept(name, "", universe); |
6 | } |
7 | |
8 | // returns an unlisted copy for immediate use |
9 | static AIConcept createAIConcept(S name, S comment, S universe) { |
10 | RemoteDB db = new RemoteDB(aiConceptsProgram()); |
11 | S globalID = aGlobalID(); |
12 | O[] params = { +globalID, +name, +comment, originatingUniverse := universe, touched := now() }; |
13 | db.xnew("AIConcept", params); |
14 | db.close(); |
15 | AIConcept c = unlisted(AIConcept); |
16 | cset(c, params); |
17 | synchronized(aiConceptsMap_cached_cache) { |
18 | put(aiConceptsMap_cached_cache!, c.globalID, c); |
19 | } |
20 | if (createAIConcept_verbose) print("createAIConcept: " + globalID + " - " + name); |
21 | ret c; |
22 | } |
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: | 583 / 568 |
Version history: | 12 change(s) |
Referenced in: | [show references] |