![]() |
Nano Brain for Unity v0.1
|
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
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. | |
| string NanoBrain.IReceptor.GetName | ( | ) |
| void NanoBrain.IReceptor.AddReceptorElement | ( | ClusterPrefab | prefab | ) |
Extends the nucleiArray with an additional element.
| prefab | A prefab of the nucleus to add? |
Implemented in NanoBrain.Receptor.
| void NanoBrain.IReceptor.RemoveReceptorElement | ( | ) |
Removes the last element from the nucleiArray.
Implemented in NanoBrain.Receptor.
| void NanoBrain.IReceptor.AddArrayReceiver | ( | Nucleus | receiverToAdd, |
| float | weight = 1 |
||
| ) |
Add a receiver for this receptor array.
| receiverToAdd | The receiving Nucleus |
| weight | The 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.
| void NanoBrain.IReceptor.ProcessStimulus | ( | Vector3 | inputValue, |
| int | thingId = 0, |
||
| string | thingName = null |
||
| ) |
Process an external stimulus.
| inputValue | The value of the stimulus |
| thingId | The id of the thing causing the stimulus |
| thingName | The name of the thing causing the stimulus |
Implemented in NanoBrain.Receptor.
|
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.