1 | sclass GlobalThoughtSpace extends AbstractThoughtSpace { |
2 | // existence of triple has already been checked |
3 | public GlobalID postTriple(T3<Symbol> t, bool verified) { |
4 | Bool prev = setThreadLocal(ai_postTriple_verified, verified); |
5 | try { |
6 | ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); |
7 | } finally { |
8 | setThreadLocal(ai_postTriple_verified, prev); |
9 | } |
10 | } |
11 | |
12 | public GlobalID postTriple(T3<Symbol> t) { |
13 | ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); |
14 | } |
15 | |
16 | L<TripleRef<Symbol>> get(Symbol s) { |
17 | ret tripleIndex().getTripleRefs(s); |
18 | } |
19 | |
20 | L<TripleRef<Symbol>> get(Symbol s, int position) { |
21 | ret tripleIndex().getTripleRefs(s, position); |
22 | } |
23 | |
24 | L<TripleWeb> getTriples(Symbol s) { |
25 | ret tripleIndex().getTriples(s); |
26 | } |
27 | |
28 | L<TripleWeb> getTriples(Symbol s, int position) { |
29 | ret tripleIndex().getTriples(s, position); |
30 | } |
31 | |
32 | L<TripleWeb> getOneTwo(Symbol a, Symbol b) { |
33 | ret tripleIndex().getOneTwo(a, b); |
34 | } |
35 | |
36 | int size() { ret tripleIndex().numWebs(); } |
37 | } |
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: | 478 / 1056 |
Version history: | 16 change(s) |
Referenced in: | [show references] |