LRAUV  revA
Component Class Reference

Abstract Base class for software components. More...

#include <Component.h>

Inheritance diagram for Component:
Collaboration diagram for Component:

Public Types

enum  ComponentState {
  BLOCK_CONTINUOUS, BLOCK_PERIODIC, BLOCK_NORMAL, BLOCK_COMPLETED,
  BLOCK_UNKNOWN
}
 In this model, the component has basically two states: wanting to run, and completed (no longer needing to run). More...
 
enum  ComponentType { COMPONENT_ASYNC, COMPONENT_CONFIG, COMPONENT_BEHAVIOR, COMPONENT_SYNC }
 Components can indicate how they want to be handled by their type. More...
 
enum  RunState {
  NO_RUN_STATE = 0, START, STARTING, RUNNABLE,
  SATISFIED, PAUSE, PAUSING, PAUSED,
  RESUME, RESUMING, RESETTING, STOP,
  STOPPING, STOPPED
}
 

Public Member Functions

virtual ~Component ()
 Destructor cleans up readers_ and writers_. More...
 
void registerReader (DataReader *reader)
 
void unregisterReader (DataReader *reader)
 
void registerWriter (DataWriter *writer)
 
void unregisterWriter (DataWriter *writer)
 
void disableMetering (void)
 
FlexArray< DataReader * > & getReaderList (void)
 
FlexArray< DataWriter * > & getWriterList (void)
 
const ModulegetModule ()
 
virtual void initialize ()
 Provide a space for initialization before being run. More...
 
virtual void configure ()
 Read (or re-read!) configuration settings. More...
 
virtual void execute (void)
 
virtual void run ()
 The actual "payload" of the component. More...
 
virtual void uninitialize ()
 Provide a space for uninitialization. More...
 
bool isActive () const
 Indicates if the component is active. More...
 
const CodedStrgetName (void) const
 Returns the name. More...
 
const TimestampgetTimeOfLastRun (void) const
 
ComponentState getState (void)
 Return the component's current state. More...
 
void setState (ComponentState state)
 
RunState getRunState (void)
 Return the component's run state. More...
 
bool isUsingRunState ()
 Return true if using runState. More...
 
void requestData (bool requestingData)
 Tell the component to start (or stop) sending data. More...
 
void requestStart ()
 Tell the component to start runnning. More...
 
void requestPause (const Timespan expectedPauseTime)
 Tell the component to pause runnning. More...
 
void requestResume ()
 Tell the component resume from pause. More...
 
void requestStop ()
 Tell the component to stop runnning. More...
 
virtual RunState start ()
 Do what needs to be done to run Similar to initialize, in old init/run/uninit sequence. More...
 
virtual RunState starting ()
 Might follow a STOP...START sequence Subseqent. More...
 
virtual RunState runnable ()
 Should eventually follow a START request or RESETTING. More...
 
virtual RunState satisfied ()
 Possible return value of a Behavior. More...
 
virtual RunState pause ()
 Pause for a short period (indicated by pauseTime) More...
 
virtual RunState pausing ()
 Might follow a PAUSE request. More...
 
virtual RunState paused ()
 Should eventually follow a PAUSE request: should set continueTime. More...
 
virtual RunState resume ()
 Resume from PAUSE. More...
 
virtual RunState resuming ()
 Might follow a PAUSE...RESUME sequence. More...
 
virtual RunState resetting ()
 Might occur in case of Error. More...
 
virtual RunState stop ()
 Initial state – can be later followed by START. More...
 
virtual RunState stopping ()
 Might follow a STOP request. More...
 
virtual RunState stopped ()
 Should eventually follow a STOP request. More...
 
void setCriticalFailureReported (bool boolVal)
 
void setRecoveringFromCritical (bool boolVal)
 
void setFailureReported (bool boolVal)
 
bool isFailureUninitialized ()
 
void setFailureUninitialized (bool boolVal)
 
void setRetryTimeout (const Timespan &timeout)
 
virtual bool isCompleted (void)
 Query if this component is completed. More...
 
void setPeriod (const Timespan &period)
 Set the period of this component... used if it is periodic. More...
 
const TimespangetPeriod (void)
 Returns the component's period (regardless of whether it is periodic) More...
 
ComponentType getComponentType ()
 Getter function for ComponentType. More...
 
virtual bool isFailed (void) const
 
virtual FailureMode::FailType getFailureType (void) const
 
virtual bool getCriticalFailureReported (void) const
 
virtual bool getFailureReported (void) const
 
virtual Timespan getRetryTimeout (void) const
 
virtual FailureMode::FailType setFailure (FailureMode::FailType failureType)
 
virtual int getFailCount (void) const
 
virtual bool isFailureMissionCritical ()
 
virtual int getAllowableFailures (void) const
 
virtual void setAllowableFailures (int fails)
 
LoggergetLogger (void)
 
virtual int incrementFailCount (void)
 
virtual void resetFailCount (void)
 
virtual int getSkippedRunsSinceFail (void) const
 
virtual int incrementSkippedRunsSinceFail (void)
 
virtual void logVoltage (float voltage, float averageVoltage)
 
virtual void logCurrent (float current, float averageCurrent)
 
const TimestampgetWriteTimestamp (void)
 
void setWriteTimestamp (const Timestamp &writeTimestamp)
 
BlobReadernewBlobReader (const BlobURI &blobURI)
 
BlobReadernewBlobReaderFromUniversal (const Str &componentName, const UniversalBlobURI &blobURI)
 
BlobWriternewBlobWriter (const BlobURI &blobURI, Logger::TimePrecisionType timePrecision=Logger::TIME_PRECISION_MILLIS)
 
ConfigReadernewConfigReader (const ConfigURI &configURI)
 
DataReadernewDataReader (const DataURI &dataURI)
 
DataReadernewDataReaderFromUniversal (const Str &componentName, const UniversalURI &universalURI)
 
DataWriternewDataWriter (const DataURI &dataURI, Logger::TimePrecisionType timePrecision=Logger::TIME_PRECISION_MILLIS)
 
UniversalBlobReadernewUniversalBlobReader (const UniversalBlobURI &universalURI)
 
UniversalBlobWriternewUniversalBlobWriter (const UniversalBlobURI &universalURI, const Unit &accuracyUnit=Units::NONE, const float accuracy=DataElement::NO_ACCURACY, Logger::TimePrecisionType timePrecision=Logger::TIME_PRECISION_MILLIS)
 
UniversalDataReadernewUniversalReader (const UniversalURI &universalURI)
 
UniversalDataWriternewUniversalWriter (const UniversalURI &universalURI, const Unit &accuracyUnit=Units::NONE, const float accuracy=DataElement::NO_ACCURACY, Logger::TimePrecisionType timePrecision=Logger::TIME_PRECISION_MILLIS)
 

Protected Types

enum  ConfigOption { CONFIG_SIMULATE_HARDWARE, CONFIG_POWER, CONFIG_FREQUENCY, CONFIG_LATENCY }
 

Protected Member Functions

virtual ConfigURI getConfigURI (ConfigOption configOption) const
 Should return [myNamespace]::SIMULATE_HARDWARE, or [myNamespace]::POWER, etc. More...
 
virtual ConfigURI getConfigURI (ConfigOption configOption, ElementURI forElement) const
 Should return [myNamespace]::POWER_[forElement], [myNamespace]::LATENCY_[forElement], etc. More...
 
virtual void setDurationOfLastRun (const Timespan &span)
 
virtual void setTimeOfRun (const Timestamp &time)
 
virtual void setTimeOfLastRun (const Timestamp &time)
 
virtual void setDt (const Timespan &dt)
 
virtual bool setEnabled (bool enabled=true)
 
void setRunState (const RunState runState)
 
const Timespan getPauseTime () const
 
virtual void setFailureMissionCritical (bool failureMissionCritical)
 
bool simulateHardware ()
 

Protected Attributes

Logger logger_
 
Syslog::Severity debugLevel_
 
ComponentState state_
 Keep track of whether the component has "completed" or should be run again. More...
 
Timespan desiredPeriod_
 
CodedStrname_
 Store the component's name (used for logging purposes) More...
 
Timestamp timeOfRun_
 
Timestamp timeOfLastRun_
 
Timespan durationOfLastRun_
 
Timespan dt_
 
Timespan retryTimeout_
 
bool enabled_
 
bool failureReported_
 Indicates if the failure has been reported – cuts down on syslog. More...
 
bool criticalFailureReported_
 Indicates if a "Critical" failure has been reported – cuts down on syslog. More...
 
bool recoveringFromCritical_
 Indicates that a component had a previous critical failure that has been cleared temporarily awaiting final word from the component itself. More...
 
bool failureUninitialized_
 Indicates if the failure has resulted in an uninitialize call. More...
 
int failCount_
 Number of failures logged by PCaller. More...
 
bool failureMissionCritical_
 If true (default), complete failure ends mission. More...
 
int allowableFailures_
 Number of failures allowed to occur. More...
 
int skippedRunsSinceFail_
 Number of skipped runs since failureMode_ set by failCount_. More...
 
FailureMode::FailType failureType_
 Failed status. If failCount_ > 0, then this may be reset. More...
 
Timestamp timeOfFailure_
 Time of last failure. Relevant only if failed=true. More...
 
Timestamp writeTimestamp_
 Time of last write. More...
 
FlexArray< DataReader * > readers_
 
FlexArray< DataWriter * > writers_
 
const Modulemodule_
 
Timespan pauseTime_
 
bool meteringEnabled_
 If true, metering is enabled. More...
 
DataWriterdurationOfLastRunWriter_
 Writer for durationOfLastRun. More...
 
DataWritervoltageWriter_
 
DataWriteravgVoltageWriter_
 
DataWritercurrentWriter_
 
DataWriteravgCurrentWriter_
 
bool persistentPause_
 True if data is persistent while component is paused. More...
 

Private Member Functions

 Component (const Component &old)
 
 Component (const Str &name, ComponentType componentType, const Module *module)
 Private constructor for use only by AsynComponent and SyncComponent. More...
 
const TimestampgetTimeOfFailure (void) const
 
virtual void setFailTime (Timestamp t)
 
void segfault ()
 
void segfaultImpl ()
 

Private Attributes

ComponentType componentType_
 This is private, since it should not change. More...
 
RunState runState_
 
