Libraryless. Click here for Pure Java version (7984L/47K).
1 | asclass AbstractCompressor_AnyType<A, Data> extends Probabilistic {
|
2 | CompressionSearch_AnyType<A, Data> search; |
3 | |
4 | *() {}
|
5 | *(CompressionSearch_AnyType<A, Data> *search) {}
|
6 | |
7 | void setSearch(CompressionSearch_AnyType<A, Data> search) {
|
8 | if (this.search != null && this.search != search) fail(); |
9 | this.search = search; |
10 | } |
11 | |
12 | CompressionRegime_AnyType<A> regime() { ret search?.regime(); }
|
13 | |
14 | Data inputData() { ret search.inputData(); }
|
15 | |
16 | // get current best compressed representation |
17 | //abstract A currentBestDecompressor aka get(); |
18 | |
19 | // submit your latest results here |
20 | public void flush {}
|
21 | |
22 | CompressionSearch_AnyType<A, Data>.Submission submit(A a, O notes default null) {
|
23 | ret search.submit(a, notes); |
24 | } |
25 | } |
Began life as a copy of #1033150
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033159 |
| Snippet name: | AbstractCompressor_AnyType |
| Eternal ID of this version: | #1033159/13 |
| Text MD5: | d2c33852ee0b8721ef178ee4b29e3474 |
| Transpilation MD5: | eff92ab3cc649af726a74479debb395f |
| Author: | stefan |
| Category: | javax / recognition by compression |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-26 23:58:46 |
| Source code size: | 765 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 474 / 679 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |