Class EventDelayed

Inheritance Relationships

Base Type

  • public IProcessor

Derived Type

Class Documentation

class EventDelayed : public IProcessor

Subclassed by TestEventDelayed

Public Functions

EventDelayed()
void CreatePorts() override
void Configure(const GlobalContext &context) override
void Preprocess(ProcessingContext &context) override
void Process(ProcessingContext &context) override
void Postprocess(ProcessingContext &context) override
bool to_lock_out_in_future(TimePoint start_event)
bool to_lock_out()

Protected Attributes

PortIn<EventType> *data_in_port_
PortOut<EventType> *output_port_
FollowerState<bool> *disabled_
FollowerState<bool> *delayed_event_
StaticState<double> *stop_detection_period_
StaticState<double> *stop_analysis_period_
BroadcasterState<bool> *analysis_unlocked_
options::Bool default_disabled_ = {false}
options::Measurement<double, false> initial_stop_detection_period_{50, "ms", options::positive<double>(false)}
options::Value<std::vector<int>, true> when_stop_analysis_period_ = {{0, 0}}
options::Measurement<double, false> initial_stop_analysis_period_{50., "ms", options::positive<double>(false)}
options::Bool start_after_detection_ = {false}
options::Bool start_after_stimulation_ = {true}
options::Bool initial_delayed_event_ = {false}
options::Bool save_events_ = {true}
options::String prefix_ = {"stim_"}
options::String msg_delayed_ = {"d"}
options::String msg_detection_ = {"r"}
options::String msg_ontime_ = {"o"}
options::Value<std::vector<long int>, true> initial_delayed_range_ = {{150, 200}}
uint64_t ontime_received_event_
uint64_t delayed_received_event_
uint64_t event_lockout_
Range<long int> delayed_range_
TimePoint previous_TS_nostim_
std::priority_queue<Delayed, std::vector<Delayed>, std::greater<Delayed>> delayed_event_queue_
std::priority_queue<Delayed, std::vector<Delayed>, std::greater<Delayed>> lockout_queue_
const std::string DISABLED_S = "detection only mode"
const std::string DELAYED_S = "delayed mode"
const std::string STOP_DETECTION_TIME_S = "event trigger lockout time"
const std::string STOP_ANALYSIS_TIME_S = "analysis lockout time"