@wildboar/rose
Version:
Remote Operation Service Element PDUs in TypeScript
42 lines (41 loc) • 1.19 kB
JavaScript
/**
* @summary combine
* @description
*
* **This production was manually written in TypeScript.**
*
* ### ASN.1 Definition:
*
* ```asn1
* combine{OPERATION-PACKAGE:ConsumerConsumes, OPERATION-PACKAGE:ConsumerSupplies,
* OPERATION-PACKAGE:base} OPERATION-PACKAGE ::= {
* OPERATIONS {ConsumerConsumes.&Both | ConsumerSupplies.&Both}
* CONSUMER INVOKES
* {ConsumerConsumes.&Consumer | ConsumerSupplies.&Supplier}
* SUPPLIER INVOKES
* {ConsumerConsumes.&Supplier | ConsumerSupplies.&Consumer}
* ID base.&id
* }
* ```
*/
export function combine(ConsumerConsumes, ConsumerSupplies, base) {
return {
class: "OPERATION-PACKAGE",
decoderFor: {},
encoderFor: {},
"&Both": [
...ConsumerConsumes["&Both"],
...ConsumerSupplies["&Both"],
],
"&Consumer": [
...ConsumerConsumes["&Consumer"],
...ConsumerSupplies["&Supplier"],
],
"&Supplier": [
...ConsumerConsumes["&Supplier"],
...ConsumerSupplies["&Consumer"],
],
"&id": base["&id"],
};
}
/* eslint-enable */