本文整理匯總了TypeScript中node-opcua-address-space.AddressSpace.create方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript AddressSpace.create方法的具體用法?TypeScript AddressSpace.create怎麽用?TypeScript AddressSpace.create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類node-opcua-address-space.AddressSpace
的用法示例。
在下文中一共展示了AddressSpace.create方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: before
before(async () => {
const xmlFiles = [
nodesets.standard
];
addressSpace = AddressSpace.create();
await generateAddressSpace(addressSpace, xmlFiles);
addressSpace.registerNamespace("Own");
});
示例2: beforeEach
beforeEach((done) => {
addressSpace = AddressSpace.create();
const namespaces: string[] = [
nodesets.standard_nodeset_file
];
generateAddressSpace(addressSpace, namespaces, (err?: Error) => {
done(err);
});
});
示例3: before
before(async () => {
await initializeHelpers();
await applicationGroup.initialize();
await userTokenGroup.initialize();
addressSpace = AddressSpace.create();
await generateAddressSpace(addressSpace, xmlFiles);
addressSpace.registerNamespace("Private");
});
示例4: before
before((done: (err: Error | null) => void) => {
addressSpace = AddressSpace.create();
const namespaces: string[] = [
nodesets.standard_nodeset_file
];
generateAddressSpace(addressSpace, namespaces, (err?: Error) => {
const namespace = addressSpace.registerNamespace("PRIVATENAMESPACE");
namespace.index.should.eql(1);
should.exist(addressSpace.getOwnNamespace());
addAggregateSupport(addressSpace);
h1 = createHistorian1(addressSpace);
h2 = createHistorian2(addressSpace);
h3 = createHistorian3(addressSpace);
h4 = createHistorian4(addressSpace);
done(err!);
});
});