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

25
LINES

< > BotCompany Repo | #1033159 // AbstractCompressor_AnyType

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7984L/47K).

asclass AbstractCompressor_AnyType<A, Data> extends Probabilistic {
  CompressionSearch_AnyType<A, Data> search;
  
  *() {}
  *(CompressionSearch_AnyType<A, Data> *search) {}
  
  void setSearch(CompressionSearch_AnyType<A, Data> search) {
    if (this.search != null && this.search != search) fail();
    this.search = search;
  }
  
  CompressionRegime_AnyType<A> regime() { ret search?.regime(); }
  
  Data inputData() { ret search.inputData(); }
  
  // get current best compressed representation
  //abstract A currentBestDecompressor aka get();
  
  // submit your latest results here
  public void flush {}
  
  CompressionSearch_AnyType<A, Data>.Submission submit(A a, O notes default null) {
    ret search.submit(a, notes);
  }
}

Author comment

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: 229 / 395
Version history: 12 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)