neuroninterfaces.cpp
37 QString noiseTypeStr = ConfigurationHelper::getString(params, prefix + "noiseType", "NoNoise").toUpper();
45 ConfigurationHelper::throwUserConfigError("noiseType", params.getValue(prefix + "noiseType"), "The noiseType must be one of NoNoise, Uniform or Gaussian");
49 ConfigurationHelper::throwUserConfigError("noiseRange", params.getValue(prefix + "noiseRange"), "The noiseRange parameter must be a real value greater or equal to 0");
91 Descriptor d = addTypeDescription( type, "Base class for all noisy devices (sensors and motors)" );
92 d.describeEnum("noiseType").def("NoNoise").values(QStringList() << "NoNoise" << "Uniform" << "Gaussian").help("The type of noise to add to sensor readings", "This must be one of NoNoise, Uniform or Gaussian. Notice that not all sensors respect the value of this parameter (some may never add noise). See sensor description for more information");
93 d.describeReal("noiseRange").def(0.0f).limits(0.0,+Infinity).help("The range of noise", "For uniform noise this is the actual range, (the distribution has zero mean and goes from -noiseRange/2 to noiseRange/2). For gaussian noise, this is four times the standard deviation (the distribution has zero mean and noiseRange/4 standard deviation: this means that about 95% of the values taken from the distribution will be between -noiseRange/2 and noiseRange/2)");
174 ConfigurationHelper::throwUserMissingResourceError(nonExistingResources.join(", "), "Some required resource do not exist, cannot use " + sensorName + " anymore");
240 ConfigurationHelper::throwUserMissingResourceError(nonExistingResources.join(", "), "Some required resource do not exist, cannot use " + motorName + " anymore");
291 throw EvonetIteratorInvalidStatusException( "setCurrentBlock", QString("EvonetIterator - the block %1 does not exist").arg(blockName).toLatin1().data());
329 void EvonetIterator::setGraphicProperties( QString label, double minValue, double maxValue, QColor color ) {
346 throw EvonetIteratorInvalidStatusException( funcName.toLatin1().data(), "no Evonet object has ben set");
349 throw EvonetIteratorInvalidStatusException( funcName.toLatin1().data(), "you should call setCurrentBlock first");