FlightGear next
FGXMLAutopilot::FlipFlopImplementation Class Reference

Interface for a flip flop implementation. More...

#include <flipflop.hxx>

Inherits SGReferenced.

Inherited by FGXMLAutopilot::RSFlipFlopImplementation.

Public Member Functions

virtual ~FlipFlopImplementation ()
 
virtual bool getState (double dt, DigitalComponent::InputMap input, bool &q)
 evaluates the output state from the input lines
 
bool configure (SGPropertyNode &prop_root, SGPropertyNode &cfg)
 configure this component from a property node.
 
virtual bool isConfigProperty (const std::string &cfg_name) const
 

Protected Member Functions

virtual bool configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root)
 configure this component from a property node.
 

Detailed Description

Interface for a flip flop implementation.

Can be configured from a property node and returns a state depending on input lines.

Definition at line 32 of file flipflop.hxx.

Constructor & Destructor Documentation

◆ ~FlipFlopImplementation()

virtual FGXMLAutopilot::FlipFlopImplementation::~FlipFlopImplementation ( )
inlinevirtual

Definition at line 44 of file flipflop.hxx.

Member Function Documentation

◆ configure() [1/2]

virtual bool FGXMLAutopilot::FlipFlopImplementation::configure ( SGPropertyNode & cfg_node,
const std::string & cfg_name,
SGPropertyNode & prop_root )
inlineprotectedvirtual

configure this component from a property node.

Iterates through all nodes found as childs under configNode and calls configure of the derived class for each child.

Parameters
configNodethe property node containing the configuration

Reimplemented in FGXMLAutopilot::MonoFlopImplementation.

Definition at line 39 of file flipflop.hxx.

◆ configure() [2/2]

bool FlipFlopImplementation::configure ( SGPropertyNode & prop_root,
SGPropertyNode & cfg )

configure this component from a property node.

Iterates through all nodes found as childs under configNode and calls configure of the derived class for each child.

Parameters
configNodethe property node containing the configuration

Definition at line 386 of file flipflop.cxx.

◆ getState()

virtual bool FGXMLAutopilot::FlipFlopImplementation::getState ( double dt,
DigitalComponent::InputMap input,
bool & q )
inlinevirtual

evaluates the output state from the input lines

Parameters
dtthe elapsed time in seconds from since the last call
inputa map of named input lines
qa reference to a boolean variable to receive the output state
Returns
true if the state has changed, false otherwise

Reimplemented in FGXMLAutopilot::ClockedFlipFlopImplementation, FGXMLAutopilot::MonoFlopImplementation, and FGXMLAutopilot::RSFlipFlopImplementation.

Definition at line 52 of file flipflop.hxx.

◆ isConfigProperty()

virtual bool FGXMLAutopilot::FlipFlopImplementation::isConfigProperty ( const std::string & cfg_name) const
inlinevirtual

Reimplemented in FGXMLAutopilot::MonoFlopImplementation.

Definition at line 62 of file flipflop.hxx.


The documentation for this class was generated from the following files: