Class: MINT::Pose::StatefulProtocol

Inherits:
EventMachine::Connection
  • Object
show all
Includes:
EM::Protocols::LineText2
Defined in:
lib/MINT-core/model/ir/body/pose.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatefulProtocol

Returns a new instance of StatefulProtocol.



83
84
85
86
# File 'lib/MINT-core/model/ir/body/pose.rb', line 83

def initialize
  super()

end

Instance Attribute Details

#poseObject

Returns the value of attribute pose.



81
82
83
# File 'lib/MINT-core/model/ir/body/pose.rb', line 81

def pose
  @pose
end

Instance Method Details

#receive_line(data) ⇒ Object



88
89
90
# File 'lib/MINT-core/model/ir/body/pose.rb', line 88

def receive_line(data)
  pose.buffer = data
end

#unbindObject



92
93
94
# File 'lib/MINT-core/model/ir/body/pose.rb', line 92

def unbind
  pose.process_event :disconnect
end