Class: AutomateEm::Service

Inherits:
Object
  • Object
show all
Includes:
ModuleCore
Defined in:
lib/automate-em/service/service.rb

Constant Summary

Constants included from Constants

Constants::Off, Constants::On

Instance Attribute Summary

Attributes included from ModuleCore

#base, #systems

Attributes included from Status

#status

Instance Method Summary collapse

Methods included from ModuleCore

#clear_active_timers, #join_system, #leave_system, #logger, #setbase

Methods included from Utilities

array_to_str, byte_to_hex, hex_to_byte, schedule, str_to_array, task

Methods included from Status

#[], #[]=, #mark_emit_end, #mark_emit_start, #update_status

Constructor Details

#initializeService

Returns a new instance of Service.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/automate-em/service/service.rb', line 6

def initialize
	@systems = []

	#
	# Status variables
	#	NOTE:: if changed then change in logic.rb 
	#
	@status = {}
	@status_lock = Object.new.extend(MonitorMixin)
	@system_lock = Mutex.new
	@status_waiting = false
end