Motion Master
Loading...
Searching...
No Matches
system_machine.h
Go to the documentation of this file.
1#pragma once
2
4#include "machine.h"
5
6class SystemMachine : public Machine {
7 public:
8 SystemMachine(VirtualDeviceManager& vdm, ctpl::thread_pool& thread_pool,
9 Notifier& notifier,
11 outgoing_machine_message_queue);
12
13 void execute(uint64_t pending_signals) override;
14 void abort_client_requests(const std::string& connection_id) override;
15 bool done() override;
16
17 private:
18 void send_status(
19 const IncomingMachineMessage& incoming_machine_message,
20 motionmaster::MotionMasterMessage::MotionMasterMessage::Status* status);
21};
Definition incoming_machine_message.h:5
Machine(VirtualDeviceManager &vdm, ctpl::thread_pool &thread_pool, Notifier &notifier, mm::core::containers::ThreadSafeQueue< OutgoingMachineMessage > &outgoing_machine_message_queue)
Definition machine.cc:7
Definition notifier.h:9
SystemMachine(VirtualDeviceManager &vdm, ctpl::thread_pool &thread_pool, Notifier &notifier, mm::core::containers::ThreadSafeQueue< OutgoingMachineMessage > &outgoing_machine_message_queue)
Definition system_machine.cc:10
bool done() override
Check if all of the machine started processes are done (including the Command Workers)
Definition system_machine.cc:143
void abort_client_requests(const std::string &connection_id) override
Abort all of the requests a certain client has issues.
Definition system_machine.cc:137
void execute(uint64_t pending_signals) override
Execute the machine.
Definition system_machine.cc:17
Definition virtual_device_manager.h:16
Thread-safe FIFO queue with optional capacity limit.
Definition thread_safe_queue.h:23