Ejemplo n.º 1
0
 def decode(cls, json, agent):
     obj = cls(
         cardReader = Interface.decode(json['cardReader'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 2
0
 def decode(cls, json, agent):
     obj = cls(
         webcam = Interface.decode(json['webcam'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 3
0
 def decode(cls, json, agent):
     obj = cls(
         min = Interface.decode(json['min'], agent),
         max = Interface.decode(json['max'], agent),
         reading = Interface.decode(json['reading'], agent),
     )
     return obj
Ejemplo n.º 4
0
 def decode(cls, json, agent):
     obj = cls(
         oldDevice = Interface.decode(json['oldDevice'], agent),
         newDevice = Interface.decode(json['newDevice'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 5
0
 def decode(cls, json, agent):
     obj = cls(
         # for smartcard.CardReaderManager.CardReaderEvent
         cardReader = Interface.decode(json['cardReader'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 6
0
 def decode(cls, json, agent):
     obj = cls(
         # for serial.SerialPort_3_0_0.ModemEvent
         modem = Interface.decode(json['modem'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 7
0
 def decode(cls, json, agent):
     obj = cls(
         l1 = Interface.decode(json['l1'], agent),
         l2 = Interface.decode(json['l2'], agent),
         l3 = Interface.decode(json['l3'], agent),
         total = raritan.rpc.powerlogic.PowerMeter.MinMaxReading.decode(json['total'], agent),
     )
     return obj
Ejemplo n.º 8
0
 def decode(cls, json, agent):
     obj = cls(
         l1 = raritan.rpc.powerlogic.PowerMeter.MinMaxReading.decode(json['l1'], agent),
         l2 = raritan.rpc.powerlogic.PowerMeter.MinMaxReading.decode(json['l2'], agent),
         l3 = raritan.rpc.powerlogic.PowerMeter.MinMaxReading.decode(json['l3'], agent),
         n = Interface.decode(json['n'], agent),
         average = Interface.decode(json['average'], agent),
     )
     return obj
Ejemplo n.º 9
0
 def decode(cls, json, agent):
     obj = cls(
         username = json['username'],
         oldSettings = raritan.rpc.webcam.Settings.decode(json['oldSettings'], agent),
         newSettings = raritan.rpc.webcam.Settings.decode(json['newSettings'], agent),
         # for webcam.WebcamEvent
         webcam = Interface.decode(json['webcam'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 10
0
 def getPeripheralDeviceManager(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getPeripheralDeviceManager', args)
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.peripheral.DeviceManager, DecodeException)
     return _ret_
Ejemplo n.º 11
0
 def getSensorLogger(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getSensorLogger', args)
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.sensors.Logger, DecodeException)
     return _ret_
Ejemplo n.º 12
0
 def getDevice(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getDevice', args)
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_remote_obj(_ret_, DecodeException)
     return _ret_
Ejemplo n.º 13
0
 def getWebcam(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getWebcam', args)
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.webcam.Webcam, DecodeException)
     return _ret_
Ejemplo n.º 14
0
 def decode(cls, json, agent):
     obj = cls(
         newSimStatus = raritan.rpc.serial.GsmModem.SimSecurityStatus.decode(json['newSimStatus']),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 15
0
 def decode(cls, json, agent):
     obj = cls(
         newValue = raritan.rpc.lhxmodel.Parameter.Value.decode(json['newValue'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 16
0
 def decode(cls, json, agent):
     obj = cls(
         newReading = raritan.rpc.lhxmodel.Sensor.Reading.decode(json['newReading'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 17
0
 def decode(cls, json, agent):
     obj = cls(
         cardInfo = raritan.rpc.smartcard.CardReader.CardInformation.decode(json['cardInfo'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 18
0
 def decode(cls, json, agent):
     obj = cls(
         number = json['number'],
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 19
0
 def decode(cls, json, agent):
     obj = cls(
         webcam = Interface.decode(json['webcam'], agent),
         newestIndex = int(json['newestIndex']),
         oldestIndex = int(json['oldestIndex']),
         count = json['count'],
     )
     return obj
Ejemplo n.º 20
0
 def decode(cls, json, agent):
     obj = cls(
         oldState = raritan.rpc.hmi.ExternalBeeper.State.decode(json['oldState']),
         newState = raritan.rpc.hmi.ExternalBeeper.State.decode(json['newState']),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 21
0
 def decode(cls, json, agent):
     obj = cls(
         webcam = Interface.decode(json['webcam'], agent),
         interval = json['interval'],
         count = json['count'],
         done = json['done'],
     )
     return obj
Ejemplo n.º 22
0
 def getActualValues(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getActualValues', args)
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.lhxmodel.Parameter, DecodeException)
     return _ret_
Ejemplo n.º 23
0
 def decode(cls, json, agent):
     obj = cls(
         oldState = raritan.rpc.lhxmodel.Lhx.OpState.decode(json['oldState'], agent),
         newState = raritan.rpc.lhxmodel.Lhx.OpState.decode(json['newState'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 24
0
 def decode(cls, json, agent):
     obj = cls(
         oldMetaData = raritan.rpc.lhxmodel.Parameter.MetaData.decode(json['oldMetaData'], agent),
         newMetaData = raritan.rpc.lhxmodel.Parameter.MetaData.decode(json['newMetaData'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 25
0
 def getAuxiliaryPorts(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getAuxiliaryPorts', args)
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.portsmodel.Port, DecodeException)
     return _ret_
Ejemplo n.º 26
0
 def getCardReaders(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getCardReaders', args)
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.smartcard.CardReader, DecodeException)
     return _ret_
Ejemplo n.º 27
0
 def decode(cls, json, agent):
     obj = cls(
         oldMetaData = raritan.rpc.sensors.NumericSensor.MetaData.decode(json['oldMetaData'], agent),
         newMetaData = raritan.rpc.sensors.NumericSensor.MetaData.decode(json['newMetaData'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 28
0
 def decode(cls, json, agent):
     obj = cls(
         oldStatus = raritan.rpc.powerlogic.PowerMeter.ErrorStatus.decode(json['oldStatus'], agent),
         newStatus = raritan.rpc.powerlogic.PowerMeter.ErrorStatus.decode(json['newStatus'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 29
0
 def decode(cls, json, agent):
     obj = cls(
         oldProperties = raritan.rpc.portsmodel.Port.Properties.decode(json['oldProperties'], agent),
         newProperties = raritan.rpc.portsmodel.Port.Properties.decode(json['newProperties'], agent),
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 30
0
 def decode(cls, json, agent):
     obj = cls(
         state = raritan.rpc.hmi.InternalBeeper.State.decode(json['state']),
         reason = json['reason'],
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 31
0
 def decode(cls, json, agent):
     obj = cls(
         # for usermgmt.RoleEvent
         rolename = json['rolename'],
         # for event.UserEvent
         actUserName = json['actUserName'],
         actIpAddr = json['actIpAddr'],
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 32
0
 def decode(cls, json, agent):
     obj = cls(
         userName=json['userName'],
         ipAddr=json['ipAddr'],
         oldConfig=raritan.rpc.devsettings.Snmp.Configuration.decode(
             json['oldConfig'], agent),
         newConfig=raritan.rpc.devsettings.Snmp.Configuration.decode(
             json['newConfig'], agent),
         # for idl.Event
         source=Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 33
0
 def decode(cls, json, agent):
     obj = cls(
         userName=json["userName"],
         ipAddr=json["ipAddr"],
         oldConfig=raritan.rpc.devsettings.Snmp.Configuration.decode(
             json["oldConfig"], agent),
         newConfig=raritan.rpc.devsettings.Snmp.Configuration.decode(
             json["newConfig"], agent),
         # for idl.Event
         source=Interface.decode(json["source"], agent),
     )
     return obj
Ejemplo n.º 34
0
 def decode(cls, json, agent):
     obj = cls(
         oldSettings = raritan.rpc.usermgmt.UserInfo.decode(json['oldSettings'], agent),
         newSettings = raritan.rpc.usermgmt.UserInfo.decode(json['newSettings'], agent),
         # for usermgmt.AccountEvent
         username = json['username'],
         # for event.UserEvent
         actUserName = json['actUserName'],
         actIpAddr = json['actIpAddr'],
         # for idl.Event
         source = Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 35
0
 def getChannel(self, webcam, clientType):
     agent = self.agent
     typecheck.is_interface(webcam, raritan.rpc.webcam.Webcam, AssertionError)
     typecheck.is_string(clientType, AssertionError)
     args = {}
     args['webcam'] = Interface.encode(webcam)
     args['clientType'] = clientType
     rsp = agent.json_rpc(self.target, 'getChannel', args)
     _ret_ = rsp['_ret_']
     channel = Interface.decode(rsp['channel'], agent)
     typecheck.is_int(_ret_, DecodeException)
     typecheck.is_interface(channel, raritan.rpc.webcam.Channel, DecodeException)
     return (_ret_, channel)
Ejemplo n.º 36
0
 def decode(cls, json, agent):
     obj = cls(
         oldSettings=raritan.rpc.security.PasswordSettings.decode(
             json['oldSettings'], agent),
         newSettings=raritan.rpc.security.PasswordSettings.decode(
             json['newSettings'], agent),
         # for event.UserEvent
         actUserName=json['actUserName'],
         actIpAddr=json['actIpAddr'],
         # for idl.Event
         source=Interface.decode(json['source'], agent),
     )
     return obj
Ejemplo n.º 37
0
 def decode(cls, json, agent):
     obj = cls(
         oldSettings=raritan.rpc.emdmodel.Emd.Settings.decode(
             json["oldSettings"], agent),
         newSettings=raritan.rpc.emdmodel.Emd.Settings.decode(
             json["newSettings"], agent),
         # for event.UserEvent
         actUserName=json["actUserName"],
         actIpAddr=json["actIpAddr"],
         # for idl.Event
         source=Interface.decode(json["source"], agent),
     )
     return obj
Ejemplo n.º 38
0
 def decode(cls, json, agent):
     obj = cls(
         oldSettings=raritan.rpc.usermgmt.Role.Info.decode(
             json["oldSettings"], agent),
         newSettings=raritan.rpc.usermgmt.Role.Info.decode(
             json["newSettings"], agent),
         # for usermgmt.RoleEvent
         rolename=json["rolename"],
         # for event.UserEvent
         actUserName=json["actUserName"],
         actIpAddr=json["actIpAddr"],
         # for idl.Event
         source=Interface.decode(json["source"], agent),
     )
     return obj
Ejemplo n.º 39
0
 def decode(rsp, agent):
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.portsmodel.Port,
                                DecodeException)
     return _ret_
Ejemplo n.º 40
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.hmi.InternalBeeper,
                            DecodeException)
     return _ret_
Ejemplo n.º 41
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.peripheral.DeviceManager,
                            DecodeException)
     return _ret_
Ejemplo n.º 42
0
 def decode(cls, json, agent):
     obj = cls(source=Interface.decode(json["source"], agent), )
     return obj
Ejemplo n.º 43
0
 def decode(rsp, agent):
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.test.Display,
                                DecodeException)
     return _ret_
Ejemplo n.º 44
0
 def decode(cls, json, agent):
     obj = cls(
         type=raritan.rpc.TypeInfo.decode(json['type']),
         src=Interface.decode(json['src'], agent),
     )
     return obj
Ejemplo n.º 45
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_remote_obj(_ret_, DecodeException)
     return _ret_
Ejemplo n.º 46
0
 def decode(cls, json, agent):
     obj = cls(
         index = int(json['index']),
         webcam = Interface.decode(json['webcam'], agent),
     )
     return obj
Ejemplo n.º 47
0
 def decode(cls, json, agent):
     obj = cls(
         index=int(json["index"]),
         webcam=Interface.decode(json["webcam"], agent),
     )
     return obj
Ejemplo n.º 48
0
 def decode(rsp, agent):
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.smartcard.CardReader,
                                DecodeException)
     return _ret_
Ejemplo n.º 49
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.smartcard.CardReader,
                            DecodeException)
     return _ret_
Ejemplo n.º 50
0
 def decode(rsp, agent):
     _ret_ = rsp['_ret_']
     channel = Interface.decode(rsp['channel'], agent)
     typecheck.is_int(_ret_, DecodeException)
     typecheck.is_interface(channel, raritan.rpc.webcam.Channel, DecodeException)
     return (_ret_, channel)
Ejemplo n.º 51
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.sensors.Logger,
                            DecodeException)
     return _ret_
Ejemplo n.º 52
0
 def decode(rsp, agent):
     _ret_ = dict([(elem['key'], Interface.decode(elem['value'], agent))
                   for elem in rsp['_ret_']])
     return _ret_
Ejemplo n.º 53
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.tfw.ScannerCtrl,
                            DecodeException)
     return _ret_
Ejemplo n.º 54
0
 def decode(rsp, agent):
     _ret_ = [Interface.decode(x0, agent) for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_interface(x0, raritan.rpc.webcam.Channel, DecodeException)
     return _ret_
Ejemplo n.º 55
0
 def decode(rsp, agent):
     _ret_ = Interface.decode(rsp['_ret_'], agent)
     typecheck.is_interface(_ret_, raritan.rpc.webcam.Webcam, DecodeException)
     return _ret_