def __init__(self, name, model, eqt_params, bench_params, rat="2G3G"): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters :type rat: str :param rat: RAT used by equipment: combination of 2G, 3G or TD-SCDMA note 3G and TD-SCDMA are exclusive """ ICellNetSim.__init__(self) # Construct DllLoader object DllLoader.__init__(self, name, model, eqt_params) # Initialize attributes self.__name = name self.__model = model self.__eqt_params = eqt_params self.__bench_params = bench_params self.__cell2g = None self.__cell3g = None self.__handle = None # pyvisa interface connection self.__visa = None # Initialize features self.__init_features(rat)
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ IIOCard.__init__(self) DllLoader.__init__(self, name, model, eqt_params) self.__bench_params = bench_params self.__device_index = -1 self.__wall_charger = None self._use_ext_ps = None self.__default_battery = None self.__ext_ps_plug = False # MAP PHONE BUTTON here self.PHONE_BUTTON = { ACBN.VOLUME_UP: self.LINES.button_ctrl21, ACBN.VOLUME_DOWN: self.LINES.button_ctrl20, ACBN.PWR_BUTTON: self.LINES.button_ctrl12 } # define what is usb host pc self.ACCESSORY_TO_ACB[self.USB_HOST_PC] = self.ACCESSORY_TO_ACB[ self.SDP] self.ACCESSORY_TO_ACB[self.WALL_CHARGER] = []
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ ICellNetSim.__init__(self) # Construct DllLoader object DllLoader.__init__(self, name, model, eqt_params) # Initialize attributes self.__name = name self.__model = model self.__eqt_params = eqt_params self.__bench_params = bench_params self.__bench_params = bench_params self.__cell2g = None self.__cell3g = None self.__handle = None # pyvisa interface connection self.__visa = None # Initialize features self.__init_features()
def __init__(self, name, model, eqt_params, bench_params): """ Constructor """ # Initialize class parent EquipmentBase.__init__(self, name, model, eqt_params) DllLoader.__init__(self, name, model, eqt_params) self._serial_number = str(bench_params.get_param_value("SerialNumber")) self._model_name = str(bench_params.get_param_value("EqtModel")) self._dll = None self._device_id = None self._max_attenuation = None self._min_attenuation = None self._test_mode = self.TEST_MODE
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment catalog parameters :type bench_params: dict :param bench_params: the dictionary containing bench parameters of the equipment """ IBTNetSim.__init__(self) DllLoader.__init__(self, name, model, eqt_params) self.__bench_params = bench_params self.__handle = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ IIOCard.__init__(self) DllLoader.__init__(self, name, model, eqt_params) self.__bench_params = bench_params self.__device_index = -1 self.__wall_charger = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ IWLanNetSim.__init__(self) # Construct DllLoader object DllLoader.__init__(self, name, model, eqt_params) # Initialize attributes self.__bench_params = bench_params self.__handle = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ DllLoader.__init__(self, name, model, eqt_params) IIOAdapter.__init__(self) self.__bench_params = bench_params self.__diolan_wrapper = None self.__diolan_device_id = None self.__handle = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ DllLoader.__init__(self, name, model, eqt_params) IIOCard.__init__(self) self.__bench_params = bench_params self.__wiring_table = 0 self.__usb_host_pc_connect_relay = 0 self.__switch_on_off_relay = 0 self.__jwork_wrapper = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ IIOCard.__init__(self) DllLoader.__init__(self, name, model, eqt_params) self.__default_pwr_btn = bench_params.get_param_value( "DEFAULT_POWER_BUTTON", "") self.__default_usb_no = bench_params.get_param_value("DEFAULT_USB", "") self.__bench_params = bench_params self.__device_index = -1 self.__wall_charger = None
def __init__(self, name, model, eqt_params, bench_params): """ Constructor :type name: str :param name: the bench configuration name of the equipment :type model: str :param model: the model of the equipment :type eqt_params: dict :param eqt_params: the dictionary containing equipment parameters :type bench_params: dict :param bench_params: the dictionary containing equipment bench parameters """ IPowerSupply.__init__(self) # Construct DllLoader object DllLoader.__init__(self, name, model, eqt_params) # Initialize attributes self.__bench_params = bench_params self.__handle = None self.__eqt_params = eqt_params self.__visa = None self.__name = name self.__model = model self._max_range_value = self.__CTS_LOW_VOLTAGE_RANGE