The Address Space instance of the current OPC UA Server.
The Address Space instance of the current OPC UA Server.
The absolute path to the CoreAAS xml file.
A Map containing all the Identifiables' ids as key and the relevant UAObject as value. This attribute can be useful to implement function to resolve AAS References into Objects in the AddressSpace.
The complete URI of CoreAAS.
The Constructor of the Identifier Structured DataType.
The Constructor of the Key Structured DataType.
The Namespace instance of the CoreAAS Information Model.
The Namespace instance of the current Namespace.
The namespace index of the CoreAAS Information Model
Create an instance of FileType ObjectType in the AddressSpace.
Create an instance of AASReferenceType ObjectType in the AddressSpace.
Create an instance of ViewType ObjectType in the AddressSpace.
Create an AdministrativeInformation Object in the AddressSpace.
Create an instance of AnnotatedRelationshipElementType ObjectType in the AddressSpace.
Create an instance of AssetType ObjectType in the AddressSpace.
Create and returns an instance of AASType ObjectType in the AddressSpace.
Create an instance of CapabilityType ObjectType in the AddressSpace.
Create an instance of ConceptDescriptionType ObjectType in the AddressSpace.
Create an instance of ConceptDictionaryType ObjectType in the AddressSpace.
Create an instance of DataSpecificationIEC61360Type ObjectType in the AddressSpace.
Create an instance of EmbeddedDataSpecificationType ObjectType in the AddressSpace.
Create an instance of EntityType ObjectType in the AddressSpace.
Create an instance of RangeType ObjectType in the AddressSpace.
Create an instance of ReferenceElementType ObjectType in the AddressSpace.
Create an instance of RelationshipElementType ObjectType in the AddressSpace.
Create an instance of SubmodelType ObjectType in the AddressSpace.
Create an instance of SubmodelElementCollectionType ObjectType in the AddressSpace.
Create an instance of SubmodelPropertyType ObjectType in the AddressSpace.
This function look in the AddressSpace for the entity Object pointed by ref and returns an UAObject eventually.
Two version of this function exist: the version with a callback and the version with the return value. Using a callback avoid this
function to return a value, and viceversa.
An AASReferenceType Instance representing the the AAS reference to fetch.
A callback function that receive an Error as first parameter or the found Object as second parameter.
example:
//The following AAS Reference is created as example. Let's supposte is already exists in the AddressSpace.
let ref = server.coreaas.addAASReference({
organizedBy: aas_1,
browseName: "ereoto",
keys: [
new Key({
idType: KeyType.URI,
local: true,
type: KeyElements.Submodel,
value: "http://www.zvei.de/demo/submodel/12345679"
}),
new Key({
idType: KeyType.idShort,
local: true,
type: KeyElements.SubmodelElementCollection,
value: "Measurement"
}),
new Key({
idType: KeyType.idShort,
local: true,
type: KeyElements.Property,
value: "rotationSpeed"
})
]
});
//This version of the function use a callback.
server.coreaas.fetchAASReference(ref, function(err: Error , obj: UAObject) {
if (err) {
return console.log(err);
}
console.log(obj);
});
//This version of the function retruns the value or null otherwise.
let result = server.coreaas.fetchAASReference(ref);
console.log(result);
Find and returns a DataType in the CoreAAS Namespace, otherwise return null.
The name of the DataType to find.
Find and returns an ObjectType in the CoreAAS Namespace, otherwise return null.
The name of the ObjectType to find.
Find and returns a ReferenceType in the CoreAAS Namespace, otherwise return null.
The name of the ReferenceType to find.
Returns the AASReferenceType ObjectType.
Returns the AASType ObjectType.
Returns the AdministrativeInformationType ObjectType.
Returns the AssetType ObjectType.
Generated using TypeDoc
This class represents the extension part of the OPC UA Server relevant to the CoreAAS Information Model.
An instance of CoreAASExtension provides all the methods to populate the AddressSpace with instances of the ObjectTypes coming from CoreAAS.
Furthermore it provides the Constructors for the Structured DataType defined in CoreAAS and lot of utilities methods to find Nodes in the Namespace of CoreAAS.