FlightGear next
FGXMLAutopilot::MonoFlopImplementation Class Reference

Implements a monostable flip flop. More...

Inherits FGXMLAutopilot::JKFlipFlopImplementation.

Public Member Functions

 MonoFlopImplementation (bool rIsDominant=true)
 constructor for a MonoFlopImplementation
 
virtual bool getState (double dt, DigitalComponent::InputMap input, bool &q)
 evaluates the output state from the input lines and returns to the stable state after expiry of the internal timer
 
- Public Member Functions inherited from FGXMLAutopilot::JKFlipFlopImplementation
 JKFlipFlopImplementation (bool rIsDominant=true)
 constructor for a JKFlipFlopImplementation
 
virtual bool onRaisingEdge (DigitalComponent::InputMap input, bool &q)
 compute the output state according to the logic table on the raising edge of the clock
 
- Public Member Functions inherited from FGXMLAutopilot::ClockedFlipFlopImplementation
 ClockedFlipFlopImplementation (bool rIsDominant=true)
 constructor for a ClockedFlipFlopImplementation
 
- Public Member Functions inherited from FGXMLAutopilot::RSFlipFlopImplementation
 RSFlipFlopImplementation (bool rIsDominant=true)
 
- Public Member Functions inherited from FGXMLAutopilot::FlipFlopImplementation
virtual ~FlipFlopImplementation ()
 
bool configure (SGPropertyNode &prop_root, SGPropertyNode &cfg)
 configure this component from a property node.
 

Protected Member Functions

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

Protected Attributes

simgear::ValueList _time
 
double _t
 
- Protected Attributes inherited from FGXMLAutopilot::RSFlipFlopImplementation
bool _rIsDominant
 

Detailed Description

Implements a monostable flip flop.

The stable output state is false.

Definition at line 265 of file flipflop.cxx.

Constructor & Destructor Documentation

◆ MonoFlopImplementation()

FGXMLAutopilot::MonoFlopImplementation::MonoFlopImplementation ( bool rIsDominant = true)
inline

constructor for a MonoFlopImplementation

Parameters
rIsDominantboolean flag to signal if RESET shall be dominant (true) or SET shall be dominant (false)

Definition at line 283 of file flipflop.cxx.

Member Function Documentation

◆ configure()

bool MonoFlopImplementation::configure ( SGPropertyNode & cfg_node,
const std::string & cfg_name,
SGPropertyNode & prop_root )
protectedvirtual

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 from FGXMLAutopilot::FlipFlopImplementation.

Definition at line 300 of file flipflop.cxx.

◆ getState()

bool MonoFlopImplementation::getState ( double dt,
DigitalComponent::InputMap input,
bool & q )
virtual

evaluates the output state from the input lines and returns to the stable state after expiry of the internal timer

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 from FGXMLAutopilot::ClockedFlipFlopImplementation.

Definition at line 315 of file flipflop.cxx.

◆ isConfigProperty()

bool FGXMLAutopilot::MonoFlopImplementation::isConfigProperty ( const std::string & cfg_name) const
inlineoverrideprotectedvirtual

Reimplemented from FGXMLAutopilot::FlipFlopImplementation.

Definition at line 273 of file flipflop.cxx.

Member Data Documentation

◆ _t

double FGXMLAutopilot::MonoFlopImplementation::_t
protected

Definition at line 271 of file flipflop.cxx.

◆ _time

simgear::ValueList FGXMLAutopilot::MonoFlopImplementation::_time
protected

Definition at line 270 of file flipflop.cxx.


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