0.5.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
12
13// ---------------------------------------------------------- Member functions -------------------------------------------------------------
14
16{
17 LOG_TRACE("{}: called", name);
18 _hasConfig = false;
19 kind = Kind::Simple;
20
22}
23
25{
26 LOG_TRACE("{}: called", nameId());
27}
28
30{
31 return "Terminator";
32}
33
34std::string NAV::Terminator::type() const
35{
36 return typeStatic();
37}
38
40{
41 return "Utility";
42}
43
44void NAV::Terminator::receiveObs(NAV::InputPin::NodeDataQueue& queue, size_t /* pinIdx */) // NOLINT(readability-convert-member-functions-to-static)
45{
46 queue.pop_front();
47}
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
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:29
Kind kind
Kind of the Node.
Definition Node.hpp:505
std::string nameId() const
Node name and id.
Definition Node.cpp:323
std::string name
Name of the Node.
Definition Node.hpp:507
InputPin * CreateInputPin(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.
Definition Node.cpp:252
bool _hasConfig
Flag if the config window should be shown.
Definition Node.hpp:525
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
@ Flow
NodeData Trigger.
Definition Pin.hpp:52