ProsthesisInterface_ice.py
Go to the documentation of this file.
1 # **********************************************************************
2 #
3 # Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
4 #
5 # This copy of Ice is licensed to you under the terms described in the
6 # ICE_LICENSE file included in this distribution.
7 #
8 # **********************************************************************
9 #
10 # Ice version 3.5.1
11 #
12 # <auto-generated>
13 #
14 # Generated from file `ProsthesisInterface.ice'
15 #
16 # Warning: do not edit this file.
17 #
18 # </auto-generated>
19 #
20 
21 import Ice, IcePy
22 
23 # Start of module armarx
24 _M_armarx = Ice.openModule('armarx')
25 __name__ = 'armarx'
26 
27 if 'ProsthesisMotorValues' not in _M_armarx.__dict__:
28  _M_armarx.ProsthesisMotorValues = Ice.createTempClass()
29  class ProsthesisMotorValues(object):
30  def __init__(self, name='', position1=0.0, pwm1=0.0, position2=0.0, pwm2=0.0):
31  self.name = name
32  self.position1 = position1
33  self.pwm1 = pwm1
34  self.position2 = position2
35  self.pwm2 = pwm2
36 
37  def __eq__(self, other):
38  if other is None:
39  return False
40  elif not isinstance(other, _M_armarx.ProsthesisMotorValues):
41  return NotImplemented
42  else:
43  if self.name != other.name:
44  return False
45  if self.position1 != other.position1:
46  return False
47  if self.pwm1 != other.pwm1:
48  return False
49  if self.position2 != other.position2:
50  return False
51  if self.pwm2 != other.pwm2:
52  return False
53  return True
54 
55  def __ne__(self, other):
56  return not self.__eq__(other)
57 
58  def __str__(self):
59  return IcePy.stringify(self, _M_armarx._t_ProsthesisMotorValues)
60 
61  __repr__ = __str__
62 
63  _M_armarx._t_ProsthesisMotorValues = IcePy.defineStruct('::armarx::ProsthesisMotorValues', ProsthesisMotorValues, (), (
64  ('name', (), IcePy._t_string),
65  ('position1', (), IcePy._t_float),
66  ('pwm1', (), IcePy._t_float),
67  ('position2', (), IcePy._t_float),
68  ('pwm2', (), IcePy._t_float)
69  ))
70 
71  _M_armarx.ProsthesisMotorValues = ProsthesisMotorValues
72  del ProsthesisMotorValues
73 
74 if 'ProsthesisListenerInterface' not in _M_armarx.__dict__:
75  _M_armarx.ProsthesisListenerInterface = Ice.createTempClass()
76  class ProsthesisListenerInterface(Ice.Object):
77  def __init__(self):
78  if Ice.getType(self) == _M_armarx.ProsthesisListenerInterface:
79  raise RuntimeError('armarx.ProsthesisListenerInterface is an abstract class')
80 
81  def ice_ids(self, current=None):
82  return ('::Ice::Object', '::armarx::ProsthesisListenerInterface')
83 
84  def ice_id(self, current=None):
85  return '::armarx::ProsthesisListenerInterface'
86 
87  def ice_staticId():
88  return '::armarx::ProsthesisListenerInterface'
89  ice_staticId = staticmethod(ice_staticId)
90 
91  def reportMotorValues(self, motorValues, current=None):
92  pass
93 
94  def __str__(self):
95  return IcePy.stringify(self, _M_armarx._t_ProsthesisListenerInterface)
96 
97  __repr__ = __str__
98 
99  _M_armarx.ProsthesisListenerInterfacePrx = Ice.createTempClass()
100  class ProsthesisListenerInterfacePrx(Ice.ObjectPrx):
101 
102  def reportMotorValues(self, motorValues, _ctx=None):
103  return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.invoke(self, ((motorValues, ), _ctx))
104 
105  def begin_reportMotorValues(self, motorValues, _response=None, _ex=None, _sent=None, _ctx=None):
106  return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.begin(self, ((motorValues, ), _response, _ex, _sent, _ctx))
107 
108  def end_reportMotorValues(self, _r):
109  return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.end(self, _r)
110 
111  def checkedCast(proxy, facetOrCtx=None, _ctx=None):
112  return _M_armarx.ProsthesisListenerInterfacePrx.ice_checkedCast(proxy, '::armarx::ProsthesisListenerInterface', facetOrCtx, _ctx)
113  checkedCast = staticmethod(checkedCast)
114 
115  def uncheckedCast(proxy, facet=None):
116  return _M_armarx.ProsthesisListenerInterfacePrx.ice_uncheckedCast(proxy, facet)
117  uncheckedCast = staticmethod(uncheckedCast)
118 
119  _M_armarx._t_ProsthesisListenerInterfacePrx = IcePy.defineProxy('::armarx::ProsthesisListenerInterface', ProsthesisListenerInterfacePrx)
120 
121  _M_armarx._t_ProsthesisListenerInterface = IcePy.defineClass('::armarx::ProsthesisListenerInterface', ProsthesisListenerInterface, -1, (), True, False, None, (), ())
122  ProsthesisListenerInterface._ice_type = _M_armarx._t_ProsthesisListenerInterface
123 
124  ProsthesisListenerInterface._op_reportMotorValues = IcePy.Operation('reportMotorValues', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_armarx._t_ProsthesisMotorValues, False, 0),), (), None, ())
125 
126  _M_armarx.ProsthesisListenerInterface = ProsthesisListenerInterface
127  del ProsthesisListenerInterface
128 
129  _M_armarx.ProsthesisListenerInterfacePrx = ProsthesisListenerInterfacePrx
130  del ProsthesisListenerInterfacePrx
131 
132 if 'ProsthesisInterface' not in _M_armarx.__dict__:
133  _M_armarx.ProsthesisInterface = Ice.createTempClass()
134  class ProsthesisInterface(Ice.Object):
135  def __init__(self):
136  if Ice.getType(self) == _M_armarx.ProsthesisInterface:
137  raise RuntimeError('armarx.ProsthesisInterface is an abstract class')
138 
139  def ice_ids(self, current=None):
140  return ('::Ice::Object', '::armarx::ProsthesisInterface')
141 
142  def ice_id(self, current=None):
143  return '::armarx::ProsthesisInterface'
144 
146  return '::armarx::ProsthesisInterface'
147  ice_staticId = staticmethod(ice_staticId)
148 
149  def getTopicName(self, current=None):
150  pass
151 
152  def __str__(self):
153  return IcePy.stringify(self, _M_armarx._t_ProsthesisInterface)
154 
155  __repr__ = __str__
156 
157  _M_armarx.ProsthesisInterfacePrx = Ice.createTempClass()
158  class ProsthesisInterfacePrx(Ice.ObjectPrx):
159 
160  def getTopicName(self, _ctx=None):
161  return _M_armarx.ProsthesisInterface._op_getTopicName.invoke(self, ((), _ctx))
162 
163  def begin_getTopicName(self, _response=None, _ex=None, _sent=None, _ctx=None):
164  return _M_armarx.ProsthesisInterface._op_getTopicName.begin(self, ((), _response, _ex, _sent, _ctx))
165 
166  def end_getTopicName(self, _r):
167  return _M_armarx.ProsthesisInterface._op_getTopicName.end(self, _r)
168 
169  def checkedCast(proxy, facetOrCtx=None, _ctx=None):
170  return _M_armarx.ProsthesisInterfacePrx.ice_checkedCast(proxy, '::armarx::ProsthesisInterface', facetOrCtx, _ctx)
171  checkedCast = staticmethod(checkedCast)
172 
173  def uncheckedCast(proxy, facet=None):
174  return _M_armarx.ProsthesisInterfacePrx.ice_uncheckedCast(proxy, facet)
175  uncheckedCast = staticmethod(uncheckedCast)
176 
177  _M_armarx._t_ProsthesisInterfacePrx = IcePy.defineProxy('::armarx::ProsthesisInterface', ProsthesisInterfacePrx)
178 
179  _M_armarx._t_ProsthesisInterface = IcePy.defineClass('::armarx::ProsthesisInterface', ProsthesisInterface, -1, (), True, False, None, (), ())
180  ProsthesisInterface._ice_type = _M_armarx._t_ProsthesisInterface
181 
182  ProsthesisInterface._op_getTopicName = IcePy.Operation('getTopicName', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), ((), IcePy._t_string, False, 0), ())
183 
184  _M_armarx.ProsthesisInterface = ProsthesisInterface
185  del ProsthesisInterface
186 
187  _M_armarx.ProsthesisInterfacePrx = ProsthesisInterfacePrx
188  del ProsthesisInterfacePrx
189 
190 # End of module armarx
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx.begin_reportMotorValues
def begin_reportMotorValues(self, motorValues, _response=None, _ex=None, _sent=None, _ctx=None)
Definition: ProsthesisInterface_ice.py:105
ProsthesisInterface_ice.ProsthesisInterface.__str__
def __str__(self)
Definition: ProsthesisInterface_ice.py:152
ProsthesisInterface_ice.ProsthesisListenerInterface.ice_ids
def ice_ids(self, current=None)
Definition: ProsthesisInterface_ice.py:81
ProsthesisInterface_ice.ProsthesisMotorValues.__eq__
def __eq__(self, other)
Definition: ProsthesisInterface_ice.py:37
ProsthesisInterface_ice.ProsthesisMotorValues.pwm1
pwm1
Definition: ProsthesisInterface_ice.py:33
ProsthesisInterface_ice.ProsthesisInterfacePrx
Definition: ProsthesisInterface_ice.py:158
ProsthesisInterface_ice.ProsthesisInterfacePrx.checkedCast
checkedCast
Definition: ProsthesisInterface_ice.py:171
ProsthesisInterface_ice.ProsthesisMotorValues.name
name
Definition: ProsthesisInterface_ice.py:31
ProsthesisInterface_ice.ProsthesisMotorValues.position2
position2
Definition: ProsthesisInterface_ice.py:34
ProsthesisInterface_ice.ProsthesisMotorValues.position1
position1
Definition: ProsthesisInterface_ice.py:32
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx.reportMotorValues
def reportMotorValues(self, motorValues, _ctx=None)
Definition: ProsthesisInterface_ice.py:102
ProsthesisInterface_ice.ProsthesisInterfacePrx.uncheckedCast
uncheckedCast
Definition: ProsthesisInterface_ice.py:175
ProsthesisInterface_ice.ProsthesisListenerInterface
Definition: ProsthesisInterface_ice.py:76
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx.checkedCast
checkedCast
Definition: ProsthesisInterface_ice.py:113
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx
Definition: ProsthesisInterface_ice.py:100
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx.uncheckedCast
uncheckedCast
Definition: ProsthesisInterface_ice.py:117
ProsthesisInterface_ice.ProsthesisListenerInterface.ice_id
def ice_id(self, current=None)
Definition: ProsthesisInterface_ice.py:84
ProsthesisInterface_ice.ProsthesisInterface.ice_staticId
ice_staticId
Definition: ProsthesisInterface_ice.py:147
ProsthesisInterface_ice.ProsthesisMotorValues.__str__
def __str__(self)
Definition: ProsthesisInterface_ice.py:58
ProsthesisInterface_ice.ProsthesisInterface.ice_id
def ice_id(self, current=None)
Definition: ProsthesisInterface_ice.py:142
ProsthesisInterface_ice.ProsthesisMotorValues.pwm2
pwm2
Definition: ProsthesisInterface_ice.py:35
ProsthesisInterface_ice.ProsthesisListenerInterface.ice_staticId
ice_staticId
Definition: ProsthesisInterface_ice.py:89
ProsthesisInterface_ice.ProsthesisInterface.__init__
def __init__(self)
Definition: ProsthesisInterface_ice.py:135
ProsthesisInterface_ice.ProsthesisInterface
Definition: ProsthesisInterface_ice.py:134
ProsthesisInterface_ice.ProsthesisListenerInterface.__str__
def __str__(self)
Definition: ProsthesisInterface_ice.py:94
ProsthesisInterface_ice.ProsthesisListenerInterface.__init__
def __init__(self)
Definition: ProsthesisInterface_ice.py:77
ProsthesisInterface_ice.ProsthesisListenerInterfacePrx.end_reportMotorValues
def end_reportMotorValues(self, _r)
Definition: ProsthesisInterface_ice.py:108
ProsthesisInterface_ice.ProsthesisInterfacePrx.begin_getTopicName
def begin_getTopicName(self, _response=None, _ex=None, _sent=None, _ctx=None)
Definition: ProsthesisInterface_ice.py:163
ProsthesisInterface_ice.ProsthesisInterface.ice_ids
def ice_ids(self, current=None)
Definition: ProsthesisInterface_ice.py:139
ProsthesisInterface_ice.ProsthesisListenerInterface.reportMotorValues
def reportMotorValues(self, motorValues, current=None)
Definition: ProsthesisInterface_ice.py:91
ProsthesisInterface_ice.ProsthesisInterfacePrx.end_getTopicName
def end_getTopicName(self, _r)
Definition: ProsthesisInterface_ice.py:166
ProsthesisInterface_ice.ProsthesisInterface.getTopicName
def getTopicName(self, current=None)
Definition: ProsthesisInterface_ice.py:149
ProsthesisInterface_ice.ProsthesisInterfacePrx.getTopicName
def getTopicName(self, _ctx=None)
Definition: ProsthesisInterface_ice.py:160
ProsthesisInterface_ice.ProsthesisMotorValues
Definition: ProsthesisInterface_ice.py:29
ProsthesisInterface_ice.ProsthesisMotorValues.__init__
def __init__(self, name='', position1=0.0, pwm1=0.0, position2=0.0, pwm2=0.0)
Definition: ProsthesisInterface_ice.py:30
ProsthesisInterface_ice.ProsthesisMotorValues.__ne__
def __ne__(self, other)
Definition: ProsthesisInterface_ice.py:55