Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsSensitiveNotifyingInputAlias< Type > Class Template Reference

an alias to a sensitive notifying input. More...

#include <PsSensitiveNotifyingInputAlias.h>

Inheritance diagram for PsSensitiveNotifyingInputAlias< Type >:

Inheritance graph
[legend]
Collaboration diagram for PsSensitiveNotifyingInputAlias< Type >:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsSensitiveNotifyingInputAlias (const PsName &attributeName, PsSimulatedObject &owner, PsAbstractInput< Type > *aliasedInput, const int requestedPrecisionLevel=PsPolatorNT::defaultPrecisionLevel)
 constructor

virtual ~PsSensitiveNotifyingInputAlias ()
 destructor

virtual void signalChange ()
 member function called when a new value is produces on the connected output

const PsEventIdentifiergetAssociatedEventId () const
 get the event id of the sent event when a change occurs on the connected output


Protected Attributes

PsEventIdentifier _associatedEventId
 event id of the sent event when a change occurs on the connected output


Detailed Description

template<typename Type>
class PsSensitiveNotifyingInputAlias< Type >

an alias to a sensitive notifying input.

Definition at line 29 of file PsSensitiveNotifyingInputAlias.h.


Constructor & Destructor Documentation

template<typename Type>
PsSensitiveNotifyingInputAlias< Type >::PsSensitiveNotifyingInputAlias const PsName   attributeName,
PsSimulatedObject   owner,
PsAbstractInput< Type > *    aliasedInput,
const int    requestedPrecisionLevel = PsPolatorNT::defaultPrecisionLevel
[inline]
 

constructor

Definition at line 32 of file PsSensitiveNotifyingInputAlias.h.

00036                                                                                                        : 
00037       PsSensitiveInputAlias<Type>(attributeName,
00038                                   owner, 
00039                                   aliasedInput,
00040                                   requestedPrecisionLevel), 
00041       _associatedEventId (PsString(_name.getCString() )+"Changed") 
00042    {

template<typename Type>
virtual PsSensitiveNotifyingInputAlias< Type >::~PsSensitiveNotifyingInputAlias   [inline, virtual]
 

destructor

Definition at line 45 of file PsSensitiveNotifyingInputAlias.h.

00046 {};


Member Function Documentation

template<typename Type>
const PsEventIdentifier& PsSensitiveNotifyingInputAlias< Type >::getAssociatedEventId   const [inline]
 

get the event id of the sent event when a change occurs on the connected output

Definition at line 58 of file PsSensitiveNotifyingInputAlias.h.

00060    {
00061       return _associatedEventId ;

template<typename Type>
virtual void PsSensitiveNotifyingInputAlias< Type >::signalChange   [inline, virtual]
 

member function called when a new value is produces on the connected output

Reimplemented from PsSensitiveInputAlias< Type >.

Definition at line 48 of file PsSensitiveNotifyingInputAlias.h.

00050    {
00051 #ifdef _DEBUGALIAS
00052       cerr<<"PsSensitiveNotifyingInputAlias::signalChange()"<<endl;
00053 #endif
00054       PsSensitiveInputAlias<Type>::signalChange();
00055       _owner.sendValuedEvent( _owner, getAssociatedEventId() , _name);


Member Data Documentation

template<typename Type>
PsEventIdentifier PsSensitiveNotifyingInputAlias< Type >::_associatedEventId [protected]
 

event id of the sent event when a change occurs on the connected output

Definition at line 65 of file PsSensitiveNotifyingInputAlias.h.


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

Documentation generated on Mon Nov 25 15:26:28 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001