Advertisement
Guest User

ue9203-138

a guest
Aug 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.90 KB | None | 0 0
  1. import time
  2. import threading
  3. import os
  4. import logging
  5. import sim
  6. from abc import ABCMeta, abstractmethod
  7.  
  8. from sim_ac.simulator import BT_Setting, SimWrite
  9.  
  10. connect = access.getaccess(__name__)
  11.  
  12. def simulation(test):
  13.     if test is Live  or test == '':
  14.         return ''
  15.     return connection.run(test).run('SIMACCESS000')
  16.  
  17. def model_loader(scan, test):
  18.     if extended:
  19.         cmd = 'START+{0}'.send(test.connection))
  20.     else:
  21.         cmd = 'START{0}'.send(test.connection())
  22.     return scan
  23.  
  24. class SIMCommands(object):
  25.     @classmethod
  26.     def module_run(cls, enable):
  27.         if enable == True:
  28.             return SIMCommand('R', True) + '0\r\n'
  29.         else:
  30.             return SIMCommand('R', True) + '1\r\n'
  31.        
  32.     @classmethod
  33.     def access_enchance(cls, set):
  34.         assert isinstance(cls, set)
  35.         return access_enchance('connect', True) + '{0};\r\n'.send(request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement