#include <PsCalculus.h>
Collaboration diagram for PsCalculus:

Public Methods | |
cnstruction, destruction and life of this computational object. | |
| PsCalculus (PsSimulatedObject &object) | |
| constructor. | |
| virtual | ~PsCalculus () |
| Destructor. | |
| virtual void | init () |
| initialise the object. | |
| virtual void | compute () |
| compute the next simulation step | |
| virtual void | finish () |
| finish calculations, and prepare for reinitialisation. | |
old paradigm for user interface integration | |
| virtual void | initUserInterface () |
| initialise user interface | |
| virtual void | runUserInterfaceDuringInit () |
| use user interface before simulation begins | |
| virtual void | runUserInterface () |
| use user interface while object is running | |
| virtual void | runUserInterfaceDuringSuspend () |
| use user interface while object is suspended | |
| virtual void | terminateUserInterface () |
| kill user interface | |
Accessor to widely used simulated object's member function : will disapear is further versions | |
| virtual PsController & | getController () const |
| get access to our controler. | |
| virtual const PsDate & | getSimulatedDate () const |
| get the current simulated date | |
| virtual PsSimulatedObject & | getSimulatedObject () const |
| get our simulated object | |
| virtual const PsName & | getName () const |
| virtual const PsName & | getClass () const |
| get simulated object's class | |
| virtual const PsName & | getProcess () const |
| get simulated object's process | |
| virtual const PsFrequency & | getFrequency () const |
| get simulated object's frequency | |
| virtual float | getPeriod () const |
| get object's period (if meanningfull) | |
| virtual const PsConfigurationParameterDescriptor * | getConfigurationParameters () const |
| get a pointer to the structure describing our configuration parameters | |
| virtual const PsNameToPointerMap< PsInputNT > & | getInputTable () const |
| get a reference to the table of the simulated object's inputs | |
| virtual const PsNameToPointerMap< PsOutputNT > & | getOutputTable () const |
| get a reference to the table of the simulated object's outputs | |
| virtual const PsNameToPointerMap< PsOutputNT > & | getControlParameterTable () const |
| get a reference to the table of the simulated object's parameters | |
| virtual const list< PsEventListener * > & | getEventListeners () const |
| get a reference to the list of EventListeners | |
| virtual PsInputNT * | getPointerToInputNamed (const PsName &inputName) const |
| get a pointer to an input | |
| virtual PsOutputNT * | getPointerToOutputNamed (const PsName &outputName) const |
| get a pointer to an output | |
| virtual PsOutputNT * | getPointerToControlParameterNamed (const PsName ¶meterName) const |
| get a pointer to an input | |
Protected Attributes | |
| PsSimulatedObject & | _object |
| a reference to the simultaion object associated to the calculus | |
It essentialiy defines three base member functions, init, compute and finish, which are the default member function used by the simulated object. It also defines helper member functions for an easy acces to widely used simulatedObject member functions.
Definition at line 40 of file PsCalculus.h.
|
|
constructor. a reference to the simulated object delegating computations here, all the simulated objects have been created, with their public attributes Definition at line 22 of file PsCalculus.cxx.
00022 : 00023 _object ( obj ) { 00024 00025 } |
|
|
Destructor.
Definition at line 28 of file PsCalculus.cxx.
00028 {
00029
00030 }
|
|
|
compute the next simulation step
Definition at line 35 of file PsCalculus.cxx.
00036 {
00037
00038 }
|
|
|
finish calculations, and prepare for reinitialisation. if data needs examining and the end of the simulation, this can be done after finish was called Definition at line 39 of file PsCalculus.cxx.
00040 {
00041
00042 }
|
|
|
get simulated object's class
Definition at line 86 of file PsCalculus.cxx. References _object, PsObjectDescriptor::getClass(), and PsSimulatedObject::getObjectDescriptor().
00087 {
00088 return _object.getObjectDescriptor().getClass();
00089 }
|
|
|
get a pointer to the structure describing our configuration parameters
Definition at line 102 of file PsCalculus.cxx. References _object, PsObjectDescriptor::getConfigurationParameters(), and PsSimulatedObject::getObjectDescriptor().
00102 {
00103 return _object.getObjectDescriptor().getConfigurationParameters();
00104 }
|
|
|
get access to our controler.
Definition at line 57 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getController().
00058 {
00059 return _object.getController();
00060 }
|
|
|
get a reference to the table of the simulated object's parameters
Definition at line 117 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getControlParameterTable().
00118 {
00119 return _object.getControlParameterTable () ;
00120 }
|
|
|
get a reference to the list of EventListeners
Definition at line 137 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getEventListeners().
00138 {
00139 return _object.getEventListeners() ;
00140 }
|
|
|
get simulated object's frequency
Definition at line 97 of file PsCalculus.cxx. References _object, PsObjectDescriptor::getFrequency(), PsSimulatedObject::getObjectDescriptor(), and PsFrequency.
00097 {
00098 return _object.getObjectDescriptor().getFrequency();
00099 }
|
|
|
get a reference to the table of the simulated object's inputs
Definition at line 107 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getInputTable().
00108 {
00109 return _object.getInputTable () ;
00110 }
|
|
|
Definition at line 80 of file PsCalculus.cxx. References _object, PsObjectDescriptor::getName(), and PsSimulatedObject::getObjectDescriptor().
00081 {
00082 return _object.getObjectDescriptor().getName();
00083 }
|
|
|
get a reference to the table of the simulated object's outputs
Definition at line 112 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getOutputTable().
00113 {
00114 return _object.getOutputTable () ;
00115 }
|
|
|
get object's period (if meanningfull)
Definition at line 68 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getPeriod().
|
|
|
get a pointer to an input
Definition at line 132 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getPointerToControlParameterNamed().
00133 {
00134 return _object.getPointerToControlParameterNamed ( parameterName ) ;
00135 }
|
|
|
get a pointer to an input
Definition at line 122 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getPointerToInputNamed().
00123 {
00124 return _object.getPointerToInputNamed ( inputName ) ;
00125 }
|
|
|
get a pointer to an output
Definition at line 127 of file PsCalculus.cxx. References _object, and PsSimulatedObject::getPointerToOutputNamed().
00128 {
00129 return _object.getPointerToOutputNamed ( outputName ) ;
00130 }
|
|
|
get simulated object's process
Definition at line 92 of file PsCalculus.cxx. References _object, PsSimulatedObject::getObjectDescriptor(), and PsObjectDescriptor::getProcess().
00093 {
00094 return _object.getObjectDescriptor().getProcess();
00095 }
|
|
|
get the current simulated date
Definition at line 74 of file PsCalculus.cxx. References _object, PsSimulatedObject::getController(), PsController::getSimulatedDate(), and PsDate.
00075 {
00076 return _object.getController().getSimulatedDate();
00077 }
|
|
|
get our simulated object
Definition at line 62 of file PsCalculus.cxx. References _object.
00063 {
00064 return _object ;
00065 }
|
|
|
initialise the object. called for initilisation and reinitialisation the constructor should be used to initialise members and connections with other objects Definition at line 31 of file PsCalculus.cxx.
00032 {
00033
00034 }
|
|
|
initialise user interface
Definition at line 45 of file PsCalculus.cxx.
00045 {
00046 }
|
|
|
use user interface while object is running
Definition at line 49 of file PsCalculus.cxx.
00049 {
00050 }
|
|
|
use user interface before simulation begins
Definition at line 47 of file PsCalculus.cxx.
00047 {
00048 }
|
|
|
use user interface while object is suspended
Definition at line 51 of file PsCalculus.cxx.
00051 {
00052 }
|
|
|
kill user interface
Definition at line 53 of file PsCalculus.cxx.
00053 {
00054 }
|
|
|
a reference to the simultaion object associated to the calculus
Definition at line 179 of file PsCalculus.h. Referenced by getClass(), getConfigurationParameters(), getController(), getControlParameterTable(), getEventListeners(), getFrequency(), getInputTable(), getName(), getOutputTable(), getPeriod(), getPointerToControlParameterNamed(), getPointerToInputNamed(), getPointerToOutputNamed(), getProcess(), getSimulatedDate(), and getSimulatedObject(). |
| Documentation generated on Mon Nov 25 15:25:52 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |