|
| FakeIOControl (uniset::ObjectId id, uniset::ObjectId icID, const std::shared_ptr< SharedMemory > &shm=nullptr, int numcards=2, const std::string &prefix="io") |
|
| IOControl (uniset::ObjectId id, uniset::ObjectId icID, const std::shared_ptr< SharedMemory > &shm=nullptr, size_t numcards=2, const std::string &prefix="io") |
|
virtual uniset::SimpleInfo * | getInfo (const char *userparam=0) override |
|
| UniSetObject (const std::string &name, const std::string §ion) |
|
| UniSetObject (uniset::ObjectId id) |
|
virtual CORBA::Boolean | exist () override |
|
virtual uniset::ObjectId | getId () override |
|
const uniset::ObjectId | getId () const |
|
std::string | getName () const |
|
virtual uniset::ObjectType | getType () override |
|
const std::string | getStrType () |
|
virtual uniset::SimpleInfo * | apiRequest (const char *query) override |
|
virtual void | push (const uniset::TransportMessage &msg) override |
| поместить сообщение в очередь Подробнее...
|
|
virtual void | pushMessage (const char *msg, ::CORBA::Long mtype, const ::uniset::Timespec &tm, const ::uniset::ProducerInfo &pi, ::CORBA::Long priority, ::CORBA::Long consumer) override |
| поместить текстовое сообщение в очередь Подробнее...
|
|
virtual Poco::JSON::Object::Ptr | httpGet (const Poco::URI::QueryParameters &p) override |
|
virtual Poco::JSON::Object::Ptr | httpHelp (const Poco::URI::QueryParameters &p) override |
|
uniset::ObjectPtr | getRef () const |
|
std::shared_ptr< UniSetObject > | get_ptr () |
|
virtual timeout_t | askTimer (uniset::TimerId timerid, timeout_t timeMS, clock_t ticks=-1, uniset::Message::Priority p=uniset::Message::High) override |
|
timeout_t | checkTimers (UniSetObject *obj) |
|
timeout_t | getTimeInterval (uniset::TimerId timerid) const |
|
timeout_t | getTimeLeft (uniset::TimerId timerid) const |
|
virtual Poco::JSON::Object::Ptr | httpRequest (const std::string &req, const Poco::URI::QueryParameters &p) |
|
|
enum | TestModeID {
tmNone = 0,
tmOffPoll = 1,
tmConfigEnable = 2,
tmConfigDisable = 3,
tmOnlyInputs = 4,
tmOnlyOutputs = 5
} |
|
typedef std::vector< std::shared_ptr< IOInfo > > | IOMap |
|
typedef std::deque< IOPriority > | PIOMap |
|
typedef std::list< std::shared_ptr< IOInfo > > | BlinkList |
|
typedef std::deque< TimerInfo > | TimersList |
|
void | iopoll () |
|
void | ioread (std::shared_ptr< IOInfo > &it) |
|
void | check_testlamp () |
|
void | check_testmode () |
|
void | blink () |
|
void | iothread () |
|
virtual void | sysCommand (const uniset::SystemMessage *sm) override |
|
virtual void | askSensors (UniversalIO::UIOCommand cmd) |
|
virtual void | sensorInfo (const uniset::SensorMessage *sm) override |
|
virtual void | timerInfo (const uniset::TimerMessage *tm) override |
|
virtual bool | activateObject () override |
| Активизация объекта (переопределяется для необходимых действий после активизации) Подробнее...
|
|
virtual bool | deactivateObject () override |
| Деактивация объекта (переопределяется для необходимых действий при завершении работы) Подробнее...
|
|
void | initOutputs () |
|
void | initIOCard () |
|
void | readConfiguration () |
|
bool | initIOItem (UniXML::iterator &it) |
|
bool | readItem (const std::shared_ptr< UniXML > &xml, UniXML::iterator &it, xmlNode *sec) |
|
void | buildCardsList () |
|
bool | waitSM () |
|
void | addBlink (std::shared_ptr< IOInfo > &it, BlinkList &lst) |
|
void | delBlink (std::shared_ptr< IOInfo > &it, BlinkList &lst) |
|
void | blink (BlinkList &lst, bool &bstate) |
|
virtual void | processingMessage (const uniset::VoidMessage *msg) |
|
virtual void | onTextMessage (const uniset::TextMessage *tm) |
|
VoidMessagePtr | receiveMessage () |
|
VoidMessagePtr | waitMessage (timeout_t msec=UniSetTimer::WaitUpTime) |
|
void | termWaiting () |
|
size_t | countMessages () |
|
size_t | getCountOfLostMessages () const |
|
void | uterminate () |
|
void | thread (bool create) |
|
void | offThread () |
|
void | onThread () |
|
virtual void | callback () |
|
void | setID (uniset::ObjectId id) |
|
void | setThreadPriority (Poco::Thread::Priority p) |
|
void | setMaxSizeOfMessageQueue (size_t s) |
|
size_t | getMaxSizeOfMessageQueue () const |
|
bool | isActive () const |
|
void | setActive (bool set) |
|
virtual Poco::JSON::Object::Ptr | httpGetMyInfo (Poco::JSON::Object::Ptr root) |
|
Poco::JSON::Object::Ptr | request_conf (const std::string &req, const Poco::URI::QueryParameters &p) |
|
Poco::JSON::Object::Ptr | request_conf_name (const std::string &name, const std::string &props) |
|
virtual std::string | getTimerName (int id) const |
|
TimersList | getTimersList () const |
|
xmlNode * | confnode = { 0 } |
|
int | polltime = { 150 } |
|
CardList | cards |
|
bool | noCards = { false } |
|
IOMap | iomap |
|
PIOMap | pmap |
|
size_t | maxItem = { 0 } |
|
size_t | maxHalf = { 0 } |
|
int | filtersize = { 0 } |
|
float | filterT = { 0.0 } |
|
std::string | s_field |
|
std::string | s_fvalue |
|
std::shared_ptr< SMInterface > | shm |
|
uniset::ObjectId | myid = { uniset::DefaultObjectId } |
|
std::string | prefix |
|
BlinkList | lstBlink |
|
PassiveTimer | ptBlink |
|
bool | blink_state = { false } |
|
BlinkList | lstBlink2 |
|
PassiveTimer | ptBlink2 |
|
bool | blink2_state = { false } |
|
BlinkList | lstBlink3 |
|
PassiveTimer | ptBlink3 |
|
bool | blink3_state = { false } |
|
uniset::ObjectId | testLamp_s = { uniset::DefaultObjectId } |
|
Trigger | trTestLamp |
|
bool | isTestLamp = { false } |
|
IOController::IOStateList::iterator | itTestLamp |
|
PassiveTimer | ptHeartBeat |
|
uniset::ObjectId | sidHeartBeat |
|
int | maxHeartBeat = { 10 } |
|
IOController::IOStateList::iterator | itHeartBeat |
|
bool | force = { false } |
|
bool | force_out = { false } |
|
timeout_t | smReadyTimeout = { 15000 } |
|
ssize_t | defCardNum = { -1 } |
|
size_t | maxCardNum = { 10 } |
|
std::mutex | iopollMutex |
|
std::atomic_bool | activated = { false } |
|
std::atomic_bool | cancelled = { false } |
|
bool | readconf_ok = { false } |
|
int | activateTimeout |
|
uniset::ObjectId | sidTestSMReady = { uniset::DefaultObjectId } |
|
uniset::ObjectId | testMode_as = { uniset::DefaultObjectId } |
|
IOController::IOStateList::iterator | itTestMode |
|
long | testmode = { false } |
|
long | prev_testmode = { false } |
|
std::shared_ptr< LogAgregator > | loga |
|
std::shared_ptr< DebugStream > | iolog |
|
std::shared_ptr< LogServer > | logserv |
|
std::string | logserv_host = {""} |
|
int | logserv_port = {0} |
|
std::shared_ptr< ThreadCreator< IOControl > > | ioThread |
|
VMonitor | vmon |
|
std::shared_ptr< UInterface > | ui |
|
std::string | myname |
|
std::weak_ptr< UniSetManager > | mymngr |
|
timeout_t | sleepTime |
|
Специальный IOControl для тестирования подменяющий все карты в/в на FakeComediInterface