Class: OpenC3::ReducerState

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReducerState

Returns a new instance of ReducerState.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/openc3/microservices/reducer_microservice.rb', line 56

def initialize
  @reduced = {}
  @raw_keys = nil
  @converted_keys = nil
  @entry_time = nil
  @entry_samples = nil
  @current_time = nil
  @previous_time = nil
  @raw_values = nil
  @raw_max_values = nil
  @raw_min_values = nil
  @raw_avg_values = nil
  @raw_stddev_values = nil
  @converted_values = nil
  @converted_max_values = nil
  @converted_min_values = nil
  @converted_avg_values = nil
  @converted_stddev_values = nil
  @first = true
end

Instance Attribute Details

#converted_avg_valuesObject

Returns the value of attribute converted_avg_values.



52
53
54
# File 'lib/openc3/microservices/reducer_microservice.rb', line 52

def converted_avg_values
  @converted_avg_values
end

#converted_keysObject

Returns the value of attribute converted_keys.



39
40
41
# File 'lib/openc3/microservices/reducer_microservice.rb', line 39

def converted_keys
  @converted_keys
end

#converted_max_valuesObject

Returns the value of attribute converted_max_values.



50
51
52
# File 'lib/openc3/microservices/reducer_microservice.rb', line 50

def converted_max_values
  @converted_max_values
end

#converted_min_valuesObject

Returns the value of attribute converted_min_values.



51
52
53
# File 'lib/openc3/microservices/reducer_microservice.rb', line 51

def converted_min_values
  @converted_min_values
end

#converted_stddev_valuesObject

Returns the value of attribute converted_stddev_values.



53
54
55
# File 'lib/openc3/microservices/reducer_microservice.rb', line 53

def converted_stddev_values
  @converted_stddev_values
end

#converted_valuesObject

Returns the value of attribute converted_values.



49
50
51
# File 'lib/openc3/microservices/reducer_microservice.rb', line 49

def converted_values
  @converted_values
end

#current_timeObject

Returns the value of attribute current_time.



42
43
44
# File 'lib/openc3/microservices/reducer_microservice.rb', line 42

def current_time
  @current_time
end

#entry_samplesObject

Returns the value of attribute entry_samples.



41
42
43
# File 'lib/openc3/microservices/reducer_microservice.rb', line 41

def entry_samples
  @entry_samples
end

#entry_timeObject

Returns the value of attribute entry_time.



40
41
42
# File 'lib/openc3/microservices/reducer_microservice.rb', line 40

def entry_time
  @entry_time
end

#firstObject

Returns the value of attribute first.



54
55
56
# File 'lib/openc3/microservices/reducer_microservice.rb', line 54

def first
  @first
end

#previous_timeObject

Returns the value of attribute previous_time.



43
44
45
# File 'lib/openc3/microservices/reducer_microservice.rb', line 43

def previous_time
  @previous_time
end

#raw_avg_valuesObject

Returns the value of attribute raw_avg_values.



47
48
49
# File 'lib/openc3/microservices/reducer_microservice.rb', line 47

def raw_avg_values
  @raw_avg_values
end

#raw_keysObject

Returns the value of attribute raw_keys.



38
39
40
# File 'lib/openc3/microservices/reducer_microservice.rb', line 38

def raw_keys
  @raw_keys
end

#raw_max_valuesObject

Returns the value of attribute raw_max_values.



45
46
47
# File 'lib/openc3/microservices/reducer_microservice.rb', line 45

def raw_max_values
  @raw_max_values
end

#raw_min_valuesObject

Returns the value of attribute raw_min_values.



46
47
48
# File 'lib/openc3/microservices/reducer_microservice.rb', line 46

def raw_min_values
  @raw_min_values
end

#raw_stddev_valuesObject

Returns the value of attribute raw_stddev_values.



48
49
50
# File 'lib/openc3/microservices/reducer_microservice.rb', line 48

def raw_stddev_values
  @raw_stddev_values
end

#raw_valuesObject

Returns the value of attribute raw_values.



44
45
46
# File 'lib/openc3/microservices/reducer_microservice.rb', line 44

def raw_values
  @raw_values
end

#reducedObject

Returns the value of attribute reduced.



37
38
39
# File 'lib/openc3/microservices/reducer_microservice.rb', line 37

def reduced
  @reduced
end