The base abstract class for iterating over neurons of a neural network. More...

Inheritance diagram for NeuronsIterator:

Public Member Functions

virtual ~NeuronsIterator ()
 Destructor.
 
virtual double getOutput ()=0
 Get the output of the current neuron.
 
virtual bool nextNeuron ()=0
 Go to the next neuron of the current block.
 
virtual bool setCurrentBlock (QString blockName)=0
 Set the current blocks of neurons to iterate.
 
virtual void setGraphicProperties (QString label, double minValue, double maxValue, QColor color)=0
 Set the graphic properties for the current neuron (in case it will be visualized on a GUI)
 
virtual void setInput (double value)=0
 Set the input of the current neuron.
 

Additional Inherited Members

- Public Types inherited from Resource
enum  ResourceChangeType
 

Detailed Description

The base abstract class for iterating over neurons of a neural network.

The neuron iterator helps on iterating the neurons of the neural network for setting/getting the input/output values of sensor/motor neurons

The NeuronsIterator allow to divide in functional blocks the neural network and give a name to such blocks.

Definition at line 55 of file neuroninterfaces.h.

Constructor & Destructor Documentation

virtual ~NeuronsIterator ( )
inlinevirtual

Destructor.

Definition at line 58 of file neuroninterfaces.h.

Member Function Documentation

virtual bool nextNeuron ( )
pure virtual

Go to the next neuron of the current block.

Returns
true if a next neuron exist and set it as current neuron; false when it has been reached the end of current block
Note
if you need to go back at the beginning, use setCurrentBlock again

Implemented in EvonetIterator.

Referenced by FakeMotor::resourceChanged(), FakeSensor::resourceChanged(), iCubArmRandomMotor::resourceChanged(), iCubArmJointsSensor::resourceChanged(), ObjectPositionSensor::resourceChanged(), iCubArmPosToPostureMotor::resourceChanged(), iCubTorsoPosToPostureMotor::resourceChanged(), iCubArmMusclesMotor::resourceChanged(), iCubPalmTargetDistSensor::resourceChanged(), iCubHandMusclesMotor::resourceChanged(), iCubPalmTouchSensor::resourceChanged(), iCubTorsoMusclesMotor::resourceChanged(), iCubHeadMusclesMotor::resourceChanged(), iCubTorsoJointsSensor::resourceChanged(), iCubHeadJointsSensor::resourceChanged(), iCubArmPosToVelMotor::resourceChanged(), iCubPCHeadJointsSensor::resourceChanged(), iCubTorsoPosToVelMotor::resourceChanged(), iCubHandJointsSensor::resourceChanged(), iCubHeadPosToVelMotor::resourceChanged(), iCubArmVelocityMotor::resourceChanged(), iCubTorsoVelocityMotor::resourceChanged(), FakeMotor::update(), FakeSensor::update(), iCubArmJointsSensor::update(), EpuckWheelVelocityMotor::update(), KheperaWheelVelocityMotor::update(), MarXbotWheelVelocityMotor::update(), EpuckProximityIRSensor::update(), KheperaProximityIRSensor::update(), ObjectPositionSensor::update(), ColorCameraSensor::update(), MarXbotProximityIRSensor::update(), iCubArmPosToPostureMotor::update(), LinearCameraSensor::update(), iCubTorsoPosToPostureMotor::update(), EpuckGroundIRSensor::update(), KheperaSampledProximityIRSensor::update(), iCubArmMusclesMotor::update(), MarXbotGroundBottomIRSensor::update(), iCubPalmTargetDistSensor::update(), iCubHandMusclesMotor::update(), iCubPalmTouchSensor::update(), EpuckLinearCameraSensor::update(), MarXbotGroundAroundIRSensor::update(), iCubTorsoMusclesMotor::update(), MarXbotAttachmentDeviceMotor::update(), iCubHeadMusclesMotor::update(), iCubHandTouchSensor::update(), MarXbotLinearCameraSensor::update(), EpuckSampledProximityIRSensor::update(), iCubTorsoJointsSensor::update(), iCubHeadJointsSensor::update(), iCubArmPosToVelMotor::update(), iCubPCHeadJointsSensor::update(), iCubTorsoPosToVelMotor::update(), MarXbotTractionSensor::update(), iCubHandJointsSensor::update(), iCubHeadPosToVelMotor::update(), MarXbotSampledProximityIRSensor::update(), iCubConfigurableHandPosToVelMotor::update(), iCubHeadVelocityMotor::update(), MarXbotAttachmentDeviceSensor::update(), iCubArmVelocityMotor::update(), and iCubTorsoVelocityMotor::update().

