LearnTA  0.0.1
sul.hh
1 
6 #pragma once
7 
8 #include <cstdlib>
9 
10 namespace learnta {
14  class SUL {
15  public:
16  virtual ~SUL() = default;
20  virtual void pre() = 0;
24  virtual void post() = 0;
28  virtual bool step(char action) = 0;
32  virtual bool step(double duration) = 0;
36  [[nodiscard]] virtual std::size_t count() const = 0;
37  };
38 }
Interface of the system under learning.
Definition: sul.hh:14
virtual bool step(char action)=0
Feed a discrete action.
virtual bool step(double duration)=0
Feed time elapse.
virtual std::size_t count() const =0
Returns the number of queries.
virtual void pre()=0
The function should be called before feeding each timed word.
virtual void post()=0
The function should be called after feeding each timed word.
Definition: experiment_runner.hh:23