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

13
LINES

< > BotCompany Repo | #1007867 // createAIConcept_listed

JavaX fragment (include)

1  
please include function aiConceptsMap_cached.
2  
3  
static AIConcept createAIConcept_listed(S globalID, S name, S comment, S universe) {
4  
  RemoteDB db = new RemoteDB(aiConceptsProgram());
5  
  O[] params = { +globalID, +name, +comment, originatingUniverse := universe, touched := now() };
6  
  db.xnew("AIConcept", params);
7  
  db.close();
8  
  AIConcept c = cnew(AIConcept, params);
9  
  synchronized(aiConceptsMap_cached_cache) {
10  
    put(aiConceptsMap_cached_cache!, c.globalID, c);
11  
  }
12  
  ret c;
13  
}

Author comment

Began life as a copy of #1007551

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: #1007867
Snippet name: createAIConcept_listed
Eternal ID of this version: #1007867/3
Text MD5: 3703a34b1e192ec3898f83a5e7073463
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-12 15:20:42
Source code size: 494 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 569 / 584
Version history: 2 change(s)
Referenced in: [show references]