virtual bool setCurrentBlock ( QString  blockName)
pure virtual

Set the current blocks of neurons to iterate.

You need to first call this method for iterate over neurons. This method will initialize the internal counters for iterate over neurons, and set the first current neuron. To move forward call the method nextNeuron.

Parameters
blockNameis the name given to the block
Returns
true if the current block is now the block defined with name blockName; false otherwise

Implemented in EvonetIterator.

Referenced by FakeMotor::resourceChanged(), FakeSensor::resourceChanged(), iCubArmRandomMotor::resourceChanged(), iCubArmJointsSensor::resourceChanged(), ObjectPositionSensor::resourceChanged(), iCubArmPosToPostureMotor::resourceChanged(), iCubTorsoPosToPostureMotor::resourceChanged(), iCubArmMusclesMotor::resourceChanged(), iCubPalmTargetDistSensor::resourceChanged(), iCubHandMusclesMotor::resourceChanged(), iCubPalmTouchSensor::resourceChanged(), iCubTorsoMusclesMotor::resourceChanged(), iCubHeadMusclesMotor::resourceChanged(), iCubTorsoJointsSensor::resourceChanged(), iCubHeadJointsSensor::resourceChanged(), iCubArmPosToVelMotor::resourceChanged(), iCubPCHeadJointsSensor::resourceChanged(), iCubTorsoPosToVelMotor::resourceChanged(), iCubHandJointsSensor::resourceChanged(), iCubHeadPosToVelMotor::resourceChanged(), iCubArmVelocityMotor::resourceChanged(), iCubTorsoVelocityMotor::resourceChanged(), FakeMotor::update(), FakeSensor::update(), iCubArmJointsSensor::update(), EpuckWheelVelocityMotor::update(), KheperaWheelVelocityMotor::update(), MarXbotWheelVelocityMotor::update(), EpuckProximityIRSensor::update(), KheperaProximityIRSensor::update(), ObjectPositionSensor::update(), ColorCameraSensor::update(), MarXbotProximityIRSensor::update(), iCubArmPosToPostureMotor::update(), LinearCameraSensor::update(), iCubTorsoPosToPostureMotor::update(), EpuckGroundIRSensor::update(), MarXbotColorMotor::update(), KheperaSampledProximityIRSensor::update(), MarXbotGroundBottomIRSensor::update(), iCubArmMusclesMotor::update(), iCubPalmTargetDistSensor::update(), iCubHandMusclesMotor::update(), iCubPalmTouchSensor::update(), EpuckLinearCameraSensor::update(), MarXbotGroundAroundIRSensor::update(), iCubTorsoMusclesMotor::update(), MarXbotAttachmentDeviceMotor::update(), iCubHeadMusclesMotor::update(), iCubHandTouchSensor::update(), MarXbotLinearCameraSensor::update(), EpuckSampledProximityIRSensor::update(), iCubTorsoJointsSensor::update(), iCubHeadJointsSensor::update(), iCubArmPosToVelMotor::update(), iCubPCHeadJointsSensor::update(), iCubTorsoPosToVelMotor::update(), MarXbotTractionSensor::update(), iCubHandJointsSensor::update(), iCubHeadPosToVelMotor::update(), MarXbotSampledProximityIRSensor::update(), iCubConfigurableHandPosToVelMotor::update(), iCubHeadVelocityMotor::update(), MarXbotAttachmentDeviceSensor::update(), iCubArmVelocityMotor::update(), and iCubTorsoVelocityMotor::update().

virtual void setGraphicProperties ( QString  label,
double  minValue,
double  maxValue,
QColor  color 
)
pure virtual

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