Various examples using the C and C++ DIM APIs.
You can execute some tests/examples from the 'tests' directory. These scripts can be used as examples of the module's functionality.
def __init__ | ( | self, | ||
name, | ||||
clients, | ||||
updates = 10 | ||||
) | [inherited] |
Definition at line 40 of file test_dimc_service.py.
def client_callback1 | ( | self, | ||
args | ||||
) | [inherited] |
Definition at line 104 of file test_dimc_service.py.
def client_callback2 | ( | self, | ||
args | ||||
) | [inherited] |
Definition at line 108 of file test_dimc_service.py.
def client_callback3 | ( | self, | ||
args | ||||
) | [inherited] |
Definition at line 112 of file test_dimc_service.py.
def test_dimc_cmnd::dummy | ( | args | ) |
Definition at line 26 of file test_dimc_cmnd.py.
def run | ( | self | ) | [inherited] |
Definition at line 57 of file test_dimc_service.py.
def test_dimc_cmnd::server_create_command_services | ( | ) |
Definition at line 35 of file test_dimc_cmnd.py.
def service1 | ( | self | ) | [inherited] |
Definition at line 95 of file test_dimc_service.py.
def service2 | ( | self | ) | [inherited] |
Definition at line 98 of file test_dimc_service.py.
def service3 | ( | self | ) | [inherited] |
Definition at line 101 of file test_dimc_service.py.
def test_dimc_service::usage | ( | ) |
Definition at line 117 of file test_dimc_service.py.
tuple client_names = ("task1",) [static] |
Definition at line 130 of file test_dimc_service.py.
list client_names = sys.argv[2:] [static] |
Definition at line 128 of file test_dimc_service.py.
clients [inherited] |
Definition at line 43 of file test_dimc_service.py.
string CMND1FORMAT = "C" [static] |
Definition at line 22 of file test_dimc_cmnd.py.
string CMND2FORMAT = "F:2;D:2;I:1;S:1;C" [static] |
Definition at line 23 of file test_dimc_cmnd.py.
string CMND3FORMAT = "I" [static] |
Definition at line 24 of file test_dimc_cmnd.py.
int COMMAND_DELAY = 3 [static] |
Definition at line 20 of file test_dimc_cmnd.py.
int counter = 0 [static] |
Definition at line 53 of file test_dimc_cmnd.py.
float DELAY = 0.03 [static, inherited] |
Definition at line 38 of file test_dimc_service.py.
Definition at line 78 of file test_dimc_cmnd.py.
tuple myRpcComposite = PyRpcComposite() [static] |
Definition at line 108 of file test_dimRpcInfo.py.
tuple myRpcCompositeCaller = PyRpcCompositeInfo() [static] |
Definition at line 109 of file test_dimRpcInfo.py.
tuple myRpcFailCaller = PyRpcStringInfo('testRcp4') [static] |
Definition at line 111 of file test_dimRpcInfo.py.
tuple myRpcInt = PyRpcInt() [static] |
Definition at line 104 of file test_dimRpcInfo.py.
tuple myRpcIntCaller = PyRpcIntInfo() [static] |
Definition at line 105 of file test_dimRpcInfo.py.
tuple myRpcString = PyRpcString() [static] |
Definition at line 106 of file test_dimRpcInfo.py.
tuple myRpcStringCaller = PyRpcStringInfo() [static] |
Definition at line 107 of file test_dimRpcInfo.py.
tuple res = pydim.dic_cmnd_service('test3', list_args, CMND3FORMAT) [static] |
Definition at line 79 of file test_dimc_cmnd.py.
tuple res = pydim.dic_cmnd_service('test2', tuple_args, CMND2FORMAT) [static] |
Definition at line 69 of file test_dimc_cmnd.py.
tuple res = pydim.dic_cmnd_service('test1', tuple_args, CMND1FORMAT) [static] |
Definition at line 59 of file test_dimc_cmnd.py.
tuple res = dic_cmnd_service('STRESS_CMD', ('STRESSYOU!\0',), "C") [static] |
tuple s = dis_add_service("PYSTRESS_SVC", "I", service_callback, 0) [static] |
tuple si = dic_info_service("STRESS_SVC", "I", stress_callback) [static] |
string SRV1FORMAT = 'F:1;I:1;D:2;C:10;C' [static, inherited] |
Definition at line 35 of file test_dimc_service.py.
string SRV2FORMAT = 'D' [static, inherited] |
Definition at line 36 of file test_dimc_service.py.
string SRV2NAME = 'Test_Serv2_' [static, inherited] |
Definition at line 33 of file test_dimc_service.py.
string SRV3FORMAT = 'C' [static, inherited] |
Definition at line 37 of file test_dimc_service.py.
string SRV3NAME = 'Test_Serv3_' [static, inherited] |
Definition at line 34 of file test_dimc_service.py.
svc1 [inherited] |
Definition at line 44 of file test_dimc_service.py.
svc2 [inherited] |
Definition at line 47 of file test_dimc_service.py.
svc3 [inherited] |
Definition at line 50 of file test_dimc_service.py.
tuple task = DimTask(task_name, client_names, updates=10/DimTask.DELAY) [static] |
Definition at line 131 of file test_dimc_service.py.
string task_name = "task1" [static] |
Definition at line 127 of file test_dimc_service.py.
list task_name = sys.argv[1] [static] |
Definition at line 125 of file test_dimc_service.py.
tuple tuple_args = (counter, counter+1, counter*9, counter*1.9, counter, counter-1, 'ABRACADABRA') [static] |
Definition at line 68 of file test_dimc_cmnd.py.
tuple tuple_args = ('Test call no. %03d' %counter, ) [static] |
Definition at line 58 of file test_dimc_cmnd.py.
updates [inherited] |
Definition at line 42 of file test_dimc_service.py.