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

PsTestObject Class Reference

This class has for only purpose the creation of a simulated object which code contains instanciations of all template member functions. More...

Inheritance diagram for PsTestObject:

Inheritance graph
[legend]
Collaboration diagram for PsTestObject:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsTestObject (PsController &ctrl, const PsObjectDescriptor &descriptor)
 ~PsTestObject ()
virtual void compute ()
 compute evolution of this object.


Detailed Description

This class has for only purpose the creation of a simulated object which code contains instanciations of all template member functions.

Inputs :

Author:
David Margery
Version:
1.0

Definition at line 53 of file testObject.cxx.


Constructor & Destructor Documentation

PsTestObject::PsTestObject PsController   ctrl,
const PsObjectDescriptor   descriptor
 

Definition at line 60 of file testObject.cxx.

00060                                                                                        :
00061    PsSimulatedObject( ctrl , descriptor )
00062 {
00063    list<const PsObjectDescriptor *> * alist = listSonsOfType<PsSimulatedObject> ( ) ;
00064    delete alist ;
00065    alist = listBrothersOfType<PsSimulatedObject> ( ) ;
00066    delete alist ;
00067    alist = listDescendantsOfType<PsSimulatedObject> ( ) ;
00068    delete alist ;
00069    
00070    addInput<PsFloat> ("anInput", false, 2) ;
00071    addSensitiveInput<PsFloat> ("aSensitiveInput", false,  2) ;
00072    addSensitiveNotifyingInput<PsFloat> ("aSensitiveNotifyingInput", false, 2) ;
00073    addOutput<PsFloat>("anOutput");
00074    addControlParameter<PsFloat> ("aControlParameter") ;
00075 
00076    addInputAlias<PsFloat> ("anAlias","anObject","anObjectInput" ) ;
00077    addSensitiveInputAlias<PsFloat> ("aSensitiveAlias","anObject","anObjectInput" ) ;
00078    addSensitiveNotifyingInputAlias<PsFloat>("aSensitiveNotifyingAlias","anObject","anObjectInput" ) ;
00079 
00080    addOutputAlias<PsFloat> ("anOutputALias","anObject","AnObjectOutput" ) ;
00081 
00082    generateAndAddInstanceCreatorFor<PsTestObject> ("testObject");
00083 }

PsTestObject::~PsTestObject  
 

Definition at line 85 of file testObject.cxx.

00085                             {
00086 
00087 }


Member Function Documentation

void PsTestObject::compute   [virtual]
 

compute evolution of this object.

Reimplemented from PsSimulatedObject.

Definition at line 90 of file testObject.cxx.

References PsSimulatedObject::fireValuedSignal(), PsSimulatedObject::getName(), PsInt, and PsSimulatedObject::sendValuedEvent().

00090                            {
00091    //PsValuedEvent<PsInt> * t = event_cast<PsInt>(new PsValuedEvent<PsInt>("tot",getSimulatedDate(),"Me","them",2) ) ;
00092    //delete t ; 
00093    fireValuedSignal( "HasAValue" ,getName() ) ;
00094    sendValuedEvent("anObject","anEventId", PsInt(3) );
00095    sendValuedEvent(this,"anEventId", PsInt(3) );
00096 }


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

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

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