Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* @author STF 370
* @version $Id$
* @desc xxx
*/
module LibUpperTester {
import from LibCommon_VerdictControl {type FncRetCode;}
import from LibIot_TypesAndValues {type Status;}
// TODO - move to common lib
/*type record Status {
FncRetCode code, charstring reason optional
}*/
// TODO commented out due to problems with tools not accepting 'extends' from several components
/**
* @desc
* This component type is used to trigger, stimualte, configure etc any
* equipment related to the test, i.e., EUTs or other, or the
* interconnecting network. To be used as PTC.
*/
// type component EquipmentUser {
// port EquipmentAccessPort eaPort;
// timer T_Equipment;
// }
group equipmentOperationTypes {
type record of charstring ParameterList;
type charstring EquipmentCommand;
type record EquipmentOperationReq {
EquipmentCommand cmd, ParameterList params optional
}
type record EquipmentOperationRsp {
Status status
}
}
with{
encode "LibUpperTesterCodec"
}
group equipmentOperationTemplates {
template EquipmentOperationReq m_EQ_Request(in EquipmentCommand p_cmd, ParameterList p_params) := {
cmd := p_cmd,
params := p_params
}
template EquipmentOperationRsp mw_EO_Response(in template FncRetCode p_code) := {
status := {
code := p_code,
reason := *
}
}
}
}