Class: AggrRule

Inherits:
Object
  • Object
show all
Defined in:
lib/libowl/aggregator_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(phy_layer, txers, update_interval) ⇒ AggrRule

Physical layer (1 byte), an array of transmitter/mask values, and an 8-byte update interval in milliseconds



16
17
18
19
20
# File 'lib/libowl/aggregator_rules.rb', line 16

def initialize(phy_layer, txers, update_interval)
  @phy_layer = phy_layer
  @txers = txers
  @update_interval = update_interval
end

Instance Attribute Details

#phy_layerObject

Returns the value of attribute phy_layer.



13
14
15
# File 'lib/libowl/aggregator_rules.rb', line 13

def phy_layer
  @phy_layer
end

#txersObject

Returns the value of attribute txers.



13
14
15
# File 'lib/libowl/aggregator_rules.rb', line 13

def txers
  @txers
end

#update_intervalObject

Returns the value of attribute update_interval.



13
14
15
# File 'lib/libowl/aggregator_rules.rb', line 13

def update_interval
  @update_interval
end