Class: OpenC3::ReactionShare

Inherits:
Object
  • Object
show all
Defined in:
lib/openc3/microservices/reaction_microservice.rb

Overview

Shared between the monitor thread and the manager thread to share the resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope:) ⇒ ReactionShare

Returns a new instance of ReactionShare.



209
210
211
212
213
# File 'lib/openc3/microservices/reaction_microservice.rb', line 209

def initialize(scope:)
  @reaction_base = ReactionBase.new(scope: scope)
  @queue_base = QueueBase.new(scope: scope)
  @snooze_base = SnoozeBase.new(scope: scope)
end

Instance Attribute Details

#queue_baseObject (readonly)

Returns the value of attribute queue_base.



207
208
209
# File 'lib/openc3/microservices/reaction_microservice.rb', line 207

def queue_base
  @queue_base
end

#reaction_baseObject (readonly)

Returns the value of attribute reaction_base.



207
208
209
# File 'lib/openc3/microservices/reaction_microservice.rb', line 207

def reaction_base
  @reaction_base
end

#snooze_baseObject (readonly)

Returns the value of attribute snooze_base.



207
208
209
# File 'lib/openc3/microservices/reaction_microservice.rb', line 207

def snooze_base
  @snooze_base
end