sclass GlobalThoughtSpace extends AbstractThoughtSpace { // existence of triple has already been checked public GlobalID postTriple(T3<Symbol> t, bool verified) { Bool prev = setThreadLocal(ai_postTriple_verified, verified); try { ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); } finally { setThreadLocal(ai_postTriple_verified, prev); } } public GlobalID postTriple(T3<Symbol> t) { ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); } L<TripleRef<Symbol>> get(Symbol s) { ret tripleIndex().getTripleRefs(s); } L<TripleRef<Symbol>> get(Symbol s, int position) { ret tripleIndex().getTripleRefs(s, position); } L<TripleWeb> getTriples(Symbol s) { ret tripleIndex().getTriples(s); } L<TripleWeb> getTriples(Symbol s, int position) { ret tripleIndex().getTriples(s, position); } L<TripleWeb> getOneTwo(Symbol a, Symbol b) { ret tripleIndex().getOneTwo(a, b); } int size() { ret tripleIndex().numWebs(); } }
Began life as a copy of #1012640
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: | #1012643 |
Snippet name: | GlobalThoughtSpace |
Eternal ID of this version: | #1012643/17 |
Text MD5: | 7f8251e67189ffe16ea8e116daff1715 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-13 21:13:40 |
Source code size: | 1050 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 479 / 1056 |
Version history: | 16 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |