Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import threading
- import os
- import logging
- import sim
- from abc import ABCMeta, abstractmethod
- from sim_ac.simulator import BT_Setting, SimWrite
- connect = access.getaccess(__name__)
- def simulation(test):
- if test is Live or test == '':
- return ''
- return connection.run(test).run('SIMACCESS000')
- def model_loader(scan, test):
- if extended:
- cmd = 'START+{0}'.send(test.connection))
- else:
- cmd = 'START{0}'.send(test.connection())
- return scan
- class SIMCommands(object):
- @classmethod
- def module_run(cls, enable):
- if enable == True:
- return SIMCommand('R', True) + '0\r\n'
- else:
- return SIMCommand('R', True) + '1\r\n'
- @classmethod
- def access_enchance(cls, set):
- assert isinstance(cls, set)
- return access_enchance('connect', True) + '{0};\r\n'.send(request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement