Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / asn1 / ros / ros.asn
blob262e9b231e620c9bce61fb2d7c93277aa162677f
1 -- Module Remote-Operations-Generic-ROS-PDUs (X.880:07/1994)
2 -- See also the README file
3 -- See also the index of all ASN.1 assignments needed in this Recommendation
6 Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t remote-operations(4)
7   generic-ROS-PDUs(6) version1(0)} DEFINITIONS IMPLICIT TAGS ::=
8 BEGIN
10 -- exports everything
11 IMPORTS
12   OPERATION, ERROR
13     FROM Remote-Operations-Information-Objects {joint-iso-itu-t
14       remote-operations(4) informationObjects(5) version1(0)};
18 ROS --{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} -- ::=
19   CHOICE {
20   invoke        [1]  Invoke --{{InvokeIdSet}, {Invokable}}--,
21   returnResult  [2]  ReturnResult --{{Returnable}}--,
22   returnError   [3]  ReturnError --{{Errors  {{Returnable}}}}--,
23   reject        [4]  Reject,
25   bind-invoke  [16]  --OPERATION.&ArgumentType({operation})-- ANY,
26   bind-result  [17]  --OPERATION.&ResultType({operation})-- ANY,
27   bind-error   [18]  --OPERATION.&Errors.&ParameterType({operation}) -- ANY,
29   unbind-invoke  [19]  --OPERATION.&ArgumentType({operation})-- ANY,
30   unbind-result  [20]  --OPERATION.&ResultType({operation})-- ANY,
31   unbind-error   [21]  --OPERATION.&Errors.&ParameterType({operation}) -- ANY
35 --(CONSTRAINED BY { - - must conform to the above definition - -} !
36 -- RejectProblem:general-unrecognizedPDU)
38 Invoke --{InvokeId:InvokeIdSet, OPERATION:Operations}-- ::= SEQUENCE {
39   invokeId
40     InvokeId --(InvokeIdSet)
41 --      (CONSTRAINED BY { - - must be unambiguous - -} !
42 --       RejectProblem:invoke-duplicateInvocation)--,
43   linkedId
44 --    CHOICE {present  [0] IMPLICIT present < InvokeId,
45 --            absent   [1] IMPLICIT NULL
46 --  }
47   [0] INTEGER
48 --  (CONSTRAINED BY { - - must identify an outstanding operation - -} !
49 --   RejectProblem:invoke-unrecognizedLinkedId)
50 --  (CONSTRAINED BY { - - which has one or more linked operations- -} !
51 --   RejectProblem:invoke-linkedResponseUnexpected)-- OPTIONAL,
52   opcode OperationCode
53 --    OPERATION.&operationCode
54 --      ({Operations} !RejectProblem:invoke-unrecognizedOperation)--,
55   argument
56 --    OPERATION.&ArgumentType
57 --      ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) -- ANY OPTIONAL
59 OperationCode ::= INTEGER
61 --(CONSTRAINED BY { - - must conform to the above definition - -} !
62 -- RejectProblem:general-mistypedPDU)
63 --(WITH COMPONENTS {
64 --   ...,
65 --   linkedId  ABSENT
66 -- } |
67 -- WITH COMPONENTS {
68 --   ...,
69 --   linkedId  PRESENT,
70 --   opcode    (CONSTRAINED BY { - - must be in the &Linked field of the associated operation - -
71 --                } !RejectProblem:invoke-unexpectedLinkedOperation)
72 -- })
74 -- continued on the next page
75 ReturnResult --{OPERATION:Operations}-- ::= SEQUENCE {
76   invokeId
77     InvokeId
78 --      (CONSTRAINED BY { - - must be that for an outstanding operation - -} !
79 --       RejectProblem:returnResult-unrecognizedInvocation)
80 --      (CONSTRAINED BY { - - which returns a result - -} !
81 --       RejectProblem:returnResult-resultResponseUnexpected)--,
82   result
83     SEQUENCE {opcode OperationCode
84 --                OPERATION.&operationCode({Operations})
85 --                  (CONSTRAINED BY { - - identified by invokeId - -} !
86 --                   RejectProblem:returnResult-unrecognizedInvocation)--,
87               result ANY
88 --                OPERATION.&ResultType
89 --                  ({Operations}{@.opcode} !
90 --                   RejectProblem:returnResult-mistypedResult) -- } OPTIONAL
92 --(CONSTRAINED BY { - - must conform to the above definition - -} !
93 -- RejectProblem:general-mistypedPDU)
95 ReturnError --{ERROR:Errors}-- ::= SEQUENCE {
96   invokeId
97     InvokeId
98 --      (CONSTRAINED BY { - - must be that for an outstanding operation - -} !
99 --       RejectProblem:returnError-unrecognizedInvocation)
100 --      (CONSTRAINED BY { - - which returns an error - -} !
101 --       RejectProblem:returnError-errorResponseUnexpected) --,
102   errcode ErrorCode
103 --    ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError)
104 --      (CONSTRAINED BY { - - must be in the &Errors field of the associated operation - -
105 --         } !RejectProblem:returnError-unexpectedError)--,
106   parameter ANY
107 --    ERROR.&ParameterType
108 --      ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter)
109       OPTIONAL
111 --(CONSTRAINED BY { - - must conform to the above definition - -} !
112 -- RejectProblem:general-mistypedPDU)
114 ErrorCode ::= INTEGER
116 Reject ::= SEQUENCE {
117   invokeId  InvokeId,
118   problem
119     CHOICE {general       [0]  GeneralProblem,
120             invoke        [1]  InvokeProblem,
121             returnResult  [2]  ReturnResultProblem,
122             returnError   [3]  ReturnErrorProblem}
124 --(CONSTRAINED BY { - - must conform to the above definition - -} !
125 -- RejectProblem:general-mistypedPDU)
127 GeneralProblem ::= INTEGER {
128   unrecognizedPDU(0), mistypedPDU(1), badlyStructuredPDU(2)}
130 -- continued on the next page
131 InvokeProblem ::= INTEGER {
132   duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2),
133   resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5),
134   linkedResponseUnexpected(6), unexpectedLinkedOperation(7)}
136 ReturnResultProblem ::= INTEGER {
137   unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2)
140 ReturnErrorProblem ::= INTEGER {
141   unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2),
142   unexpectedError(3), mistypedParameter(4)}
144 --RejectProblem ::= INTEGER {
145 --  general-unrecognizedPDU(0), general-mistypedPDU(1),
146 --  general-badlyStructuredPDU(2), invoke-duplicateInvocation(10),
147 --  invoke-unrecognizedOperation(11), invoke-mistypedArgument(12),
148 --  invoke-resourceLimitation(13), invoke-releaseInProgress(14),
149 --  invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16),
150 --  invoke-unexpectedLinkedOperation(17),
151 --  returnResult-unrecognizedInvocation(20),
152 --  returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22),
153 --  returnError-unrecognizedInvocation(30),
154 --  returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32),
155 --  returnError-unexpectedError(33), returnError-mistypedParameter(34)}
157 InvokeId ::= CHOICE {present  INTEGER,
158                      absent   NULL
161 --noInvokeId InvokeId ::= absent:NULL
163 --NoInvokeId InvokeId ::= {noInvokeId}
165 --Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors}
167 -- continued on the next page
168 --Bind{OPERATION:operation} ::= CHOICE {
169 --  bind-invoke  [16]  OPERATION.&ArgumentType({operation}),
170 --  bind-result  [17]  OPERATION.&ResultType({operation}),
171 --  bind-error   [18]  OPERATION.&Errors.&ParameterType({operation})
174 --Unbind{OPERATION:operation} ::= CHOICE {
175 --  unbind-invoke  [19]  OPERATION.&ArgumentType({operation}),
176 --  unbind-result  [20]  OPERATION.&ResultType({operation}),
177 --  unbind-error   [21]  OPERATION.&Errors.&ParameterType({operation})
181 --Code ::= CHOICE {
182 --  local INTEGER,
183 --  global OBJECT IDENTIFIER
186 --Priority ::= INTEGER
188 END -- end of generic ROS PDU definitions
190 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D