Polarith AI
1.8
ISensor< T > Interface Template Reference

Description

Represents the sensorial system of an agent (interface).

It determines how the agent perceives (samples) its world (problem space).

An ISensor<T> is made up of IReceptor<T> instances which form the sensor. Therefore, receptors define neighbourhood structures between each other. Every receptor has got an IReceptor<T>.ID and within one ISensor<T> instance this ID is intended to be unique in order to definitely identify a receptor.

The concrete problem space representation of a sensor is depended on the type T of the structural element hold by each IReceptor<T>.

Template Parameters
TType of the structural sensor element defining the problem space.
Inheritance diagram for ISensor< T >:
Sensor< T >

Properties

int ReceptorCount [get]
 The number of contained receptors (read only). More...
 
IReceptor< T > this[int id] [get]
 Provides quick read-only access to a contained IReceptor<T> instance. More...
 

Public Methods

IReceptor< T > AddReceptor ()
 Constructs and adds an IReceptor<T> instance into this sensor. More...
 
IReceptor< T > InsertReceptor (int id)
 Constructs and inserts an IReceptor<T> instance into this sensor with the specified id . More...
 
IReceptor< T > GetReceptor (int id)
 Gets the IReceptor<T> with the specified id . More...
 
void RemoveReceptorAt (int id)
 Removes the IReceptor<T> with the specified id . More...
 
void ClearReceptors ()
 Removes all contained IReceptor<T> instances. More...
 
Imprint