ConfigReadersimulateHardwareReader_
 
int simulateHardware_
 
bool startRequested_
 
bool segfaultRequested_
 

Friends

class AsyncComponent
 
class Config
 
class Behavior
 
class ScriptComponent
 
class SyncComponent
 
class ThreadHandler
 
class Handler
 
class CBIT
 
class CommandLine
 

Detailed Description

Abstract Base class for software components.

A Component is a chunk of code that will be run at a set time or interval, or in response to a set of conditions is considered a Component. Components are also capable of reading from and writing to the Slate. Loadable modules (see Module) are made up of a collection of Components.

In most instances, this class should not be extended – hence the private constructor. Instead, one of the SyncComponent daughter classes or the SyncComponent class should be used.

Constructor & Destructor Documentation

Component::~Component ( void  )
virtual

Destructor cleans up readers_ and writers_.

References FlexArrayBase::isEmpty(), FlexArray< T >::pop(), readers_, and writers_.

Component::Component ( const Component old)
private
Component::Component ( const Str name,
ComponentType  componentType,
const Module module 
)
private

Private constructor for use only by AsynComponent and SyncComponent.

Constructor.

Member Function Documentation

virtual void Component::configure ( )
inlinevirtual

Read (or re-read!) configuration settings.

Referenced by Supervisor::configure().

void Component::disableMetering ( void  )
inline

References meteringEnabled_.

virtual int Component::getAllowableFailures ( void  ) const
inlinevirtual
ComponentType Component::getComponentType ( )
inline

Getter function for ComponentType.

References componentType_.

Referenced by ComponentRegistry::Insert().

virtual ConfigURI Component::getConfigURI ( ConfigOption  configOption) const
inlineprotectedvirtual
virtual ConfigURI Component::getConfigURI ( ConfigOption  configOption,
ElementURI  forElement 
) const
inlineprotectedvirtual

Should return [myNamespace]::POWER_[forElement], [myNamespace]::LATENCY_[forElement], etc.

Reimplemented in NAL9602.

References ConfigURI::NO_CONFIG_URI.

virtual bool Component::getCriticalFailureReported ( void  ) const
inlinevirtual
virtual int Component::getFailCount ( void  ) const
inlinevirtual

References failCount_.

Referenced by CBIT::handleComponentFaults().

virtual bool Component::getFailureReported ( void  ) const
inlinevirtual

References failureReported_.

Referenced by CBIT::handleComponentFaults().

virtual FailureMode::FailType Component::getFailureType ( void  ) const
inlinevirtual
const Module* Component::getModule ( )
inline

References module_.

Referenced by Slate::ConfigureNewDataElement().

const Timespan Component::getPauseTime ( ) const
inlineprotected

References pauseTime_.

const Timespan& Component::getPeriod ( void  )
inline

Returns the component's period (regardless of whether it is periodic)

References desiredPeriod_.

Referenced by ComponentRegistry::GetControlThreadPeriod(), and Handler::runBetween().

FlexArray< DataReader * > & Component::getReaderList ( void  )

References readers_.

virtual Timespan Component::getRetryTimeout ( void  ) const
inlinevirtual

References retryTimeout_.

Referenced by CBIT::handleComponentFaults().

RunState Component::getRunState ( void  )
inline

Return the component's run state.

References runState_.

Referenced by PCaller::pCall().

virtual int Component::getSkippedRunsSinceFail ( void  ) const
inlinevirtual

References skippedRunsSinceFail_.

ComponentState Component::getState ( void  )
inline

Return the component's current state.

References state_.

Referenced by Handler::runBetween().

const Timestamp& Component::getTimeOfFailure ( void  ) const
inlineprivate

References timeOfFailure_.

Referenced by CBIT::handleComponentFaults().

const Timestamp& Component::getTimeOfLastRun ( void  ) const
inline
FlexArray< DataWriter * > & Component::getWriterList ( void  )

References writers_.

const Timestamp& Component::getWriteTimestamp ( void  )
inline
virtual int Component::incrementFailCount ( void  )
inlinevirtual

References failCount_.

Referenced by setFailure().

virtual int Component::incrementSkippedRunsSinceFail ( void  )
inlinevirtual

References skippedRunsSinceFail_.

virtual void Component::initialize ( void  )
inlinevirtual

Provide a space for initialization before being run.

Reimplemented in ScriptSyncComponent, DefinedBehavior, ScriptMissionComponent, ScriptAsyncComponent, Tracking, ExternalSim, NavigationSim, ReadDataComponent, MissionManager, DataOverHttps, InternalSim, ControlThread, CBIT, KeepStation, Lane, HFRadarCompactModelForecaster, PitchRateCalculator, HFRCMSurfaceCurrentAtVehicleLocation, HFRCMTimeInterpolator, OffshoreEnvelope, WaterDepthEnvelope, ZigZag, DeadReckonUsingMultipleVelocitySources, CommandLine, HorizontalControl, VerticalControl, DepthRateCalculator, YawRateCalculator, HFRCMReconstructedInterpolator, YoYo, HFRCMVirtualSurfaceDrifter, DepthEnvelope, DepthServo, PitchServo, SpeedControl, HFRadarModelPoint, HFRCMSpaceInterpolator, StratificationFrontDetector, ValueDetect, IBIT, SBIT, LoopControl, HFRadarModelCalc, AltitudeEnvelope, Buoyancy, Navigator, Execute, PrepareToDive, Aggregate, NavChart, Batt_Ocean_Server, PeakDetectHorizontal, PeakDetectVsDepth, Circle, GoToSurface, Point, Wait, Waypoint, NavChartDb, PAR_Licor, Depth_Keller, HFRadarModel, ReinitializeHFRCMVirtualSurfaceDrifter, Pitch, SetSpeed, StopMission, DeadReckonUsingCompactModelForecast, DeadReckonWithRespectToSeafloor, SpeedCalculator, DeadReckonUsingDVLWaterTrack, UniversalFixResidualReporter, AsyncPiEstimator, DropWeight, VerticalTemperatureHomogeneityIndexCalculator, DeadReckonUsingSpeedCalculator, DeadReckonWithRespectToWater, Onboard, TempGradientCalculator, SendDataComponent, SyslogComponent, CalibrateSparton, and Assign.

Referenced by MissionItem::initialize(), and PCaller::PThreadRun().

bool Component::isActive ( ) const

Indicates if the component is active.

Unless runStates are used, will generally return true

References NO_RUN_STATE, PAUSE, PAUSED, PAUSING, persistentPause_, RESETTING, RESUME, RESUMING, RUNNABLE, runState_, SATISFIED, START, STARTING, STOP, STOPPED, and STOPPING.

Referenced by VerticalControl::controlVertical(), and DataElement::isOwnersActive().

virtual bool Component::isCompleted ( void  )
inlinevirtual

Query if this component is completed.

Reimplemented in Behavior.

References BLOCK_COMPLETED, and state_.

Referenced by Handler::continueLoop(), and MissionManager::run().

virtual bool Component::isFailureMissionCritical ( )
inlinevirtual
bool Component::isFailureUninitialized ( )
inline
bool Component::isUsingRunState ( )
inline

Return true if using runState.

References NO_RUN_STATE, and runState_.

Referenced by PCaller::pCall().

void Component::logCurrent ( float  current,
float  averageCurrent 
)
virtual
void Component::logVoltage ( float  voltage,
float  averageVoltage 
)
virtual
ConfigReader * Component::newConfigReader ( const ConfigURI configURI)

References Syslog::CRITICAL, Unit::dataValue(), ElementURI::getBinaryType(), Slate::GetElement(), ElementURI::getUnit(), logger_, Slate::MapDataElement(), ConfigURI::requiresRestart(), ConfigDataElement::setRequiresRestart(), and Logger::syslog().

Referenced by AcousticModem_Benthos_ATM900::AcousticModem_Benthos_ATM900(), AHRS_3DMGX3::AHRS_3DMGX3(), AHRS_sp3003D::AHRS_sp3003D(), AltitudeEnvelope::AltitudeEnvelope(), Batt_Ocean_Server::Batt_Ocean_Server(), BPC1::BPC1(), Buoyancy::Buoyancy(), BuoyancyServo::BuoyancyServo(), CANONSampler::CANONSampler(), CBIT::CBIT(), CTD_NeilBrown::CTD_NeilBrown(), DAT::DAT(), DataOverHttps::DataOverHttps(), DeadReckonUsingCompactModelForecast::DeadReckonUsingCompactModelForecast(), DeadReckonUsingDVLWaterTrack::DeadReckonUsingDVLWaterTrack(), DeadReckonUsingMultipleVelocitySources::DeadReckonUsingMultipleVelocitySources(), DeadReckonUsingSpeedCalculator::DeadReckonUsingSpeedCalculator(), DeadReckonWithRespectToSeafloor::DeadReckonWithRespectToSeafloor(), DeadReckonWithRespectToWater::DeadReckonWithRespectToWater(), Depth_Keller::Depth_Keller(), DepthEnvelope::DepthEnvelope(), DepthServo::DepthServo(), DVL_micro::DVL_micro(), ElevatorServo::ElevatorServo(), ESPComponent::ESPComponent(), ExternalSim::ExternalSim(), GoToSurface::GoToSurface(), HFRadarCompactModelForecaster::HFRadarCompactModelForecaster(), HorizontalControl::HorizontalControl(), IBIT::IBIT(), InternalSim::InternalSim(), SimulatorUtils::LoadInit(), MassServo::MassServo(), NAL9602::NAL9602(), NavChartDb::NavChartDb(), Onboard::Onboard(), PAR_Licor::PAR_Licor(), PitchServo::PitchServo(), PNI_TCM::PNI_TCM(), PrepareToDive::PrepareToDive(), Radio_Surface::Radio_Surface(), Rowe_600::Rowe_600(), Rowe_600LCM::Rowe_600LCM(), RudderServo::RudderServo(), SBIT::SBIT(), SCPI::SCPI(), simulateHardware(), SpeedCalculator::SpeedCalculator(), SpeedControl::SpeedControl(), TempGradientCalculator::TempGradientCalculator(), CommandLine_Test::testParse(), ThrusterServo::ThrusterServo(), Turner_Cyclops_rhodamine::Turner_Cyclops_rhodamine(), UniversalFixResidualReporter::UniversalFixResidualReporter(), VerticalControl::VerticalControl(), VerticalTemperatureHomogeneityIndexCalculator::VerticalTemperatureHomogeneityIndexCalculator(), WetLabsBB2FL::WetLabsBB2FL(), and YoYo::YoYo().

