Diana
0.8.3
|
#include <CapeParameter.hpp>
Public Member Functions | |
virtual Common::Types::CapeVariant | GetValue ()=0 throw (Common::Error::ECapeUnknown) |
virtual void | SetValue (const Common::Types::CapeVariant &_value)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) |
virtual Common::Types::CapeValidationStatus | ValStatus () const =0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) |
virtual CapeParamMode | GetMode () const =0 throw (Common::Error::ECapeUnknown) |
virtual void | SetMode (CapeParamMode _mode)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) |
virtual ICapeParameterSpec * | Specification () const =0 throw (Common::Error::ECapeUnknown) |
virtual Common::Types::CapeBoolean | Validate (Common::Types::CapeString &message)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) |
virtual void | Reset ()=0 throw (Common::Error::ECapeUnknown) |
Friends | |
std::ostream & | operator<< (std::ostream &os, ICapeParameter ¶m) |
Defines Cape Open parameter definition.
virtual CapeParamMode GetMode | ( | ) | const throw (Common::Error::ECapeUnknown) [pure virtual] |
Gets the mode in which the unit will interpret the parameter. It allows the following values:
Implemented in DianaParameter.
virtual Common::Types::CapeVariant GetValue | ( | ) | throw (Common::Error::ECapeUnknown) [pure virtual] |
Gets the value of this parameter. Passed as a CapeVariant that should be the same type as the Parameter type.
Implemented in DianaParameter.
Referenced by SingAnalyser::addDerivativeByParameter(), DianaContinuation::addDerivativeByParameter(), DianaContinuation::DianaContinuation(), and DianaContinuation::packFreeParameters().
virtual void Reset | ( | ) | throw (Common::Error::ECapeUnknown) [pure virtual] |
Sets the value of the parameter to its default value.
Implemented in DianaParameter.
virtual void SetMode | ( | CapeParamMode | _mode | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [pure 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 |
Implemented in DianaParameter.
virtual void SetValue | ( | const Common::Types::CapeVariant & | _value | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) [pure 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. |
Implemented in DianaParameter, IDianaPetriPlace, and PetriPlace.
Referenced by SingAnalyser::addDerivativeByParameter(), DianaContinuation::addDerivativeByParameter(), and DianaContinuation::unpackFreeParameters().
virtual ICapeParameterSpec* Specification | ( | ) | const throw (Common::Error::ECapeUnknown) [pure virtual] |
Gets the specification of the parameter. The Get method returns the specification as an interface to the correct specification type.
Implemented in DianaParameter.
Referenced by DianaContinuation::getParameterBoundaries().
virtual Common::Types::CapeBoolean Validate | ( | Common::Types::CapeString & | message | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) [pure 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 |
Implemented in DianaParameter.
virtual Common::Types::CapeValidationStatus ValStatus | ( | ) | const throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl) [pure virtual] |
Gets the flag to indicate parameter validation status (currently not implemented). It has three possible values:
Implemented in DianaParameter.
std::ostream& operator<< | ( | std::ostream & | os, |
ICapeParameter & | param | ||
) | [friend] |
ostream output operator for the ICapeParameter class.