Class: Tensai::Agents::Sensor
- Inherits:
-
Object
- Object
- Tensai::Agents::Sensor
- Defined in:
- lib/tensai/agents/sensor.rb
Overview
Agent sensor
Instance Method Summary collapse
-
#process_input(input) ⇒ Object
Process input from environment and produce percepts.
-
#retrieve_percepts ⇒ Enumerable
Retrieve new percepts produced by recent sensor input.
Instance Method Details
#process_input(input) ⇒ Object
Process input from environment and produce percepts. (see #percepts)
22 23 24 |
# File 'lib/tensai/agents/sensor.rb', line 22 def process_input(input) # rubocop:disable Lint/UnusedMethodArgument raise NotImplementedError end |
#retrieve_percepts ⇒ Enumerable
Retrieve new percepts produced by recent sensor input. Each percept is only returned once.
32 33 34 |
# File 'lib/tensai/agents/sensor.rb', line 32 def retrieve_percepts raise NotImplementedError end |