DataWriter * Component::newDataWriter ( const DataURI dataURI,
Logger::TimePrecisionType  timePrecision = Logger::TIME_PRECISION_MILLIS 
)

References ElementURI::getBinaryType(), Slate::GetElement(), ElementURI::getUnit(), and Slate::NewDataElement().

Referenced by Aanderaa_O2::Aanderaa_O2(), AcousticModem_Benthos_ATM900::AcousticModem_Benthos_ATM900(), AHRS_3DMGX3::AHRS_3DMGX3(), AHRS_sp3003D::AHRS_sp3003D(), AltitudeEnvelope::AltitudeEnvelope(), Buoyancy::Buoyancy(), CANONSampler::CANONSampler(), CBIT::CBIT(), Circle::Circle(), CTD_NeilBrown::CTD_NeilBrown(), DAT::DAT(), DeadReckonUsingCompactModelForecast::DeadReckonUsingCompactModelForecast(), DeadReckonUsingDVLWaterTrack::DeadReckonUsingDVLWaterTrack(), DeadReckonUsingMultipleVelocitySources::DeadReckonUsingMultipleVelocitySources(), DeadReckonUsingSpeedCalculator::DeadReckonUsingSpeedCalculator(), DeadReckonWithRespectToSeafloor::DeadReckonWithRespectToSeafloor(), DeadReckonWithRespectToWater::DeadReckonWithRespectToWater(), DepthEnvelope::DepthEnvelope(), DepthServo::DepthServo(), DropWeight::DropWeight(), DVL_micro::DVL_micro(), ESPComponent::ESPComponent(), ExternalSim::ExternalSim(), GoToSurface::GoToSurface(), HFRadarModelPoint::HFRadarModelPoint(), HFRCMVirtualSurfaceDrifter::HFRCMVirtualSurfaceDrifter(), HorizontalControl::HorizontalControl(), IBIT::IBIT(), ISUS::ISUS(), KeepStation::KeepStation(), Lane::Lane(), NAL9602::NAL9602(), NavChartDb::NavChartDb(), OffshoreEnvelope::OffshoreEnvelope(), Onboard::Onboard(), PAR_Licor::PAR_Licor(), Pitch::Pitch(), PitchServo::PitchServo(), PNI_TCM::PNI_TCM(), Point::Point(), PrepareToDive::PrepareToDive(), Radio_Surface::Radio_Surface(), Rowe_600::Rowe_600(), Rowe_600LCM::Rowe_600LCM(), SBIT::SBIT(), SCPI::SCPI(), SetSpeed::SetSpeed(), SpeedControl::SpeedControl(), TempGradientCalculator::TempGradientCalculator(), Tracking::Tracking(), Turbulence_NPS::Turbulence_NPS(), Turner_Cyclops_rhodamine::Turner_Cyclops_rhodamine(), VemcoVR2C::VemcoVR2C(), VerticalControl::VerticalControl(), VerticalTemperatureHomogeneityIndexCalculator::VerticalTemperatureHomogeneityIndexCalculator(), WaterDepthEnvelope::WaterDepthEnvelope(), Waypoint::Waypoint(), WetLabsBB2FL::WetLabsBB2FL(), YoYo::YoYo(), and ZigZag::ZigZag().

UniversalDataReader * Component::newUniversalReader ( const UniversalURI universalURI)

References ElementURI::getBinaryType(), ElementURI::getUnit(), and Slate::NewUniversalElement().

Referenced by AHRS_3DMGX3::AHRS_3DMGX3(), AHRS_sp3003D::AHRS_sp3003D(), AltitudeEnvelope::AltitudeEnvelope(), Buoyancy::Buoyancy(), BuoyancyServo::BuoyancyServo(), CBIT::CBIT(), Circle::Circle(), CommandLine::CommandLine(), CTD_NeilBrown::CTD_NeilBrown(), DeadReckonUsingCompactModelForecast::DeadReckonUsingCompactModelForecast(), DeadReckonWithRespectToWater::DeadReckonWithRespectToWater(), Depth_Keller::Depth_Keller(), DepthEnvelope::DepthEnvelope(), DepthRateCalculator::DepthRateCalculator(), DVL_micro::DVL_micro(), ExternalSim::ExternalSim(), GoToSurface::GoToSurface(), HFRadarCompactModelForecaster::HFRadarCompactModelForecaster(), HFRadarModelPoint::HFRadarModelPoint(), HorizontalControl::HorizontalControl(), IBIT::IBIT(), PeakDetectHorizontal::initialize(), ValueDetect::initialize(), InternalSim::InternalSim(), ISUS::ISUS(), KeepStation::KeepStation(), Lane::Lane(), NAL9602::NAL9602(), NavChart::NavChart(), NavigationSim::NavigationSim(), Navigator::Navigator(), OffshoreEnvelope::OffshoreEnvelope(), PAR_Licor::PAR_Licor(), PeakDetectHorizontal::PeakDetectHorizontal(), PeakDetectVsDepth::PeakDetectVsDepth(), Pitch::Pitch(), PitchRateCalculator::PitchRateCalculator(), PitchServo::PitchServo(), PNI_TCM::PNI_TCM(), Point::Point(), PrepareToDive::PrepareToDive(), Radio_Surface::Radio_Surface(), SBIT::SBIT(), SetSpeed::SetSpeed(), SpeedCalculator::SpeedCalculator(), SpeedControl::SpeedControl(), TempGradientCalculator::TempGradientCalculator(), Tracking::Tracking(), UniversalFixResidualReporter::UniversalFixResidualReporter(), VerticalControl::VerticalControl(), VerticalTemperatureHomogeneityIndexCalculator::VerticalTemperatureHomogeneityIndexCalculator(), WaterDepthEnvelope::WaterDepthEnvelope(), Waypoint::Waypoint(), WetLabsBB2FL::WetLabsBB2FL(), YawRateCalculator::YawRateCalculator(), and YoYo::YoYo().

UniversalDataWriter * Component::newUniversalWriter ( const UniversalURI universalURI,
const Unit accuracyUnit = Units::NONE,
const float  accuracy = DataElement::NO_ACCURACY,
Logger::TimePrecisionType  timePrecision = Logger::TIME_PRECISION_MILLIS 
)

References UniversalDataElement::addElement(), ElementURI::getBinaryType(), getName(), ElementURI::getUnit(), Slate::NewDataElement(), Slate::NewUniversalElement(), DataElement::NO_ACCURACY, UniversalDataElement::notifyChangeDone(), and DataElement::registerUniversal().

Referenced by Aanderaa_O2::Aanderaa_O2(), AcousticModem_Benthos_ATM900::AcousticModem_Benthos_ATM900(), AHRS_3DMGX3::AHRS_3DMGX3(), AHRS_sp3003D::AHRS_sp3003D(), Batt_Ocean_Server::Batt_Ocean_Server(), BPC1::BPC1(), BuoyancyServo::BuoyancyServo(), CBIT::CBIT(), CommandLine::CommandLine(), CTD_NeilBrown::CTD_NeilBrown(), CycleStarter::CycleStarter(), DAT::DAT(), DataOverHttps::DataOverHttps(), Depth_Keller::Depth_Keller(), DepthRateCalculator::DepthRateCalculator(), DVL_micro::DVL_micro(), ElevatorServo::ElevatorServo(), HFRCMSurfaceCurrentAtVehicleLocation::HFRCMSurfaceCurrentAtVehicleLocation(), InternalSim::InternalSim(), ISUS::ISUS(), LogSplitterComponent::LogSplitterComponent(), MassServo::MassServo(), MissionManager::MissionManager(), NAL9602::NAL9602(), NavChart::NavChart(), NavigationSim::NavigationSim(), Navigator::Navigator(), Onboard::Onboard(), PAR_Licor::PAR_Licor(), PitchRateCalculator::PitchRateCalculator(), PNI_TCM::PNI_TCM(), Rowe_600::Rowe_600(), Rowe_600LCM::Rowe_600LCM(), RudderServo::RudderServo(), SpeedCalculator::SpeedCalculator(), TempGradientCalculator::TempGradientCalculator(), OffshoreEnvelope_Test::testRun(), ThrusterServo::ThrusterServo(), Turner_Cyclops_rhodamine::Turner_Cyclops_rhodamine(), WetLabsBB2FL::WetLabsBB2FL(), and YawRateCalculator::YawRateCalculator().

virtual RunState Component::paused ( )
inlinevirtual
virtual RunState Component::pausing ( )
inlinevirtual

Might follow a PAUSE request.

Reimplemented in BPC1.

References PAUSED.

Referenced by execute().

void Component::registerReader ( DataReader reader)

References FlexArray< T >::push(), and readers_.

Referenced by DataReader::DataReader().

void Component::registerWriter ( DataWriter writer)

References FlexArray< T >::push(), and writers_.

Referenced by DataWriter::DataWriter().

void Component::requestData ( bool  requestingData)

Tell the component to start (or stop) sending data.

References FlexArrayBase::getMaxIndex(), and writers_.

Referenced by ReadDataComponent::requestData().

void Component::requestPause ( const Timespan  expectedPauseTime)
void Component::requestResume ( )

Tell the component resume from pause.

References NO_RUN_STATE, PAUSE, PAUSED, PAUSING, RESETTING, RESUME, RESUMING, RUNNABLE, runState_, SATISFIED, setRunState(), START, STARTING, STOP, STOPPED, and STOPPING.

void Component::requestStart ( )

Tell the component to start runnning.

References NO_RUN_STATE, PAUSE, PAUSED, PAUSING, RESETTING, RESUME, RESUMING, RUNNABLE, runState_, SATISFIED, setRunState(), START, STARTING, startRequested_, STOP, STOPPED, and STOPPING.

Referenced by PCaller::pCall().

void Component::requestStop ( )

Tell the component to stop runnning.

References NO_RUN_STATE, PAUSE, PAUSED, PAUSING, RESETTING, RESUME, RESUMING, RUNNABLE, runState_, SATISFIED, setRunState(), START, STARTING, STOP, STOPPED, and STOPPING.

