Nano Brain for Unity v0.1
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
NanoBrain.IReceptor Interface Reference

Description

A Receptor is a Nucleus which can receive input (called Stimulus) from outside the the cluster/brain.

It has the ability to distinguish stimuli from different things using an array of Nuclei

Inheritance diagram for NanoBrain.IReceptor:
NanoBrain.Receptor

Public Member Functions

string GetName ()
 Get the name of the receptor.
 
void AddReceptorElement (ClusterPrefab prefab)
 Extends the nucleiArray with an additional element.
 
void RemoveReceptorElement ()
 Removes the last element from the nucleiArray.
 
void AddArrayReceiver (Nucleus receiverToAdd, float weight=1)
 Add a receiver for this receptor array.
 
void ProcessStimulus (Vector3 inputValue, int thingId=0, string thingName=null)
 Process an external stimulus.
 

Properties

Nucleus[] nucleiArray [get, set]
 The array of nuclei used to track multiple things sending stimuli.
 

Member Function Documentation

◆ GetName()

string NanoBrain.IReceptor.GetName ( )

Get the name of the receptor.

Returns
The name of the receptor

Implemented in NanoBrain.Receptor.

◆ AddReceptorElement()

void NanoBrain.IReceptor.AddReceptorElement ( ClusterPrefab  prefab)

Extends the nucleiArray with an additional element.

Parameters
prefabA prefab of the nucleus to add?

Implemented in NanoBrain.Receptor.

◆ RemoveReceptorElement()

void NanoBrain.IReceptor.RemoveReceptorElement ( )

Removes the last element from the nucleiArray.

Implemented in NanoBrain.Receptor.

◆ AddArrayReceiver()

void NanoBrain.IReceptor.AddArrayReceiver ( Nucleus  receiverToAdd,
float  weight = 1 
)

Add a receiver for this receptor array.

Parameters
receiverToAddThe receiving Nucleus
weightThe initial weight to use for the synapses

This function will add a synapse to the receiver for each element in the nucleiArray.

Implemented in NanoBrain.Receptor.

◆ ProcessStimulus()

void NanoBrain.IReceptor.ProcessStimulus ( Vector3  inputValue,
int  thingId = 0,
string  thingName = null 
)

Process an external stimulus.

Parameters
inputValueThe value of the stimulus
thingIdThe id of the thing causing the stimulus
thingNameThe name of the thing causing the stimulus

Implemented in NanoBrain.Receptor.

Property Documentation

◆ nucleiArray

Nucleus [] NanoBrain.IReceptor.nucleiArray
getset

The array of nuclei used to track multiple things sending stimuli.

The size of the array determines the maximum number of things which can be distinguished

Implemented in NanoBrain.Receptor.


The documentation for this interface was generated from the following file: