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 implamentation.
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scope:) ⇒ TriggerGroupShare
constructor
A new instance of TriggerGroupShare.
Constructor Details
#initialize(scope:) ⇒ TriggerGroupShare
Returns a new instance of TriggerGroupShare.
235 236 237 238 239 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 235 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.
233 234 235 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 233 def packet_base @packet_base end |
#trigger_base ⇒ Object (readonly)
Returns the value of attribute trigger_base.
233 234 235 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 233 def trigger_base @trigger_base end |
Class Method Details
.get_group(name:) ⇒ Object
229 230 231 |
# File 'lib/openc3/microservices/trigger_group_microservice.rb', line 229 def self.get_group(name:) return name.split('__')[2] end |