Referenced by PCaller::pCall().

virtual void Component::run ( void  )
inlinevirtual

The actual "payload" of the component.

Reimplemented in ScriptSyncComponent, DefinedBehavior, ScriptMissionComponent, ScriptAsyncComponent, NAL9602, Maintainer::MaintainItem, Aggregate, Tracking, DepthServo, Lane, ReadDataComponent, OffshoreEnvelope, WaterDepthEnvelope, ExternalSim, NavigationSim, ZigZag, Reporter, BPC1, InternalSim, YoYo, ControlThread, CBIT, KeepStation, ValueDetect, DepthRateCalculator, HFRadarCompactModelForecaster, Pitch, HFRCMVirtualSurfaceDrifter, Circle, PrepareToDive, DataOverHttps, PeakDetectHorizontal, PeakDetectVsDepth, PitchRateCalculator, HFRadarModelPoint, HFRCMSurfaceCurrentAtVehicleLocation, HFRCMTimeInterpolator, GoToSurface, Point, Waypoint, MissionManager, HorizontalControl, YawRateCalculator, HFRCMReconstructedInterpolator, SetSpeed, CommandLine, VerticalControl, DepthEnvelope, PitchServo, NavChart, DVL_micro, HFRCMSpaceInterpolator, StratificationFrontDetector, AHRS_sp3003D, IBIT, SBIT, LoopControl, SpeedControl, HFRadarModelCalc, ReinitializeHFRCMVirtualSurfaceDrifter, AltitudeEnvelope, Buoyancy, Navigator, CTD_NeilBrown, Execute, Config, AHRS_3DMGX3, Batt_Ocean_Server, PNI_TCM, ThrusterServo, Wait, ESPComponent, Turbulence_NPS, DAT, HFRadarModel, StopMission, NavChartDb, DeadReckoner, WetLabsBB2FL, LogEngineComponent, PAR_Licor, AcousticModem_Benthos_ATM900, Depth_Keller, Aanderaa_O2, CANONSampler, ISUS, Turner_Cyclops_rhodamine, VemcoVR2C, BuoyancyServo, RudderServo, SpeedCalculator, AsyncPiEstimator, DropWeight, Radio_Surface, ElevatorServo, MassServo, VerticalTemperatureHomogeneityIndexCalculator, LogSplitterComponent, UniversalFixResidualReporter, SCPI, TempGradientCalculator, Onboard, CalibrateSparton, SendDataComponent, SyslogComponent, TestAsyncComponent, Assign, and CycleStarter.

Referenced by execute(), and Behavior::runIfUnsatisfied().

void Component::segfault ( )
inlineprivate
void Component::segfaultImpl ( )
private
void Component::setCriticalFailureReported ( bool  boolVal)
inline
void Component::setDt ( const Timespan dt)
protectedvirtual

References dt, and dt_.

Referenced by execute(), and Behavior::executeIfUnsatisfied().

void Component::setDurationOfLastRun ( const Timespan span)
protectedvirtual
virtual bool Component::setEnabled ( bool  enabled = true)
inlineprotectedvirtual

References enabled_.

Referenced by CommandLine::commandQuit(), and Handler::shutdown().

virtual void Component::setFailTime ( Timestamp  t)
inlineprivatevirtual
FailureMode::FailType Component::setFailure ( FailureMode::FailType  failureType)
virtual

References Syslog::ERROR, failCount_, failureReported_, failureType_, incrementFailCount(), Logger::logComponentFailure(), logger_, FailureMode::NONE, Timestamp::Now(), DataWriter::registerChange(), FlexArrayBase::size(), skippedRunsSinceFail_, Logger::syslog(), timeOfFailure_, FailureMode::ToString(), and writers_.

Referenced by EZServoServo::checkResponse(), NAL9602::cmdMode(), CommandLine::commandFailComponent(), PCaller::DefaultSignalHandler(), ESPComponent::getLine(), NAL9602::getMTQueueSignalStrength(), NAL9602::getReceivedSignalStrength(), CBIT::handleComponentFaults(), Batt_Ocean_Server::initialize(), CBIT::initialize(), DVL_micro::logVoltageAndCurrent(), CANONSampler::logVoltageAndCurrent(), VemcoVR2C::logVoltageAndCurrent(), ISUS::logVoltageAndCurrent(), AcousticModem_Benthos_ATM900::logVoltageAndCurrent(), DAT::logVoltageAndCurrent(), NAL9602::needFix(), DAT::parseResponses(), ElevatorServo::pause(), MassServo::pause(), BuoyancyServo::pause(), Aanderaa_O2::pause(), RudderServo::pause(), DVL_micro::pause(), Turbulence_NPS::pause(), AHRS_3DMGX3::pause(), ThrusterServo::pause(), PNI_TCM::pause(), CTD_NeilBrown::pause(), AHRS_sp3003D::pause(), ElevatorServo::paused(), MassServo::paused(), BuoyancyServo::paused(), RudderServo::paused(), NAL9602::paused(), BPC1::pausing(), ESPComponent::powerDownESP(), ESPComponent::powerUpESP(), AcousticModem_Benthos_ATM900::readAndParseResponses(), DAT::readAndParseResponses(), Rowe_600::readEnsemble(), DVL_micro::readNQ1(), Navigator::readVehicleOrientation(), Turbulence_NPS::receive(), CTD_NeilBrown::receive(), DVL_micro::resume(), BuoyancyServo::resume(), Turbulence_NPS::resume(), AHRS_3DMGX3::resume(), ThrusterServo::resume(), PNI_TCM::resume(), CTD_NeilBrown::resume(), AHRS_sp3003D::resume(), MassServo::resuming(), DropWeight::run(), Depth_Keller::run(), PAR_Licor::run(), Batt_Ocean_Server::run(), HFRadarModelPoint::run(), InternalSim::run(), PrepareToDive::runIfUnsatisfied(), DVL_micro::runnable(), SCPI::runnable(), ElevatorServo::runnable(), MassServo::runnable(), BuoyancyServo::runnable(), ISUS::runnable(), Aanderaa_O2::runnable(), RudderServo::runnable(), Turner_Cyclops_rhodamine::runnable(), VemcoVR2C::runnable(), CANONSampler::runnable(), Radio_Surface::runnable(), WetLabsBB2FL::runnable(), ESPComponent::runnable(), PNI_TCM::runnable(), AHRS_3DMGX3::runnable(), ThrusterServo::runnable(), CTD_NeilBrown::runnable(), AHRS_sp3003D::runnable(), Rowe_600LCM::runnable(), BPC1::runnable(), Rowe_600::runnable(), NAL9602::runnable(), ESPComponent::scanEspServerPort(), NAL9602::sendingVerify(), NAL9602::sessionMTQueueVerify(), SCPI::start(), MassServo::start(), ElevatorServo::start(), Aanderaa_O2::start(), BuoyancyServo::start(), ISUS::start(), Turner_Cyclops_rhodamine::start(), CANONSampler::start(), VemcoVR2C::start(), RudderServo::start(), Radio_Surface::start(), AcousticModem_Benthos_ATM900::start(), WetLabsBB2FL::start(), DAT::start(), Turbulence_NPS::start(), ESPComponent::start(), AHRS_3DMGX3::start(), ThrusterServo::start(), DVL_micro::start(), PNI_TCM::start(), CTD_NeilBrown::start(), AHRS_sp3003D::start(), Rowe_600LCM::start(), BPC1::start(), Rowe_600::start(), NAL9602::start(), SCPI::starting(), ElevatorServo::starting(), MassServo::starting(), BuoyancyServo::starting(), RudderServo::starting(), ISUS::starting(), Aanderaa_O2::starting(), AcousticModem_Benthos_ATM900::starting(), WetLabsBB2FL::starting(), DVL_micro::starting(), DAT::starting(), ESPComponent::starting(), AHRS_3DMGX3::starting(), PNI_TCM::starting(), ThrusterServo::starting(), AHRS_sp3003D::starting(), Rowe_600LCM::starting(), BPC1::starting(), ESPComponent::startPPP(), SCPI::stop(), VemcoVR2C::stop(), CANONSampler::stop(), ISUS::stop(), Turner_Cyclops_rhodamine::stop(), Radio_Surface::stop(), Rowe_600::stop(), DVL_micro::stopping(), SCPI::stopping(), ElevatorServo::stopping(), MassServo::stopping(), BuoyancyServo::stopping(), CANONSampler::stopping(), ISUS::stopping(), Aanderaa_O2::stopping(), Turner_Cyclops_rhodamine::stopping(), VemcoVR2C::stopping(), RudderServo::stopping(), Radio_Surface::stopping(), AcousticModem_Benthos_ATM900::stopping(), WetLabsBB2FL::stopping(), ESPComponent::stopping(), DAT::stopping(), Turbulence_NPS::stopping(), PNI_TCM::stopping(), ThrusterServo::stopping(), AHRS_3DMGX3::stopping(), CTD_NeilBrown::stopping(), AHRS_sp3003D::stopping(), Rowe_600LCM::stopping(), Rowe_600::stopping(), NAL9602::stopping(), ESPComponent::stopPPP(), DataOverHttps::tcpConnect(), DVL_micro::uninitialize(), Aanderaa_O2::uninitialize(), VemcoVR2C::uninitialize(), CANONSampler::uninitialize(), ISUS::uninitialize(), MassServo::uninitialize(), ElevatorServo::uninitialize(), BuoyancyServo::uninitialize(), AcousticModem_Benthos_ATM900::uninitialize(), RudderServo::uninitialize(), WetLabsBB2FL::uninitialize(), Turbulence_NPS::uninitialize(), ESPComponent::uninitialize(), DAT::uninitialize(), AHRS_3DMGX3::uninitialize(), PNI_TCM::uninitialize(), CTD_NeilBrown::uninitialize(), ThrusterServo::uninitialize(), AHRS_sp3003D::uninitialize(), Rowe_600LCM::uninitialize(), Rowe_600::uninitialize(), ESPComponent::waitForESPConnection(), MassServo::waitForHoming(), and Navigator::writeVehiclePosition().

void Component::setFailureReported ( bool  boolVal)
inline

References failureReported_.

Referenced by CBIT::handleComponentFaults().

void Component::setFailureUninitialized ( bool  boolVal)
inline

References failureUninitialized_.

Referenced by PCaller::pCall().

