Class SignalPort

Inheritance Relationships

Base Type

Class Documentation

class SignalPort : public Port

A specialized Port to store signal Connectors.

Public Functions

SignalPort() = default
~SignalPort() override = default
virtual void connect(std::weak_ptr<Connector> connector) override

Connect a signal Connector.

Parameters

connector – A connector to attach.

Throws

std::invalid_argument – If the provided connector is empty or invalid.

void send()

Send a signal to the controlled component.

void set(bool active)

Set a signal state.

Note

This functions abstracts the meaning of active, so if the parameter active is true (log 1), the signal is active, even if the real component considers active state as low.

Parameters

active – If true, the signal should be considered active, otherwise inactive.