0.4.1
Loading...
Searching...
No Matches
Terminator.cpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#include "Terminator.hpp"
10
12namespace nm = NAV::NodeManager;
14
15// ---------------------------------------------------------- Member functions -------------------------------------------------------------
16
18{
19 LOG_TRACE("{}: called", name);
20 _hasConfig = false;
21 kind = Kind::Simple;
22
24}
25
27{
28 LOG_TRACE("{}: called", nameId());
29}
30
32{
33 return "Terminator";
34}
35
36std::string NAV::Terminator::type() const
37{
38 return typeStatic();
39}
40
42{
43 return "Utility";
44}
45
46void NAV::Terminator::receiveObs(NAV::InputPin::NodeDataQueue& queue, size_t /* pinIdx */) // NOLINT(readability-convert-member-functions-to-static)
47{
48 queue.pop_front();
49}
Save/Load the Nodes.
#define LOG_TRACE
Detailled info to trace the execution of the program. Should not be called on functions which receive...
Definition Logger.hpp:65
Manages all Nodes.
Terminator for open signals. Mainly used for test flows.
TsDeque< std::shared_ptr< const NAV::NodeData > > NodeDataQueue
Node data queue type.
Definition Pin.hpp:707
static std::string type()
Returns the type of the data class.
Definition NodeData.hpp:45
Node(std::string name)
Constructor.
Definition Node.cpp:30
Kind kind
Kind of the Node.
Definition Node.hpp:393
std::string nameId() const
Node name and id.
Definition Node.cpp:253
std::string name
Name of the Node.
Definition Node.hpp:395
bool _hasConfig
Flag if the config window should be shown.
Definition Node.hpp:413
std::string type() const override
String representation of the Class Type.
void receiveObs(InputPin::NodeDataQueue &queue, size_t pinIdx)
Callback when receiving data on a port.
static std::string category()
String representation of the Class Category.
static std::string typeStatic()
String representation of the Class Type.
~Terminator() override
Destructor.
Terminator()
Default constructor.
void pop_front()
Removes the first element of the container. If there are no elements in the container,...
Definition TsDeque.hpp:461
InputPin * CreateInputPin(Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, InputPin::Callback callback=static_cast< InputPin::FlowFirableCallbackFunc >(nullptr), InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1)
Create an Input Pin object.
@ Flow
NodeData Trigger.
Definition Pin.hpp:52