void Component::setPeriod ( const Timespan period)
inline
void Component::setRecoveringFromCritical ( bool  boolVal)
inline
void Component::setTimeOfLastRun ( const Timestamp time)
protectedvirtual
virtual void Component::setTimeOfRun ( const Timestamp time)
inlineprotectedvirtual
void Component::setWriteTimestamp ( const Timestamp writeTimestamp)
inline
bool Component::simulateHardware ( )
protected

References Units::BOOL, CONFIG_SIMULATE_HARDWARE, getConfigURI(), newConfigReader(), ConfigURI::NO_CONFIG_URI, DataReader::read(), simulateHardware_, and simulateHardwareReader_.

Referenced by Rowe_600::appendEnsembleToFile(), CBIT::assertVitals(), CBIT::checkBackplanePower(), CBIT::checkLeak(), CBIT::checkMainBattery(), NAL9602::clearMOBuffer(), NAL9602::cmdMode(), CTD_NeilBrown::CTD_NeilBrown(), DVL_micro::endPing(), ESPComponent::ESPComponent(), NAL9602::fillBuffer(), AHRS_sp3003D::getCompassHdg(), NAL9602::getFix(), NAL9602::getMTQueueSignalStrength(), AHRS_sp3003D::getPitchRoll(), NAL9602::getReceivedSignalStrength(), AHRS_sp3003D::getTrueHdg(), CTD_NeilBrown::go(), BuoyancyServo::initBuoyancy(), ElevatorServo::initElevator(), Depth_Keller::initialize(), SBIT::initialize(), CBIT::initialize(), EZServoServo::initializeStart(), NAL9602::initiateSession(), MassServo::initMass(), RudderServo::initRudder(), ThrusterServo::initThruster(), CBIT::monitorCFCard(), CBIT::monitorShorePower(), NAL9602::needFix(), NAL9602::needGSV(), NAL9602::parseGSV(), DVL_micro::pause(), Aanderaa_O2::pause(), Turbulence_NPS::pause(), ThrusterServo::pause(), PNI_TCM::pause(), AHRS_3DMGX3::pause(), CTD_NeilBrown::pause(), AHRS_sp3003D::pause(), BPC1::pause(), Rowe_600::pause(), NAL9602::paused(), BPC1::pausing(), CTD_NeilBrown::preprocessData(), Rowe_600::processEnsemble(), AHRS_sp3003D::readAccelVec(), AHRS_sp3003D::readAccelVecBin(), Rowe_600::readAncillaryDataMatrix(), Rowe_600::readBottomTrackMatrix(), Rowe_600::readEnsembleDataMatrix(), AHRS_sp3003D::readMagnetics(), AHRS_sp3003D::readMagneticsBin(), Rowe_600::readMATv4float32(), AHRS_sp3003D::readTransducers(), Turbulence_NPS::receive(), CTD_NeilBrown::receive(), PNI_TCM::receiveGetDataResp(), AHRS_sp3003D::receiveHeadingMagBin(), AHRS_sp3003D::receivePitchRollBin(), AHRS_sp3003D::receiveTransducers(), NAL9602::receiving1(), NAL9602::requestFix(), NAL9602::requestGSV(), AHRS_sp3003D::requestHeadingMagBin(), AHRS_sp3003D::requestPitchRollBin(), AcousticModem_Benthos_ATM900::requestRange(), DAT::requestRange(), AHRS_sp3003D::requestTransducers(), DVL_micro::resume(), ElevatorServo::resume(), MassServo::resume(), BuoyancyServo::resume(), RudderServo::resume(), AcousticModem_Benthos_ATM900::resume(), DAT::resume(), Turbulence_NPS::resume(), ThrusterServo::resume(), AHRS_3DMGX3::resume(), PNI_TCM::resume(), CTD_NeilBrown::resume(), AHRS_sp3003D::resume(), BPC1::resume(), Rowe_600::resume(), MassServo::resuming(), AcousticModem_Benthos_ATM900::resuming(), DAT::resuming(), PNI_TCM::resuming(), Rowe_600::resuming(), NAL9602::retrieveAndQueueIncoming(), Rowe_600::Rowe_600(), Rowe_600LCM::Rowe_600LCM(), Onboard::run(), DropWeight::run(), Depth_Keller::run(), PAR_Licor::run(), DVL_micro::runnable(), SCPI::runnable(), ElevatorServo::runnable(), MassServo::runnable(), VemcoVR2C::runnable(), Turner_Cyclops_rhodamine::runnable(), CANONSampler::runnable(), ISUS::runnable(), Aanderaa_O2::runnable(), BuoyancyServo::runnable(), RudderServo::runnable(), AcousticModem_Benthos_ATM900::runnable(), Radio_Surface::runnable(), WetLabsBB2FL::runnable(), DAT::runnable(), ESPComponent::runnable(), ThrusterServo::runnable(), AHRS_3DMGX3::runnable(), PNI_TCM::runnable(), CTD_NeilBrown::runnable(), AHRS_sp3003D::runnable(), Rowe_600LCM::runnable(), BPC1::runnable(), Rowe_600::runnable(), NAL9602::runnable(), CBIT::scanGFChan(), NAL9602::sendingFillBuffer(), NAL9602::sendingTransmit(), NAL9602::sendingVerify(), NAL9602::sessionMTQueueVerify(), AHRS_sp3003D::setCalMode(), SCPI::start(), ElevatorServo::start(), MassServo::start(), RudderServo::start(), CANONSampler::start(), ISUS::start(), Aanderaa_O2::start(), BuoyancyServo::start(), Turner_Cyclops_rhodamine::start(), VemcoVR2C::start(), AcousticModem_Benthos_ATM900::start(), Radio_Surface::start(), WetLabsBB2FL::start(), ESPComponent::start(), Turbulence_NPS::start(), DAT::start(), DVL_micro::start(), AHRS_3DMGX3::start(), PNI_TCM::start(), ThrusterServo::start(), CTD_NeilBrown::start(), AHRS_sp3003D::start(), Rowe_600LCM::start(), BPC1::start(), Rowe_600::start(), NAL9602::start(), SCPI::starting(), ElevatorServo::starting(), MassServo::starting(), VemcoVR2C::starting(), CANONSampler::starting(), ISUS::starting(), BuoyancyServo::starting(), Aanderaa_O2::starting(), RudderServo::starting(), AcousticModem_Benthos_ATM900::starting(), Radio_Surface::starting(), DVL_micro::starting(), WetLabsBB2FL::starting(), DAT::starting(), ESPComponent::starting(), ThrusterServo::starting(), AHRS_3DMGX3::starting(), PNI_TCM::starting(), AHRS_sp3003D::starting(), Rowe_600LCM::starting(), BPC1::starting(), Rowe_600::starting(), NAL9602::starting(), DVL_micro::startPing(), SCPI::stop(), MassServo::stop(), ElevatorServo::stop(), VemcoVR2C::stop(), Aanderaa_O2::stop(), RudderServo::stop(), CANONSampler::stop(), ISUS::stop(), BuoyancyServo::stop(), Turner_Cyclops_rhodamine::stop(), Radio_Surface::stop(), WetLabsBB2FL::stop(), ESPComponent::stop(), Turbulence_NPS::stop(), ThrusterServo::stop(), CTD_NeilBrown::stop(), Rowe_600::stop(), DVL_micro::stopped(), AcousticModem_Benthos_ATM900::stopped(), WetLabsBB2FL::stopped(), DAT::stopped(), Turbulence_NPS::stopped(), AHRS_3DMGX3::stopped(), PNI_TCM::stopped(), CTD_NeilBrown::stopped(), AHRS_sp3003D::stopped(), BPC1::stopped(), NAL9602::stopped(), DVL_micro::stopping(), SCPI::stopping(), ElevatorServo::stopping(), MassServo::stopping(), RudderServo::stopping(), Turner_Cyclops_rhodamine::stopping(), ISUS::stopping(), CANONSampler::stopping(), Aanderaa_O2::stopping(), BuoyancyServo::stopping(), VemcoVR2C::stopping(), AcousticModem_Benthos_ATM900::stopping(), Radio_Surface::stopping(), WetLabsBB2FL::stopping(), ESPComponent::stopping(), Turbulence_NPS::stopping(), DAT::stopping(), ThrusterServo::stopping(), AHRS_3DMGX3::stopping(), PNI_TCM::stopping(), CTD_NeilBrown::stopping(), AHRS_sp3003D::stopping(), Rowe_600LCM::stopping(), BPC1::stopping(), Rowe_600::stopping(), NAL9602::stopping(), AHRS_sp3003D::tryUartComms(), Turbulence_NPS::Turbulence_NPS(), CBIT::uninitialize(), DVL_micro::uninitialize(), ElevatorServo::uninitialize(), MassServo::uninitialize(), VemcoVR2C::uninitialize(), Aanderaa_O2::uninitialize(), CANONSampler::uninitialize(), ISUS::uninitialize(), RudderServo::uninitialize(), AcousticModem_Benthos_ATM900::uninitialize(), BuoyancyServo::uninitialize(), WetLabsBB2FL::uninitialize(), DAT::uninitialize(), Turbulence_NPS::uninitialize(), ESPComponent::uninitialize(), PNI_TCM::uninitialize(), AHRS_3DMGX3::uninitialize(), CTD_NeilBrown::uninitialize(), ThrusterServo::uninitialize(), AHRS_sp3003D::uninitialize(), Rowe_600LCM::uninitialize(), BPC1::uninitialize(), Rowe_600::uninitialize(), NAL9602::uninitialize(), NAL9602::verifySessionXmit(), MassServo::waitForHoming(), and NAL9602::waking().

virtual RunState Component::start ( )
inlinevirtual
virtual RunState Component::starting ( )
inlinevirtual

Might follow a STOP...START sequence Subseqent.

Similar to initialize, in old init/run/uninit sequence

Reimplemented in NAL9602, Rowe_600, BPC1, Rowe_600LCM, AHRS_sp3003D, CTD_NeilBrown, AHRS_3DMGX3, PNI_TCM, ThrusterServo, ESPComponent, Turbulence_NPS, DAT, WetLabsBB2FL, DVL_micro, AcousticModem_Benthos_ATM900, Radio_Surface, Aanderaa_O2, CANONSampler, ISUS, Turner_Cyclops_rhodamine, VemcoVR2C, BuoyancyServo, RudderServo, ElevatorServo, MassServo, and SCPI.

