def decode(cls, json, agent): obj = cls( cardReader = Interface.decode(json['cardReader'], agent), # for idl.Event source = Interface.decode(json['source'], agent), ) return obj
def decode(cls, json, agent): obj = cls( webcam = Interface.decode(json['webcam'], agent), # for idl.Event source = Interface.decode(json['source'], agent), ) return obj
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
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
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
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
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
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
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
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_
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_
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_
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_
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
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
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
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
def decode(cls, json, agent): obj = cls( number = json['number'], # for idl.Event source = Interface.decode(json['source'], agent), ) return obj
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
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
def decode(cls, json, agent): obj = cls( webcam = Interface.decode(json['webcam'], agent), interval = json['interval'], count = json['count'], done = json['done'], ) return obj
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_
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
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
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_
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_
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
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
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
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
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
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
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
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
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)
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
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
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
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_
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.hmi.InternalBeeper, DecodeException) return _ret_
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.peripheral.DeviceManager, DecodeException) return _ret_
def decode(cls, json, agent): obj = cls(source=Interface.decode(json["source"], agent), ) return obj
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_
def decode(cls, json, agent): obj = cls( type=raritan.rpc.TypeInfo.decode(json['type']), src=Interface.decode(json['src'], agent), ) return obj
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_remote_obj(_ret_, DecodeException) return _ret_
def decode(cls, json, agent): obj = cls( index = int(json['index']), webcam = Interface.decode(json['webcam'], agent), ) return obj
def decode(cls, json, agent): obj = cls( index=int(json["index"]), webcam=Interface.decode(json["webcam"], agent), ) return obj
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_
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.smartcard.CardReader, DecodeException) return _ret_
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)
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.sensors.Logger, DecodeException) return _ret_
def decode(rsp, agent): _ret_ = dict([(elem['key'], Interface.decode(elem['value'], agent)) for elem in rsp['_ret_']]) return _ret_
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.tfw.ScannerCtrl, DecodeException) return _ret_
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_
def decode(rsp, agent): _ret_ = Interface.decode(rsp['_ret_'], agent) typecheck.is_interface(_ret_, raritan.rpc.webcam.Webcam, DecodeException) return _ret_