Class: Tensai::Agents::Sensor

Inherits:
Object
  • Object
show all
Defined in:
lib/tensai/agents/sensor.rb

Overview

Agent sensor

Instance Method Summary collapse

Instance Method Details

#process_input(input) ⇒ Object

Process input from environment and produce percepts. (see #percepts)

Parameters:

  • input

    Sensoric input from the environment

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/tensai/agents/sensor.rb', line 22

def process_input(input) # rubocop:disable Lint/UnusedMethodArgument
  raise NotImplementedError
end

#retrieve_perceptsEnumerable

Retrieve new percepts produced by recent sensor input. Each percept is only returned once.

Returns:

  • (Enumerable)

    List of percepts

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/tensai/agents/sensor.rb', line 32

def retrieve_percepts
  raise NotImplementedError
end