References RUNNABLE.

Referenced by execute().

void Component::unregisterReader ( DataReader reader)
void Component::unregisterWriter ( DataWriter writer)

Friends And Related Function Documentation

friend class AsyncComponent
friend
friend class Behavior
friend
friend class CBIT
friend
friend class CommandLine
friend
friend class Config
friend
friend class Handler
friend
friend class ScriptComponent
friend
friend class SyncComponent
friend
friend class ThreadHandler
friend

Member Data Documentation

int Component::allowableFailures_
protected

Number of failures allowed to occur.

Referenced by getAllowableFailures(), and setAllowableFailures().

DataWriter* Component::avgCurrentWriter_
protected

Referenced by logCurrent().

DataWriter* Component::avgVoltageWriter_
protected

Referenced by logVoltage().

ComponentType Component::componentType_
private

This is private, since it should not change.

Referenced by getComponentType().

bool Component::criticalFailureReported_
protected

Indicates if a "Critical" failure has been reported – cuts down on syslog.

Referenced by getCriticalFailureReported(), resetFailCount(), and setCriticalFailureReported().

DataWriter* Component::currentWriter_
protected

Referenced by logCurrent().

Syslog::Severity Component::debugLevel_
protected
Timespan Component::desiredPeriod_
protected

Referenced by getPeriod(), and setPeriod().

Timespan Component::durationOfLastRun_
protected

Referenced by setDurationOfLastRun().

DataWriter* Component::durationOfLastRunWriter_
protected

Writer for durationOfLastRun.

Referenced by setDurationOfLastRun().

int Component::failCount_
protected

Number of failures logged by PCaller.

Referenced by getFailCount(), incrementFailCount(), resetFailCount(), and setFailure().

bool Component::failureMissionCritical_
protected

If true (default), complete failure ends mission.

Referenced by isFailureMissionCritical().

bool Component::failureReported_
protected

Indicates if the failure has been reported – cuts down on syslog.

Referenced by getFailureReported(), setFailure(), and setFailureReported().

FailureMode::FailType Component::failureType_
protected

Failed status. If failCount_ > 0, then this may be reset.

Referenced by getFailureType(), isFailed(), and setFailure().

bool Component::failureUninitialized_
protected

Indicates if the failure has resulted in an uninitialize call.

Referenced by isFailureUninitialized(), and setFailureUninitialized().

Logger Component::logger_
protected

