TestGen_SK.h

00001 
00002 // --------------------------------------------------------------------------
00003 /*
00004  DO NOT EDIT THIS FILE. IT IS AUTOGENERATED FILE.
00005  ALL YOUR CHANGES WILL BE LOST.
00006  
00007  НЕ РЕДАКТИРУЙТЕ ЭТОТ ФАЙЛ. ЭТОТ ФАЙЛ СОЗДАН АВТОМАТИЧЕСКИ.
00008  ВСЕ ВАШИ ИЗМЕНЕНИЯ БУДУТ ПОТЕРЯНЫ.
00009 */ 
00010 // --------------------------------------------------------------------------
00011 // generate timestamp: 2012-12-03
00012 // -----------------------------------------------------------------------------
00013 #ifndef TestGen_SK_H_
00014 #define TestGen_SK_H_
00015 // -----------------------------------------------------------------------------
00016 #include "UniSetObject.h"
00017 #include "LT_Object.h"
00018 #include "UniXML.h"
00019 #include "Trigger.h"
00020 // -----------------------------------------------------------------------------
00021 class TestGen_SK:
00022     public UniSetObject,
00023     public LT_Object
00024 {
00025     public:
00026         TestGen_SK( UniSetTypes::ObjectId id, xmlNode* node=UniSetTypes::conf->getNode("TestGen") );
00027         TestGen_SK();
00028         virtual ~TestGen_SK();
00029 
00030         
00031 
00032         bool alarm( UniSetTypes::ObjectId sid, bool state );
00033         bool getState( UniSetTypes::ObjectId sid );
00034         bool getValue( UniSetTypes::ObjectId sid );
00035         void setValue( UniSetTypes::ObjectId sid, long value );
00036         void setState( UniSetTypes::ObjectId sid, bool state );
00037         void askState( UniSetTypes::ObjectId sid, UniversalIO::UIOCommand, UniSetTypes::ObjectId node = UniSetTypes::conf->getLocalNode() );
00038         void askValue( UniSetTypes::ObjectId sid, UniversalIO::UIOCommand, UniSetTypes::ObjectId node = UniSetTypes::conf->getLocalNode() );
00039         void updateValues();
00040         void setMsg( UniSetTypes::ObjectId code, bool state );
00041 
00042 
00043         // Используемые идентификаторы
00044         const UniSetTypes::ObjectId input1_s;       
00045         UniSetTypes::ObjectId node_input1_s;
00046         const UniSetTypes::ObjectId input2_s;       
00047         UniSetTypes::ObjectId node_input2_s;
00048         const UniSetTypes::ObjectId output1_c;      
00049         UniSetTypes::ObjectId node_output1_c;
00050         
00051 
00052         // Используемые идентификаторы сообщений
00053         
00054         const UniSetTypes::ObjectId mid_Message1;   
00055         UniSetTypes::ObjectId node_mid_Message1;
00056         bool m_mid_Message1;                            
00057         bool prev_m_mid_Message1;                   
00060         // Текущее значение и предыдущее значение
00061         bool in_input1_s;
00062         bool prev_in_input1_s;
00063         bool in_input2_s;
00064         bool prev_in_input2_s;
00065         bool out_output1_c;
00066         bool prev_out_output1_c;
00067         
00068 
00069         // --- public variables ---
00070         
00071         const int test_int; 
00073         // --- end of public variables ---
00074 
00075     protected:
00076         // --- protected variables ---
00077         
00078         int test_int2; 
00079         long test_long; 
00080         float test_float; 
00081         double test_double; 
00082         std::string test_str; 
00084         // ---- end of protected variables ----
00085 
00086         
00087         virtual void callback();
00088         virtual void processingMessage( UniSetTypes::VoidMessage* msg );
00089         virtual void sysCommand( UniSetTypes::SystemMessage* sm );
00090         virtual void askSensors( UniversalIO::UIOCommand cmd ){}
00091         virtual void sensorInfo( UniSetTypes::SensorMessage* sm ){}
00092         virtual void timerInfo( UniSetTypes::TimerMessage* tm ){}
00093         virtual void sigterm( int signo );
00094         virtual bool activateObject();
00095         virtual void testMode( bool state );
00096         void updatePreviousValues();
00097         void checkSensors();
00098         void updateOutputs( bool force );
00099 
00100         void preAskSensors( UniversalIO::UIOCommand cmd );
00101         void preSensorInfo( UniSetTypes::SensorMessage* sm );
00102         void preTimerInfo( UniSetTypes::TimerMessage* tm );
00103         void waitSM( int wait_msec, UniSetTypes::ObjectId testID = UniSetTypes::DefaultObjectId );
00104 
00105         void resetMsg();
00106         Trigger trResetMsg;
00107         PassiveTimer ptResetMsg;
00108         int resetMsgTime;
00109 
00110         // Выполнение очередного шага программы
00111         virtual void step()=0;
00112 
00113         int sleep_msec; 
00114         bool active;
00115 
00116         UniSetTypes::ObjectId smTestID; 
00118         // управление датчиком "сердцебиения"
00119         PassiveTimer ptHeartBeat;               
00120         UniSetTypes::ObjectId idHeartBeat;      
00121         int maxHeartBeat;                       
00123         xmlNode* confnode;
00125         int getIntProp(const std::string name) { return UniSetTypes::conf->getIntProp(confnode, name); }
00127         inline const std::string getProp(const std::string name) { return UniSetTypes::conf->getProp(confnode, name); }
00128 
00129         int smReadyTimeout;     
00130         bool activated;
00131         int activateTimeout;    
00132         PassiveTimer ptStartUpTimeout;  
00133         int askPause; 
00135         IOController_i::SensorInfo si;
00136 
00137 
00138     private:
00139         
00140         // --- private variables ---
00141         bool test_bool; 
00142         // --- end of private variables ---
00143 
00144         
00145 
00146         bool end_private; // вспомогательное поле (для внутреннего использования при генерировании кода)
00147 };
00148 
00149 // -----------------------------------------------------------------------------
00150 #endif // TestGen_SK_H_

Документация по UniSet. Последние изменения: Mon Dec 3 16:14:27 2012. Создано системой  doxygen 1.5.9