#include <PsInputAlias.h>
Inheritance diagram for PsInputAlias< Type >:


Public Methods | |
| PsInputAlias (const PsName &inputName, PsSimulatedObject &owner, PsAbstractInput< Type > *aliasedInput, const int requestedPrecisionLevel=PsPolatorNT::defaultPrecisionLevel) | |
| Constructor. | |
| virtual | ~PsInputAlias (void) |
| Destructor. | |
| virtual const Type & | get (int deltaT=0) |
| get the value of the connected output a certain date. | |
| virtual int | getDistanceToExactValue () const |
| get distance to exact value. | |
| virtual const Type & | getLastExactValue () const |
| get the last exact value. | |
| virtual const PsDate & | getDateOfLastExactValue () const |
| get the date of the last exact value. | |
| virtual bool | connect (const PsName &objectName, const PsName &outputName) |
| connect the aliased input to the output of an other simulated object. | |
| virtual bool | connect (PsSimulatedObject &object, const PsName &outputName) |
| connect the aliased input to the output of an other simulated object. | |
| virtual bool | connect (PsSimulatedObject *pointerToObject, const PsName &outputName) |
| connect this input to the output of an other simulated object. | |
| virtual bool | connect (const PsName &objectName, const PsName &outputName, const Type &initialValue) |
| connect the aliased input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet. | |
| virtual bool | connect (PsSimulatedObject &object, const PsName &outputName, const Type &initialValue) |
| connect the aliased input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet. | |
| virtual bool | connect (PsSimulatedObject *pointerToObject, const PsName &outputName, const Type &initialValue) |
| connect this input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet. | |
| virtual bool | connectToControlParameter (const PsName &objectName, const PsName &controlParameterName) |
| connect this input to a control parameter of an other simulated object. | |
| virtual bool | connectToControlParameter (PsSimulatedObject &object, const PsName &controlParameterName) |
| connect this input to the controlParameter of an other simulated object. | |
| virtual bool | connectToControlParameter (PsSimulatedObject *pointerToObject, const PsName &controlParameterName) |
| connect this input to the controlParameter of an other simulated object. | |
| virtual bool | connectToControlParameter (const PsName &objectName, const PsName &controlParameterName, const Type &initialValue) |
| connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet. | |
| virtual bool | connectToControlParameter (PsSimulatedObject &object, const PsName &controlParameterName, const Type &initialValue) |
| connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet. | |
| virtual bool | connectToControlParameter (PsSimulatedObject *pointerToObject, const PsName &controlParameterName, const Type &initialValue) |
| connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet. | |
| virtual const PsOutputNT * | getConnectedOutput () const |
| get a pointer to output this input is connected to | |
| virtual void | disconnect () |
| disconnect the input from the connected output | |
| virtual void | extract (istream &=cin) |
| extraction from an input stream (input stream) no real semantic has yet been defined for this operation | |
| virtual void | insertInStream (ostream &=cout) const |
| insert in an output stream no real semantic has yet been defined for this operation | |
| virtual void | printDebuggingInformation (ostream &err) const |
| print any usefull debugging information for this input | |
| virtual bool | realConnect (PsOutputNT *output) |
| the real connecting member function | |
| virtual void | inputAliasedDeleted () |
| called when the aliased input is deleted | |
Protected Attributes | |
| PsAbstractInput< Type > * | _aliasedInput |
| pointer to the aliases input | |
an alias to an input
Definition at line 36 of file PsInputAlias.h.
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 46 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput, PsPolatorNT::defaultPrecisionLevel, and PsAbstractInput< Type >::isConnectable().
00050 : PsAbstractInput<Type>(inputName, 00051 owner, 00052 aliasedInput->isConnectable(), 00053 requestedPrecisionLevel) , 00054 _aliasedInput ( aliasedInput ) 00055 { 00056 if ( _aliasedInput != NULL ) 00057 { 00058 _aliasedInput->notifyAliasing(this) ; 00059 } 00060 else 00061 { 00062 cerr<<"WARNING : PsInputAlias::PsInputAlias : aliased input is NULL "<<endl; 00063 } 00064 }; |
|
||||||||||
|
Destructor.
Definition at line 67 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00068 {
00069 if ( _aliasedInput != NULL )
00070 {
00071 _aliasedInput->notifyUnaliasing(this) ;
00072 }
00073 };
|
|
||||||||||||||||||||
|
connect this input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 348 of file PsInputAlias.h. References PsAbstractInput< Type >::connect().
00351 {
00352 return PsAbstractInput<Type>::connect( object, outputName, initialValue );
00353 }
|
|
||||||||||||||||||||
|
connect the aliased input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 340 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00343 {
00344 return _aliasedInput->connect( object, outputName, initialValue );
00345 }
|
|
||||||||||||||||||||
|
connect the aliased input to the output of an other object, and propose an initial value in case the output hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 331 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00334 {
00335 return _aliasedInput->connect( objectName, outputName, initialValue );
00336 }
|
|
||||||||||||||||
|
connect this input to the output of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 323 of file PsInputAlias.h. References PsAbstractInput< Type >::connect().
00325 {
00326 return PsAbstractInput<Type>::connect(object, outputName);
00327 }
|
|
||||||||||||||||
|
connect the aliased input to the output of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 315 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00317 {
00318 return _aliasedInput->connect(object, outputName);
00319 }
|
|
||||||||||||||||
|
connect the aliased input to the output of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 307 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00309 {
00310 return _aliasedInput->connect(objectName,outputName);
00311 }
|
|
||||||||||||||||||||
|
connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 398 of file PsInputAlias.h. References PsAbstractInput< Type >::connectToControlParameter().
00401 {
00402 return PsAbstractInput<Type>::connectToControlParameter( object, controlParameterName, initialValue );
00403 }
|
|
||||||||||||||||||||
|
connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 389 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00392 {
00393 return _aliasedInput->connectToControlParameter( object, controlParameterName, initialValue );
00394 }
|
|
||||||||||||||||||||
|
connect this input to a control parameter of an other object, and propose an initial value in case the controlParameter hasn't been initialised yet.
Implements PsAbstractInput< Type >. Definition at line 380 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00383 {
00384 return _aliasedInput->connectToControlParameter( objectName, controlParameterName, initialValue );
00385 }
|
|
||||||||||||||||
|
connect this input to the controlParameter of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 372 of file PsInputAlias.h. References PsAbstractInput< Type >::connectToControlParameter().
00374 {
00375 return PsAbstractInput<Type>::connectToControlParameter(object, controlParameterName);
00376 }
|
|
||||||||||||||||
|
connect this input to the controlParameter of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 364 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00366 {
00367 return _aliasedInput->connectToControlParameter(object, controlParameterName);
00368 }
|
|
||||||||||||||||
|
connect this input to a control parameter of an other simulated object.
Implements PsAbstractInput< Type >. Definition at line 356 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00358 {
00359 return _aliasedInput->connectToControlParameter(objectName,controlParameterName);
00360 }
|
|
|||||||||
|
disconnect the input from the connected output
Implements PsInputNT. Definition at line 407 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00408 {
00409 _aliasedInput->disconnect( );
00410 }
|
|
||||||||||
|
extraction from an input stream (input stream) no real semantic has yet been defined for this operation
Implements PsAttribute. Definition at line 270 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00271 {
00272 _aliasedInput->extract(in) ;
00273 }
|
|
||||||||||
|
get the value of the connected output a certain date.
Implements PsAbstractInput< Type >. Definition at line 251 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00252 {
00253 #ifdef _DEBUGTYPEUTIL
00254 cout << "PsInputAlias<Type>::localGet calling get of _aliasedInput " << endl;
00255 #endif
00256 return _aliasedInput->get (deltaT);
00257 }
|
|
|||||||||
|
get a pointer to output this input is connected to
Implements PsAbstractInput< Type >. Definition at line 414 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00415 {
00416 return _aliasedInput->getConnectedOutput( );
00417 }
|
|
|||||||||
|
get the date of the last exact value.
Implements PsAbstractInput< Type >. Definition at line 302 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput, and PsDate.
00302 {
00303 return _aliasedInput->getDateOfLastExactValue() ;
00304 }
|
|
|||||||||
|
get distance to exact value.
Implements PsAbstractInput< Type >. Definition at line 262 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00263 {
00264 return _aliasedInput->getDistanceToExactValue();
00265 }
|
|
|||||||||
|
get the last exact value. Using this member function garanties that a value produced is returned, but it should only be used for specific needs, as it prevents any optimisation by the kernel, and the date of production of the value isn't accessible
Implements PsAbstractInput< Type >. Definition at line 296 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00296 {
00297 return _aliasedInput->getLastExactValue() ;
00298 }
|
|
|||||||||
|
called when the aliased input is deleted
Definition at line 243 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00244 {
00245 _aliasedInput = NULL ;
00246 }
|
|
||||||||||
|
insert in an output stream no real semantic has yet been defined for this operation
Implements PsAttribute. Definition at line 278 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00279 {
00280 _aliasedInput->insertInStream(out) ;
00281 }
|
|
||||||||||
|
print any usefull debugging information for this input
Implements PsAbstractInput< Type >. Definition at line 286 of file PsInputAlias.h. References PsAttribute::_owner, PsAbstractInput< Type >::_precisionLevel, and PsSimulatedObject::getName().
00287 {
00288 err << "**********************************************************" << endl;
00289 err << "Class PsInputAlias" << endl;
00290 err << "Owner : " << _owner.getName() << endl;
00291 err << "polation precision level : " << _precisionLevel << endl;
00292 }
|
|
||||||||||
|
the real connecting member function
Implements PsInputNT. Definition at line 227 of file PsInputAlias.h. References PsInputAlias< Type >::_aliasedInput.
00227 {
00228 return _aliasedInput->realConnect(output);
00229 }
|
|
|||||
| Documentation generated on Mon Nov 25 15:26:04 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |