Diana  0.8.3
Public Member Functions
ICapeNumericEvent Class Reference

#include <CapeModel.hpp>

Inheritance diagram for ICapeNumericEvent:
ICapeNumericBasicEvent ICapeNumericCompositeEvent ICapeNumericBinaryEvent ICapeNumericUnaryEvent

List of all members.

Public Member Functions

virtual Common::Types::CapeBoolean Eval ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual CapeEventType QueryType ()=0 throw (Common::Error::ECapeUnknown)

Detailed Description

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}


Member Function Documentation

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).


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