UAVariable.ts 815 B

12345678910111213141516171819202122232425262728293031
  1. import { XMLElem } from "@/util/XmlElem";
  2. import { UABaseNode, type UABaseNodeOptions } from "./UABaseNode";
  3. import type { NamespaceTable } from "./NameSpaceTable";
  4. import type { IAddressSpace } from "./IAddressSpace";
  5. export class UAVariable extends UABaseNode {
  6. constructor(options: UAVariableNodeOptions) {
  7. super(options);
  8. this.nodeClass="Variable";
  9. }
  10. static fromXML(uaObject: any, addressSpace: IAddressSpace): UAVariable{
  11. const bn=super.fromXML(uaObject, addressSpace)
  12. return new UAVariable(bn as UABaseNodeOptions);
  13. }
  14. toXML(lnst:NamespaceTable, gnst:NamespaceTable): XMLElem {
  15. const elem=super.toXML(lnst, gnst);
  16. return elem;
  17. }
  18. }
  19. export interface UAVariableNodeOptions extends UABaseNodeOptions{
  20. }