Referenced by Aanderaa_O2::Aanderaa_O2(), NavChartDb::addEncData(), VerticalTemperatureHomogeneityIndexCalculator::addSample(), AltitudeEnvelope::AltitudeEnvelope(), Rowe_600::appendEnsembleToFile(), NavChartDb::appendToContour(), NavChartDb::appendToCoverage(), NavChartDb::appendToSoundings(), CBIT::assertVitals(), AsyncPiEstimator::AsyncPiEstimator(), NAL9602::awake(), Buoyancy::Buoyancy(), GoToSurface::calcSatisfied(), Buoyancy::calcSatisfied(), VerticalTemperatureHomogeneityIndexCalculator::calculate(), CalibrateSparton::CalibrateSparton(), CBIT::CBIT(), NAL9602::char2Hemisphere(), CBIT::checkBackplanePower(), Batt_Ocean_Server::checkBatt(), BPC1::checkBatt(), CBIT::checkDepth(), CBIT::checkLeak(), CBIT::checkLocation(), CBIT::checkMainBattery(), GoToSurface::checkPitchAndAltitude(), EZServoServo::checkResponse(), Circle::Circle(), AcousticModem_Benthos_ATM900::clearUserPrompt(), DAT::clearUserPrompt(), NAL9602::cmdMode(), CommandLine::commandBang(), CommandLine::commandBurn(), CommandLine::commandConfigSet(), CommandLine::commandConversation(), CommandLine::commandDo(), CommandLine::commandFailComponent(), CommandLine::commandFailVariable(), CommandLine::commandGet(), CommandLine::commandLoad(), CommandLine::commandMaintainAdd(), CommandLine::commandMaintainInvalid(), CommandLine::commandMaintainRemove(), CommandLine::commandMaintainUnavailable(), CommandLine::commandQuick(), CommandLine::commandReportAdd(), CommandLine::commandReportRemove(), CommandLine::commandRestartHardware(), CommandLine::commandRestartSystem(), CommandLine::commandResume(), CommandLine::commandRetransmit(), CommandLine::commandRun(), CommandLine::commandSchedule(), CommandLine::commandSet(), CommandLine::commandShowBest(), CommandLine::commandShowComponent(), CommandLine::commandShowStack(), CommandLine::commandShowState(), CommandLine::commandShowVariable(), HorizontalControl::controlHeading(), VerticalControl::controlVertical(), NavChartDb::createContour(), ESPComponent::createESPClient(), ESPComponent::createESPComm(), NavChartDb::createSoundings(), IBIT::ctrlSurfaceCheckPos(), SBIT::ctrlSurfaceCheckPos(), DataOverHttps::dataRead(), DataOverHttps::dataWrite(), DataOverHttps::dataWriting(), DepthEnvelope::DepthEnvelope(), DepthServo::DepthServo(), NavChartDb::doIndexing(), CommandLine::DoScheduled(), CommandLine::DoScheduleList(), CommandLine::DoSchedulePause(), CommandLine::DoScheduleResume(), CBIT::empiricalFaultClassification(), DVL_micro::endPing(), ESPComponent::ESPComponent(), ESPComponent::espReady(), CommandLine::execLine(), Execute::Execute(), NAL9602::fillBuffer(), HFRadarCompactModelForecaster::forecast(), AHRS_sp3003D::getCompassHdg(), NAL9602::getFix(), ESPComponent::getLine(), CommandLine::getLines(), getLogger(), HFRCMSpaceInterpolator::getLowerLeftCorner(), HFRCMReconstructedInterpolator::getLowerLeftCorner(), PNI_TCM::getMagneticVariation(), NAL9602::getMTQueueSignalStrength(), AHRS_sp3003D::getPitchRoll(), EZServoServo::getPosition(), HFRCMReconstructedInterpolator::getPreviousTimeIndex(), NAL9602::getReceivedSignalStrength(), CANONSampler::getSimulatedData(), AHRS_sp3003D::getTrueHdg(), EZServoServo::getVelocityCmd(), NAL9602::goodGGAFixIndicator(), NAL9602::goodRMCFixIndicator(), AcousticModem_Benthos_ATM900::gotNewQuery(), DAT::gotNewQuery(), NAL9602::goToSleep(), GoToSurface::GoToSurface(), CBIT::handleComponentFaults(), HFRadarModelPoint::HFRadarModelPoint(), HorizontalControl::HorizontalControl(), IBIT::IBIT(), BuoyancyServo::initBuoyancy(), NavChartDb::initDataDir(), ElevatorServo::initElevator(), CalibrateSparton::initialize(), TempGradientCalculator::initialize(), VerticalTemperatureHomogeneityIndexCalculator::initialize(), DeadReckonUsingSpeedCalculator::initialize(), DeadReckonWithRespectToWater::initialize(), SpeedCalculator::initialize(), DeadReckonUsingDVLWaterTrack::initialize(), UniversalFixResidualReporter::initialize(), AsyncPiEstimator::initialize(), DeadReckonWithRespectToSeafloor::initialize(), DeadReckonUsingCompactModelForecast::initialize(), Pitch::initialize(), SetSpeed::initialize(), StopMission::initialize(), ReinitializeHFRCMVirtualSurfaceDrifter::initialize(), Point::initialize(), Wait::initialize(), Waypoint::initialize(), NavChartDb::initialize(), Circle::initialize(), GoToSurface::initialize(), PrepareToDive::initialize(), PeakDetectHorizontal::initialize(), PeakDetectVsDepth::initialize(), Aggregate::initialize(), Batt_Ocean_Server::initialize(), NavChart::initialize(), IBIT::initialize(), LoopControl::initialize(), SBIT::initialize(), AltitudeEnvelope::initialize(), Buoyancy::initialize(), HFRadarModelPoint::initialize(), HFRCMSpaceInterpolator::initialize(), SpeedControl::initialize(), ValueDetect::initialize(), StratificationFrontDetector::initialize(), PitchServo::initialize(), HFRCMVirtualSurfaceDrifter::initialize(), DepthEnvelope::initialize(), DepthServo::initialize(), HorizontalControl::initialize(), HFRCMReconstructedInterpolator::initialize(), YoYo::initialize(), VerticalControl::initialize(), DepthRateCalculator::initialize(), YawRateCalculator::initialize(), OffshoreEnvelope::initialize(), HFRCMSurfaceCurrentAtVehicleLocation::initialize(), WaterDepthEnvelope::initialize(), HFRCMTimeInterpolator::initialize(), CommandLine::initialize(), ZigZag::initialize(), PitchRateCalculator::initialize(), DeadReckonUsingMultipleVelocitySources::initialize(), KeepStation::initialize(), Lane::initialize(), CBIT::initialize(), ControlThread::initialize(), InternalSim::initialize(), MissionManager::initialize(), ExternalSim::initialize(), NavigationSim::initialize(), Tracking::initialize(), ScriptAsyncComponent::initialize(), ScriptMissionComponent::initialize(), DefinedBehavior::initialize(), ScriptSyncComponent::initialize(), ReadDataComponent::initializeReaders(), EZServoServo::initializeStart(), NAL9602::initiateSession(), RudderServo::initRudder(), ThrusterServo::initThruster(), EZServoServo::isCommunicating(), Waypoint::isSatisfied(), Circle::isSatisfied(), HFRadarModelPoint::isSatisfied(), KeepStation::isSatisfied(), ScriptMissionComponent::isSatisfied(), DefinedBehavior::isSatisfied(), ISUS::ISUS(), KeepStation::KeepStation(), Lane::Lane(), Reporter::listReports(), NavChartDb::loadCoverage(), NavChartDb::loadDepths(), HFRadarCompactModelForecaster::loadHistory(), DataOverHttps::loadParams(), GoToSurface::loadParams(), NAL9602::loadParams(), ESPComponent::logDebug(), Rowe_600::logMatrixOffset(), MissionManager::logStack(), Aggregate::logStack(), DVL_micro::logVoltageAndCurrent(), CANONSampler::logVoltageAndCurrent(), VemcoVR2C::logVoltageAndCurrent(), ISUS::logVoltageAndCurrent(), AcousticModem_Benthos_ATM900::logVoltageAndCurrent(), DAT::logVoltageAndCurrent(), ESPComponent::logVoltageAndCurrent(), HFRadarModelCalc::lookup(), HFRCMSpaceInterpolator::lookupEmpiricalOrthogonalFunctions(), HFRCMSurfaceCurrentAtVehicleLocation::lookupEmpiricalOrthogonalFunctions(), HFRCMTimeInterpolator::lookupExpansionCoefficients(), HFRCMReconstructedInterpolator::lookupSurfaceCurrent(), LoopControl::LoopControl(), MissionManager::missionFromFile(), CBIT::monitorBatteryTemps(), CBIT::monitorCFCard(), CBIT::monitorEnvironmentals(), NAL9602::needFix(), NAL9602::needGSV(), newConfigReader(), OffshoreEnvelope::OffshoreEnvelope(), ESPComponent::openServerSocket(), VerticalControl::overrideVertical(), Aanderaa_O2::parse(), WetLabsBB2FL::parse(), PNI_TCM::parseCalScore(), NAL9602::parseGGAFix(), NAL9602::parseGSV(), WetLabsBB2FL::parseHeader(), DVL_micro::parseNQ1(), CTD_NeilBrown::parseResponse(), DAT::parseResponses(), NAL9602::parseRMCFix(), Rowe_600::parseRoweHeader(), BPC1::parseWriteDataA(), BPC1::parseWriteDataB(), SCPI::pause(), ElevatorServo::pause(), MassServo::pause(), Aanderaa_O2::pause(), CANONSampler::pause(), BuoyancyServo::pause(), ISUS::pause(), RudderServo::pause(), Turner_Cyclops_rhodamine::pause(), VemcoVR2C::pause(), DVL_micro::pause(), Radio_Surface::pause(), AcousticModem_Benthos_ATM900::pause(), WetLabsBB2FL::pause(), Turbulence_NPS::pause(), DAT::pause(), PNI_TCM::pause(), ThrusterServo::pause(), AHRS_3DMGX3::pause(), CTD_NeilBrown::pause(), AHRS_sp3003D::pause(), Rowe_600LCM::pause(), BPC1::pause(), Rowe_600::pause(), NAL9602::pause(), SCPI::paused(), DVL_micro::paused(), ElevatorServo::paused(), MassServo::paused(), Aanderaa_O2::paused(), CANONSampler::paused(), BuoyancyServo::paused(), VemcoVR2C::paused(), RudderServo::paused(), Turner_Cyclops_rhodamine::paused(), ISUS::paused(), Radio_Surface::paused(), AcousticModem_Benthos_ATM900::paused(), WetLabsBB2FL::paused(), Turbulence_NPS::paused(), DAT::paused(), PNI_TCM::paused(), ThrusterServo::paused(), AHRS_3DMGX3::paused(), CTD_NeilBrown::paused(), AHRS_sp3003D::paused(), Rowe_600LCM::paused(), BPC1::paused(), Rowe_600::paused(), NAL9602::paused(), BPC1::pausing(), PeakDetectHorizontal::PeakDetectHorizontal(), PeakDetectVsDepth::PeakDetectVsDepth(), DAT::phasesToDirectionInVehicleFrame(), Pitch::Pitch(), PitchServo::PitchServo(), Point::Point(), ESPComponent::powerDownESP(), ESPComponent::powerUpESP(), CalibrateSparton::preempted(), PrepareToDive::PrepareToDive(), Rowe_600::preprocessData(), CTD_NeilBrown::preprocessData(), Rowe_600::processEnsemble(), Tracking::processFromDAT(), DVL_micro::processNQ1(), AcousticModem_Benthos_ATM900::publishData(), HFRadarCompactModelForecaster::publishForecast(), HFRCMReconstructedInterpolator::publishSurfaceCurrentAtVehicleLocation(), Tracking::queryDAT(), AHRS_sp3003D::readAccelVecBin(), VemcoVR2C::readAndParseResponses(), AcousticModem_Benthos_ATM900::readAndParseResponses(), DAT::readAndParseResponses(), Rowe_600::readBottomTrackMatrix(), StratificationFrontDetector::readConfig(), AcousticModem_Benthos_ATM900::readConfig(), DAT::readConfig(), BPC1::readConfig(), Rowe_600LCM::readConfig(), Navigator::readConfigs(), Batt_Ocean_Server::readDataA(), Batt_Ocean_Server::readDataB(), Rowe_600::readEnsemble(), Rowe_600::readEnsembleDataMatrix(), Navigator::readExternalFix(), Tracking::readFromDAT(), AHRS_sp3003D::readMagneticsBin(), Rowe_600::readMATv4float32(), DVL_micro::readNQ1(), SetSpeed::readParams(), OffshoreEnvelope::readParams(), WaterDepthEnvelope::readParams(), Onboard::readParams(), Lane::readParams(), AltitudeEnvelope::readParams(), DepthServo::readSettings(), PitchServo::readSettings(), Tracking::readSettings(), AHRS_3DMGX3::readTemperature(), AHRS_3DMGX3::readTransducers(), Navigator::readVehicleOrientation(), DeadReckonUsingSpeedCalculator::readVehicleVelocity(), DeadReckonWithRespectToWater::readVehicleVelocity(), DeadReckonUsingDVLWaterTrack::readVehicleVelocity(), DeadReckonWithRespectToSeafloor::readVehicleVelocity(), DeadReckonUsingCompactModelForecast::readVehicleVelocity(), DeadReckonUsingMultipleVelocitySources::readVehicleVelocity(), Turbulence_NPS::receive(), CTD_NeilBrown::receive(), PNI_TCM::receiveGetDataResp(), AHRS_sp3003D::receiveHeadingMagBin(), AHRS_sp3003D::receivePitchRollBin(), AHRS_sp3003D::receiveTransducers(), NAL9602::receiving1(), Aggregate::redefineArg(), ReinitializeHFRCMVirtualSurfaceDrifter::ReinitializeHFRCMVirtualSurfaceDrifter(), Rowe_600::reportBottomTrackComponents(), UniversalFixResidualReporter::reportFixResidual(), CBIT::reportGFFault(), AcousticModem_Benthos_ATM900::requestRange(), DAT::requestRange(), resetFailCount(), DVL_micro::resume(), SCPI::resume(), ElevatorServo::resume(), MassServo::resume(), Aanderaa_O2::resume(), CANONSampler::resume(), RudderServo::resume(), BuoyancyServo::resume(), ISUS::resume(), Turner_Cyclops_rhodamine::resume(), VemcoVR2C::resume(), Radio_Surface::resume(), AcousticModem_Benthos_ATM900::resume(), WetLabsBB2FL::resume(), Turbulence_NPS::resume(), DAT::resume(), PNI_TCM::resume(), AHRS_3DMGX3::resume(), ThrusterServo::resume(), CTD_NeilBrown::resume(), AHRS_sp3003D::resume(), Rowe_600LCM::resume(), BPC1::resume(), Rowe_600::resume(), NAL9602::resume(), MissionManager::resumeLoadedMission(), DVL_micro::resuming(), SCPI::resuming(), ElevatorServo::resuming(), MassServo::resuming(), Aanderaa_O2::resuming(), CANONSampler::resuming(), BuoyancyServo::resuming(), ISUS::resuming(), Turner_Cyclops_rhodamine::resuming(), RudderServo::resuming(), VemcoVR2C::resuming(), AcousticModem_Benthos_ATM900::resuming(), Radio_Surface::resuming(), Turbulence_NPS::resuming(), DAT::resuming(), ThrusterServo::resuming(), AHRS_3DMGX3::resuming(), PNI_TCM::resuming(), CTD_NeilBrown::resuming(), AHRS_sp3003D::resuming(), Rowe_600LCM::resuming(), BPC1::resuming(), Rowe_600::resuming(), NAL9602::resuming(), NAL9602::retrieveAndQueueIncoming(), CycleStarter::run(), Assign::run(), SyslogComponent::run(), UniversalFixResidualReporter::run(), DropWeight::run(), Depth_Keller::run(), NavChartDb::run(), Batt_Ocean_Server::run(), IBIT::run(), SpeedControl::run(), ReinitializeHFRCMVirtualSurfaceDrifter::run(), SBIT::run(), HFRadarModelCalc::run(), StratificationFrontDetector::run(), VerticalControl::run(), HorizontalControl::run(), HFRCMReconstructedInterpolator::run(), HFRadarModelPoint::run(), HFRCMTimeInterpolator::run(), MissionManager::run(), HFRCMVirtualSurfaceDrifter::run(), Circle::run(), DataOverHttps::run(), DepthRateCalculator::run(), KeepStation::run(), ControlThread::run(), InternalSim::run(), Reporter::run(), ExternalSim::run(), NavigationSim::run(), Tracking::run(), Aggregate::run(), ScriptAsyncComponent::run(), ScriptMissionComponent::run(), DefinedBehavior::run(), ScriptSyncComponent::run(), Waypoint::runIfUnsatisfied(), Wait::runIfUnsatisfied(), Execute::runIfUnsatisfied(), YoYo::runIfUnsatisfied(), HFRadarModelPoint::runIfUnsatisfied(), ZigZag::runIfUnsatisfied(), GoToSurface::runIfUnsatisfied(), PrepareToDive::runIfUnsatisfied(), Lane::runIfUnsatisfied(), OffshoreEnvelope::runIfUnsatisfied(), DVL_micro::runnable(), SCPI::runnable(), ElevatorServo::runnable(), MassServo::runnable(), Aanderaa_O2::runnable(), CANONSampler::runnable(), BuoyancyServo::runnable(), ISUS::runnable(), VemcoVR2C::runnable(), Turner_Cyclops_rhodamine::runnable(), RudderServo::runnable(), Radio_Surface::runnable(), AcousticModem_Benthos_ATM900::runnable(), WetLabsBB2FL::runnable(), DAT::runnable(), ESPComponent::runnable(), Turbulence_NPS::runnable(), ThrusterServo::runnable(), PNI_TCM::runnable(), AHRS_3DMGX3::runnable(), CTD_NeilBrown::runnable(), AHRS_sp3003D::runnable(), Rowe_600LCM::runnable(), BPC1::runnable(), Rowe_600::runnable(), NAL9602::runnable(), CANONSampler::sampleStatus(), NavChartDb::saveDepths(), SBIT::SBIT(), ESPComponent::scanEspServerPort(), CBIT::scanGFChan(), segfaultImpl(), NAL9602::sendingFillBuffer(), NAL9602::sendingTransmit(), NAL9602::sendingVerify(), NAL9602::sessionMTQueueVerify(), AHRS_sp3003D::setCalMode(), setFailure(), HFRCMVirtualSurfaceDrifter::setLocation(), SetSpeed::SetSpeed(), SpeedControl::SpeedControl(), DataOverHttps::sslConnect(), DataOverHttps::sslConnecting(), SCPI::start(), ElevatorServo::start(), MassServo::start(), Aanderaa_O2::start(), ISUS::start(), CANONSampler::start(), BuoyancyServo::start(), RudderServo::start(), Turner_Cyclops_rhodamine::start(), VemcoVR2C::start(), Radio_Surface::start(), AcousticModem_Benthos_ATM900::start(), WetLabsBB2FL::start(), ESPComponent::start(), Turbulence_NPS::start(), DAT::start(), AHRS_3DMGX3::start(), ThrusterServo::start(), DVL_micro::start(), PNI_TCM::start(), CTD_NeilBrown::start(), AHRS_sp3003D::start(), Rowe_600LCM::start(), BPC1::start(), Rowe_600::start(), NAL9602::start(), SCPI::starting(), MassServo::starting(), ElevatorServo::starting(), Aanderaa_O2::starting(), CANONSampler::starting(), BuoyancyServo::starting(), RudderServo::starting(), Turner_Cyclops_rhodamine::starting(), ISUS::starting(), VemcoVR2C::starting(), Radio_Surface::starting(), AcousticModem_Benthos_ATM900::starting(), WetLabsBB2FL::starting(), DVL_micro::starting(), ESPComponent::starting(), DAT::starting(), Turbulence_NPS::starting(), PNI_TCM::starting(), ThrusterServo::starting(), AHRS_3DMGX3::starting(), CTD_NeilBrown::starting(), AHRS_sp3003D::starting(), Rowe_600LCM::starting(), BPC1::starting(), Rowe_600::starting(), NAL9602::starting(), DVL_micro::startPing(), ESPComponent::startPPP(), ESPComponent::startSamplingPhase(), DVL_micro::stop(), SCPI::stop(), MassServo::stop(), ElevatorServo::stop(), CANONSampler::stop(), ISUS::stop(), RudderServo::stop(), VemcoVR2C::stop(), BuoyancyServo::stop(), Aanderaa_O2::stop(), Turner_Cyclops_rhodamine::stop(), Radio_Surface::stop(), AcousticModem_Benthos_ATM900::stop(), WetLabsBB2FL::stop(), Turbulence_NPS::stop(), DAT::stop(), ThrusterServo::stop(), AHRS_3DMGX3::stop(), PNI_TCM::stop(), CTD_NeilBrown::stop(), AHRS_sp3003D::stop(), Rowe_600LCM::stop(), BPC1::stop(), Rowe_600::stop(), NAL9602::stop(), StopMission::StopMission(), DVL_micro::stopped(), SCPI::stopped(), ElevatorServo::stopped(), MassServo::stopped(), CANONSampler::stopped(), ISUS::stopped(), BuoyancyServo::stopped(), RudderServo::stopped(), Turner_Cyclops_rhodamine::stopped(), VemcoVR2C::stopped(), Aanderaa_O2::stopped(), Radio_Surface::stopped(), AcousticModem_Benthos_ATM900::stopped(), WetLabsBB2FL::stopped(), Turbulence_NPS::stopped(), DAT::stopped(), ThrusterServo::stopped(), AHRS_3DMGX3::stopped(), PNI_TCM::stopped(), CTD_NeilBrown::stopped(), AHRS_sp3003D::stopped(), Rowe_600LCM::stopped(), BPC1::stopped(), Rowe_600::stopped(), NAL9602::stopped(), DVL_micro::stopping(), SCPI::stopping(), ElevatorServo::stopping(), MassServo::stopping(), Aanderaa_O2::stopping(), BuoyancyServo::stopping(), RudderServo::stopping(), Turner_Cyclops_rhodamine::stopping(), VemcoVR2C::stopping(), ISUS::stopping(), CANONSampler::stopping(), Radio_Surface::stopping(), AcousticModem_Benthos_ATM900::stopping(), WetLabsBB2FL::stopping(), Turbulence_NPS::stopping(), ESPComponent::stopping(), DAT::stopping(), ThrusterServo::stopping(), AHRS_3DMGX3::stopping(), PNI_TCM::stopping(), CTD_NeilBrown::stopping(), AHRS_sp3003D::stopping(), Rowe_600LCM::stopping(), BPC1::stopping(), Rowe_600::stopping(), NAL9602::stopping(), ESPComponent::stopPPP(), DataOverHttps::tcpConnect(), DataOverHttps::tcpConnecting(), AHRS_sp3003D::tryUartComms(), CalibrateSparton::uninitialize(), AsyncPiEstimator::uninitialize(), NavChart::uninitialize(), SpeedControl::uninitialize(), Aggregate::uninitialize(), SBIT::uninitialize(), IBIT::uninitialize(), LoopControl::uninitialize(), DepthRateCalculator::uninitialize(), VerticalControl::uninitialize(), StopMission::uninitialize(), HorizontalControl::uninitialize(), Waypoint::uninitialize(), Circle::uninitialize(), AltitudeEnvelope::uninitialize(), HFRadarModelPoint::uninitialize(), Wait::uninitialize(), CBIT::uninitialize(), ControlThread::uninitialize(), DepthEnvelope::uninitialize(), PitchServo::uninitialize(), Buoyancy::uninitialize(), SetSpeed::uninitialize(), YoYo::uninitialize(), ZigZag::uninitialize(), GoToSurface::uninitialize(), PrepareToDive::uninitialize(), PeakDetectHorizontal::uninitialize(), PeakDetectVsDepth::uninitialize(), KeepStation::uninitialize(), ValueDetect::uninitialize(), Lane::uninitialize(), DVL_micro::uninitialize(), Tracking::uninitialize(), OffshoreEnvelope::uninitialize(), WaterDepthEnvelope::uninitialize(), DepthServo::uninitialize(), CANONSampler::uninitialize(), VemcoVR2C::uninitialize(), MassServo::uninitialize(), ISUS::uninitialize(), Aanderaa_O2::uninitialize(), ElevatorServo::uninitialize(), BuoyancyServo::uninitialize(), AcousticModem_Benthos_ATM900::uninitialize(), RudderServo::uninitialize(), WetLabsBB2FL::uninitialize(), Turbulence_NPS::uninitialize(), DAT::uninitialize(), ESPComponent::uninitialize(), AHRS_3DMGX3::uninitialize(), PNI_TCM::uninitialize(), CTD_NeilBrown::uninitialize(), ThrusterServo::uninitialize(), AHRS_sp3003D::uninitialize(), Rowe_600LCM::uninitialize(), BPC1::uninitialize(), Rowe_600::uninitialize(), ScriptAsyncComponent::uninitialize(), NAL9602::uninitialize(), DefinedBehavior::uninitialize(), ScriptMissionComponent::uninitialize(), ScriptSyncComponent::uninitialize(), WetLabsBB2FL::update_temporal_bin(), CTD_NeilBrown::update_temporal_bin(), NavChartDb::updateClosest(), HFRCMReconstructedInterpolator::updateExpansionCoefficients(), ValueDetect::ValueDetect(), NAL9602::verifySessionXmit(), VerticalControl::VerticalControl(), Wait::Wait(), ESPComponent::waitForESPConnection(), MassServo::waitForHoming(), NAL9602::waking(), WaterDepthEnvelope::WaterDepthEnvelope(), Waypoint::Waypoint(), NavChartDb::wipeOut(), Rowe_600::writeData(), PNI_TCM::writeData(), HFRadarModelCalc::writeExpansionCoefficientsToSlate(), Navigator::writeVehiclePosition(), YoYo::YoYo(), and ZigZag::ZigZag().

