isoxml-angular
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
81 lines (80 loc) • 2.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskControllerCapabilities = void 0;
const classRegistry_1 = require("../classRegistry");
const utils_1 = require("../utils");
const ATTRIBUTES = {
A: {
name: "TaskControllerControlFunctionNAME",
type: "xs:hexBinary",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
},
B: {
name: "TaskControllerDesignator",
type: "xs:string",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
},
C: {
name: "VersionNumber",
type: "xs:NMTOKEN",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
},
D: {
name: "ProvidedCapabilities",
type: "xs:unsignedByte",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
minValue: 0,
maxValue: 63,
},
E: {
name: "NumberOfBoomsSectionControl",
type: "xs:unsignedByte",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
minValue: 0,
maxValue: 254,
},
F: {
name: "NumberOfSectionsSectionControl",
type: "xs:unsignedByte",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
minValue: 0,
maxValue: 254,
},
G: {
name: "NumberOfControlChannels",
type: "xs:unsignedByte",
isPrimaryId: false,
isOptional: false,
isOnlyV4: undefined,
minValue: 0,
maxValue: 254,
},
};
const CHILD_TAGS = {};
class TaskControllerCapabilities {
constructor(attributes, isoxmlManager) {
this.attributes = attributes;
this.isoxmlManager = isoxmlManager;
this.tag = "TCC" /* TAGS.TaskControllerCapabilities */;
}
static fromXML(xml, isoxmlManager, internalId, targetClass = TaskControllerCapabilities) {
return (0, utils_1.fromXML)(xml, isoxmlManager, targetClass, ATTRIBUTES, CHILD_TAGS, internalId);
}
toXML() {
return (0, utils_1.toXML)(this, ATTRIBUTES, CHILD_TAGS);
}
}
exports.TaskControllerCapabilities = TaskControllerCapabilities;
(0, classRegistry_1.registerEntityClass)("main", "TCC" /* TAGS.TaskControllerCapabilities */, TaskControllerCapabilities);