Interface RecordInterpreter

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RecordInterpreter
Tells IncrementalTextFilesRetriever what a record in an agent's files is: a note, a message the agent was told or said, or something left out. The host that writes the files knows its own wording; the retriever knows only the AgentRecordFormat grammar.

NONE reads every record as a note.

Since:
0.18.6
  • Field Details

  • Method Details

    • read

      Reads the record a line starts. In a .history or .log file that is a line that parses; in any other file every line starts a record of its own.
      Parameters:
      file - the file's path relative to the run folder, with / separators
      line - the record's first line
      record - the parsed line in a .history or .log file; empty in others
      Returns:
      what the record is