Class: OpenC3::TriggerGroupShare
- Defined in:
- lib/openc3/microservices/trigger_group_microservice.rb
Overview
Shared between the monitor thread and the manager thread to share the triggers. This should remain a thread safe implementation.
Instance Attribute Summary collapse
-
#packet_base ⇒ Object
readonly
Returns the value of attribute packet_base.
-
#trigger_base ⇒ Object
readonly
Returns the value of attribute trigger_base.
Instance Method Summary collapse
-
#initialize(scope:) ⇒ TriggerGroupShare
constructor
A new instance of TriggerGroupShare.
Constructor Details
#initialize(scope:) ⇒ TriggerGroupShare
Returns a new instance of TriggerGroupShare.
242 243 244 245 246 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 242 def initialize(scope:) @scope = scope @trigger_base = TriggerBase.new(scope: scope) @packet_base = PacketBase.new(scope: scope) end |
Instance Attribute Details
#packet_base ⇒ Object (readonly)
Returns the value of attribute packet_base.
240 241 242 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 240 def packet_base @packet_base end |
#trigger_base ⇒ Object (readonly)
Returns the value of attribute trigger_base.
240 241 242 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 240 def trigger_base @trigger_base end |