Diana
0.8.3
|
#include <CapeModel.hpp>
Public Member Functions | |
virtual Common::Types::CapeBoolean | Eval ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder) |
virtual CapeEventType | QueryType ()=0 throw (Common::Error::ECapeUnknown) |
This is the interface which provides facilities for handling Events. This object represents a condition on a variable or on a number of variables, with a boolean value. It serves two distinct roles, although the same definition is appropriate for both:
Event itself defines only a method to return its value (True or False). Further information is dependent on its subtypes, and is contained in four distinct subtypes derived from it:
CapeNumericEventType = {BASIC, COMPOSITE, BINARY, UNARY}
The definitions make use of two other enumerated types, as follows:
CapeLogicalRelation = {GT, LT, GEQ, LEQ}
CapeLogicalOperator = {AND, OR, NOT}
virtual Common::Types::CapeBoolean Eval | ( | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder) [pure virtual] |
Evaluates the logical expression represented by this particular event.
virtual CapeEventType QueryType | ( | ) | throw (Common::Error::ECapeUnknown) [pure virtual] |
Returns the type of event involved (thus allowing the correct interface and behaviour to be determined directly rather than on a trial-and-error basis).