1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#
import Ice, Test
class CAI(Test.MA.CADisp):
def caop(self, p, current=None):
return p
class CBI(Test.MB.CBDisp, CAI):
def cbop(self, p, current=None):
return p
class CCI(Test.MA.CCDisp, CBI):
def ccop(self, p, current=None):
return p
class IAI(Test.MA.IA):
def iaop(self, p, current=None):
return p
class IB1I(Test.MB.IB1, IAI):
def ib1op(self, p, current=None):
return p
class IB2I(Test.MB.IB2, IAI):
def ib2op(self, p, current=None):
return p
class ICI(Test.MA.IC, IB1I, IB2I):
def icop(self, p, current=None):
return p
class CDI(Test.MA.CDDisp, CCI, IB1I, IB2I):
def cdop(self, p, current=None):
return p
class InitialI(Test.Initial):
def __init__(self, adapter):
self._ca = Test.MA.CAPrx.uncheckedCast(adapter.addWithUUID(CAI()))
self._cb = Test.MB.CBPrx.uncheckedCast(adapter.addWithUUID(CBI()))
self._cc = Test.MA.CCPrx.uncheckedCast(adapter.addWithUUID(CCI()))
self._cd = Test.MA.CDPrx.uncheckedCast(adapter.addWithUUID(CDI()))
self._ia = Test.MA.IAPrx.uncheckedCast(adapter.addWithUUID(IAI()))
self._ib1 = Test.MB.IB1Prx.uncheckedCast(adapter.addWithUUID(IB1I()))
self._ib2 = Test.MB.IB2Prx.uncheckedCast(adapter.addWithUUID(IB2I()))
self._ic = Test.MA.ICPrx.uncheckedCast(adapter.addWithUUID(ICI()))
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()
def caop(self, current=None):
return self._ca
def cbop(self, current=None):
return self._cb
def ccop(self, current=None):
return self._cc
def cdop(self, current=None):
return self._cd
def iaop(self, current=None):
return self._ia
def ib1op(self, current=None):
return self._ib1
def ib2op(self, current=None):
return self._ib2
def icop(self, current=None):
return self._ic
|