ark::fault::Fault

Defined in header “ark/faults/fault.hh”.


Fault describtion monitoring if some condition has been activated.

Methods

  • Fault(std::string description, uint32_t identifier, uint32_t priority, std::string channel_name)
    Constructor - must provide the name and description of the fault; initializes the timing/counts to zero.

  • ~Fault()
    default destructor

  • operator bool()
    Boolean operator, which queries the active state. Returns true if the fault is active OR not initialized.

  • bool active()
    Returns true if the fault is active OR not initialized.

  • void activate(const FaultClock::time_point & time)
    Set fault to active.

  • void deactivate(const FaultClock::time_point & time)
    Deactivate fault.

  • FaultState state(const FaultClock::time_point & time)
    Retrieve the state.

  • const std::string & description()
    Retrieve the description.

  • const std::string & channel_name()
    Retrieve the exact channel we are monitoring.

  • void set_value(const double & val_dbl)

  • double get_value()