Harald Welte | 7a23af3 | 2011-02-07 21:24:26 +0100 | [diff] [blame] | 1 | -- Generated by Asnp, the pretty-printer of France Telecom R&D (http://asn1.elibel.tm.fr/asnp/) |
| 2 | Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t remote-operations(4) |
| 3 | generic-ROS-PDUs(6) version1(0)} |
| 4 | |
| 5 | DEFINITIONS IMPLICIT TAGS |
| 6 | |
| 7 | ::= |
| 8 | |
| 9 | BEGIN |
| 10 | |
| 11 | -- exports everything |
| 12 | IMPORTS |
| 13 | OPERATION, ERROR |
| 14 | FROM Remote-Operations-Information-Objects {joint-iso-itu-t |
| 15 | remote-operations(4) informationObjects(5) version1(0)}; |
| 16 | |
| 17 | ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::= |
| 18 | CHOICE { |
| 19 | invoke [1] Invoke{{InvokeIdSet}, {Invokable}}, |
| 20 | returnResult [2] ReturnResult{{Returnable}}, |
| 21 | returnError [3] ReturnError{{Errors {{Returnable}}}}, |
| 22 | reject [4] Reject |
| 23 | } |
| 24 | (CONSTRAINED BY { -- must conform to the above definition --} ! |
| 25 | RejectProblem:general-unrecognizedPDU) |
| 26 | |
| 27 | Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE { |
| 28 | invokeId |
| 29 | InvokeId(InvokeIdSet) |
| 30 | (CONSTRAINED BY { -- must be unambiguous --} ! |
| 31 | RejectProblem:invoke-duplicateInvocation), |
| 32 | linkedId |
| 33 | CHOICE {present [0] IMPLICIT present < InvokeId, |
| 34 | absent [1] IMPLICIT NULL |
| 35 | } |
| 36 | (CONSTRAINED BY { -- must identify an outstanding operation --} ! |
| 37 | RejectProblem:invoke-unrecognizedLinkedId) |
| 38 | (CONSTRAINED BY { -- which has one or more linked operations--} ! |
| 39 | RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL, |
| 40 | opcode |
| 41 | OPERATION.&operationCode |
| 42 | ({Operations} !RejectProblem:invoke-unrecognizedOperation), |
| 43 | argument |
| 44 | OPERATION.&ArgumentType |
| 45 | ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL |
| 46 | } |
| 47 | (CONSTRAINED BY { -- must conform to the above definition --} ! |
| 48 | RejectProblem:general-mistypedPDU) |
| 49 | (WITH COMPONENTS { |
| 50 | ..., |
| 51 | linkedId ABSENT |
| 52 | } | |
| 53 | WITH COMPONENTS { |
| 54 | ..., |
| 55 | linkedId PRESENT, |
| 56 | opcode (CONSTRAINED BY { -- must be in the &Linked field of the associated operation -- |
| 57 | } !RejectProblem:invoke-unexpectedLinkedOperation) |
| 58 | }) |
| 59 | |
| 60 | -- continued on the next page |
| 61 | ReturnResult{OPERATION:Operations} ::= SEQUENCE { |
| 62 | invokeId |
| 63 | InvokeId |
| 64 | (CONSTRAINED BY { -- must be that for an outstanding operation --} ! |
| 65 | RejectProblem:returnResult-unrecognizedInvocation) |
| 66 | (CONSTRAINED BY { -- which returns a result --} ! |
| 67 | RejectProblem:returnResult-resultResponseUnexpected), |
| 68 | result |
| 69 | SEQUENCE {opcode |
| 70 | OPERATION.&operationCode({Operations}) |
| 71 | (CONSTRAINED BY { -- identified by invokeId --} ! |
| 72 | RejectProblem:returnResult-unrecognizedInvocation), |
| 73 | result |
| 74 | OPERATION.&ResultType |
| 75 | ({Operations}{@.opcode} ! |
| 76 | RejectProblem:returnResult-mistypedResult)} OPTIONAL |
| 77 | } |
| 78 | (CONSTRAINED BY { -- must conform to the above definition --} ! |
| 79 | RejectProblem:general-mistypedPDU) |
| 80 | |
| 81 | ReturnError{ERROR:Errors} ::= SEQUENCE { |
| 82 | invokeId |
| 83 | InvokeId |
| 84 | (CONSTRAINED BY { -- must be that for an outstanding operation --} ! |
| 85 | RejectProblem:returnError-unrecognizedInvocation) |
| 86 | (CONSTRAINED BY { -- which returns an error --} ! |
| 87 | RejectProblem:returnError-errorResponseUnexpected), |
| 88 | errcode |
| 89 | ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError) |
| 90 | (CONSTRAINED BY { -- must be in the &Errors field of the associated operation -- |
| 91 | } !RejectProblem:returnError-unexpectedError), |
| 92 | parameter |
| 93 | ERROR.&ParameterType |
| 94 | ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter) |
| 95 | OPTIONAL |
| 96 | } |
| 97 | (CONSTRAINED BY { -- must conform to the above definition --} ! |
| 98 | RejectProblem:general-mistypedPDU) |
| 99 | |
| 100 | Reject ::= SEQUENCE { |
| 101 | invokeId InvokeId, |
| 102 | problem |
| 103 | CHOICE {general [0] GeneralProblem, |
| 104 | invoke [1] InvokeProblem, |
| 105 | returnResult [2] ReturnResultProblem, |
| 106 | returnError [3] ReturnErrorProblem} |
| 107 | } |
| 108 | (CONSTRAINED BY { -- must conform to the above definition --} ! |
| 109 | RejectProblem:general-mistypedPDU) |
| 110 | |
| 111 | GeneralProblem ::= INTEGER { |
| 112 | unrecognizedPDU(0), mistypedPDU(1), badlyStructuredPDU(2)} |
| 113 | |
| 114 | -- continued on the next page |
| 115 | InvokeProblem ::= INTEGER { |
| 116 | duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2), |
| 117 | resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5), |
| 118 | linkedResponseUnexpected(6), unexpectedLinkedOperation(7)} |
| 119 | |
| 120 | ReturnResultProblem ::= INTEGER { |
| 121 | unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2) |
| 122 | } |
| 123 | |
| 124 | ReturnErrorProblem ::= INTEGER { |
| 125 | unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2), |
| 126 | unexpectedError(3), mistypedParameter(4)} |
| 127 | |
| 128 | RejectProblem ::= INTEGER { |
| 129 | general-unrecognizedPDU(0), general-mistypedPDU(1), |
| 130 | general-badlyStructuredPDU(2), invoke-duplicateInvocation(10), |
| 131 | invoke-unrecognizedOperation(11), invoke-mistypedArgument(12), |
| 132 | invoke-resourceLimitation(13), invoke-releaseInProgress(14), |
| 133 | invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16), |
| 134 | invoke-unexpectedLinkedOperation(17), |
| 135 | returnResult-unrecognizedInvocation(20), |
| 136 | returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22), |
| 137 | returnError-unrecognizedInvocation(30), |
| 138 | returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32), |
| 139 | returnError-unexpectedError(33), returnError-mistypedParameter(34)} |
| 140 | |
| 141 | InvokeId ::= CHOICE {present INTEGER, |
| 142 | absent NULL |
| 143 | } |
| 144 | |
| 145 | noInvokeId InvokeId ::= absent:NULL |
| 146 | |
| 147 | NoInvokeId InvokeId ::= {noInvokeId} |
| 148 | |
| 149 | Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors} |
| 150 | |
| 151 | -- continued on the next page |
| 152 | Bind{OPERATION:operation} ::= CHOICE { |
| 153 | bind-invoke [16] OPERATION.&ArgumentType({operation}), |
| 154 | bind-result [17] OPERATION.&ResultType({operation}), |
| 155 | bind-error [18] OPERATION.&Errors.&ParameterType({operation}) |
| 156 | } |
| 157 | |
| 158 | Unbind{OPERATION:operation} ::= CHOICE { |
| 159 | unbind-invoke [19] OPERATION.&ArgumentType({operation}), |
| 160 | unbind-result [20] OPERATION.&ResultType({operation}), |
| 161 | unbind-error [21] OPERATION.&Errors.&ParameterType({operation}) |
| 162 | } |
| 163 | |
| 164 | END -- end of generic ROS PDU definitions |
| 165 | |
| 166 | -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D |
| 167 | |