bool Component::meteringEnabled_
protected

If true, metering is enabled.

Referenced by disableMetering(), and setDurationOfLastRun().

const Module* Component::module_
protected

Referenced by getModule().

CodedStr& Component::name_
protected

Store the component's name (used for logging purposes)

Referenced by getName(), Aggregate::initialize(), resetFailCount(), and Aggregate::uninitialize().

Timespan Component::pauseTime_
protected

Referenced by getPauseTime(), and requestPause().

bool Component::persistentPause_
protected
FlexArray<DataReader*> Component::readers_
protected
bool Component::recoveringFromCritical_
protected

Indicates that a component had a previous critical failure that has been cleared temporarily awaiting final word from the component itself.

Referenced by resetFailCount(), and setRecoveringFromCritical().

Timespan Component::retryTimeout_
protected

Referenced by getRetryTimeout(), and setRetryTimeout().

bool Component::segfaultRequested_
private
int Component::simulateHardware_
private

Referenced by simulateHardware().

ConfigReader* Component::simulateHardwareReader_
private

Referenced by simulateHardware().

int Component::skippedRunsSinceFail_
protected

Number of skipped runs since failureMode_ set by failCount_.

Referenced by getSkippedRunsSinceFail(), incrementSkippedRunsSinceFail(), and setFailure().

bool Component::startRequested_
private

Referenced by execute(), and requestStart().

ComponentState Component::state_
protected

Keep track of whether the component has "completed" or should be run again.

Referenced by getState(), isCompleted(), CommandLine::isWritable(), and setState().

Timestamp Component::timeOfFailure_
protected

Time of last failure. Relevant only if failed=true.

Referenced by getTimeOfFailure(), and setFailure().

Timestamp Component::timeOfRun_
protected

Referenced by HFRadarModelPoint::run().

DataWriter* Component::voltageWriter_
protected

Referenced by logVoltage().

Timestamp Component::writeTimestamp_
protected

Time of last write.

Referenced by getWriteTimestamp(), and setWriteTimestamp().


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