Class Event::State

Nested Relationships

This class is a nested type of Class Event.

Inheritance Relationships

Derived Types

Class Documentation

class State

The interface to an active event.

Subclassed by rmf_task::Event::Snapshot, rmf_task::events::SimpleEventState

Public Types

using Status = Event::Status
using ConstStatePtr = Event::ConstStatePtr

Public Functions

virtual uint64_t id() const = 0

The ID of this event, which is unique within its phase.

virtual Status status() const = 0

The current Status of this event.

bool finished() const

A convenience function which returns true if the event’s status is any of Skipped, Canceled, Killed, or Completed.

virtual VersionedString::View name() const = 0

The “name” of this event. Ideally a short, simple piece of text that helps a human being intuit what this event is expecting at a glance.

virtual VersionedString::View detail() const = 0

A detailed explanation of this event.

virtual Log::View log() const = 0

A view of the log for this event.

virtual std::vector<ConstStatePtr> dependencies() const = 0

Get more granular dependencies of this event, if any exist.

virtual ~State() = default