Class: OpenC3::TriggerGroupShare

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_baseObject (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_baseObject (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