Class: OFStatistics

Inherits:
OFMessage show all
Defined in:
lib/messages/statistics.rb

Direct Known Subclasses

OFStatisticsReply, OFStatisticsRequest

Constant Summary collapse

STATISTICS_TYPES =
[
  :description,
  :flow,
  :aggregate,
  :table,
  :port,
  :queue
]

Constants inherited from OFMessage

OFMessage::HEADER_LENGTH, OFMessage::OFP_VERSION, OFMessage::TYPES

Instance Attribute Summary

Attributes inherited from SuperclassBase

#type_str

Instance Method Summary collapse

Methods inherited from SuperclassBase

#initialize_instance

Instance Method Details

#body_lengthObject



21
22
23
# File 'lib/messages/statistics.rb', line 21

def body_length
  4 + statistics.to_binary_s.length
end

#flags_listObject



14
15
16
# File 'lib/messages/statistics.rb', line 14

def flags_list
  self.class.const_get(:FLAGS)
end