Diana
0.8.3
|
#include <DianaParameter.hpp>
Diana realization of the ICapeParameter interface.
DianaParameter | ( | const DianaParameter & | param | ) |
Copy constructor.
DianaParameter | ( | const DianaRealParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode, | ||
const PtrData & | _ptr | ||
) |
Real specification constructor.
DianaParameter | ( | const DianaRealParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
Real specification constructor.
DianaParameter | ( | const Diana::DianaNLPRealParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
Real specification for nlp task constructor.
DianaParameter | ( | const DianaStateSpec & | spec, |
Common::Parameter::CapeParamMode | _mode, | ||
const PtrData & | _ptr | ||
) |
State specification constructor.
DianaParameter | ( | const DianaIntegerParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode, | ||
const PtrData & | _ptr | ||
) |
Integer specification constructor.
DianaParameter | ( | const DianaIntegerParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
Integer specification constructor.
DianaParameter | ( | const DianaBooleanParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode, | ||
const PtrData & | _ptr | ||
) |
Boolean specification constructor.
DianaParameter | ( | const DianaBooleanParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
Boolean specification constructor.
DianaParameter | ( | const DianaOptionParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
Option specification constructor.
DianaParameter | ( | const DianaPointerParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode, | ||
const PtrData & | _ptr | ||
) |
Pointer specification constructor.
DianaParameter | ( | const DianaArrayParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
DianaArrayParameterSpec specification constructor.
DianaParameter | ( | const DianaArrayRealParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
DianaArrayRealParameterSpec specification constructor.
DianaParameter | ( | const DianaArrayStringParameterSpec & | spec, |
Common::Parameter::CapeParamMode | _mode | ||
) |
DianaArrayStringParameterSpec specification constructor.
virtual ~DianaParameter | ( | ) | [virtual] |
Parameter destructor.
Common::Identification::ICapeIdentification* clone | ( | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) [virtual] |
Creates a new copy in the memory of the DianaParameter object.
Reimplemented from ICapeIdentification.
Common::Identification::ICapeIdentification* clone | ( | const PtrData & | _ptr | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) |
Creates a new copy in the memory of the DianaParameter object with new internal parameter data.
This method is special for the DianaParameter only.
const Common::Types::CapeString& GetComponentDescription | ( | ) | const throw (Common::Error::ECapeUnknown) [virtual] |
gets the description of the component.
Implements ICapeIdentification.
const Common::Types::CapeString& GetComponentName | ( | ) | const throw (Common::Error::ECapeUnknown) [virtual] |
gets the name of the component.
Implements ICapeIdentification.
Common::Parameter::CapeParamMode GetMode | ( | ) | const throw (Common::Error::ECapeUnknown) [virtual] |
Gets the mode in which the unit will interpret the parameter. It allows the following values:
Implements ICapeParameter.
Common::Types::CapeVariant GetValue | ( | ) | throw (Common::Error::ECapeUnknown) [virtual] |
Gets the value of this parameter. Passed as a CapeVariant that should be the same type as the Parameter type.
Implements ICapeParameter.
DianaParameter& operator= | ( | const DianaParameter & | param | ) |
Assignment constructor.
void Reset | ( | ) | throw (Common::Error::ECapeUnknown) [virtual] |
Sets the value of the parameter to its default value.
Implements ICapeParameter.
void SetComponentDescription | ( | const Common::Types::CapeString & | _description | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [virtual] |
sets the description of the component.
_description | the description of the component |
Implements ICapeIdentification.
void SetComponentName | ( | const Common::Types::CapeString & | _name | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [virtual] |
sets the name of the component.
_name | the name of the component |
Implements ICapeIdentification.
void SetMode | ( | Common::Parameter::CapeParamMode | _mode | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [virtual] |
Sets the mode in which the unit will interpret the parameter. It allows the following values:
_mode | the flag that indicates whether the Unit should take the parameter as input or as output |
Implements ICapeParameter.
virtual void SetValue | ( | const Common::Types::CapeVariant & | _value | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [virtual] |
Sets the value of this parameter. Passed as a CapeVariant that should be the same type as the Parameter type, if not this is an error (invalid argument).
_value | the value of this parameter. |
Implements ICapeParameter.
Reimplemented in PetriPlace.
Referenced by SingAnalyser::calcTestCondition().
Common::Parameter::ICapeParameterSpec* Specification | ( | ) | const throw (Common::Error::ECapeUnknown) [virtual] |
Gets the specification of the parameter. The Get method returns the specification as an interface to the correct specification type.
Implements ICapeParameter.
void updateValueByPointer | ( | Common::Types::CapeBoolean | bUpdateDirection | ) | throw (Common::Error::ECapeUnknown) [protected] |
Updates parameter value.
bUpdateDirection | update direction:
|
Common::Types::CapeBoolean Validate | ( | Common::Types::CapeString & | message | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) [virtual] |
Checks if the value of the parameter is valid in specification terms and in any other terms that are specialised.
message | message conveying information regarding the validation |
Implements ICapeParameter.
Common::Types::CapeValidationStatus ValStatus | ( | ) | const throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) [virtual] |
Gets the flag to indicate parameter validation status (currently not implemented). It has three possible values:
Implements ICapeParameter.
PtrData ptrInternal [protected] |
internal pointer on the ICapeUtility parameter. to avoid such type of parameter value access should be changed functions Get(Set)Value.