Class DeviceRegistryAas
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryAas
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.iip_aas.AasContributor
public class DeviceRegistryAas
extends Object
implements de.iip_ecosphere.platform.support.iip_aas.AasContributor
A Asset Administration Shell for device registry functionalities.
Mostly called by
DeviceManagement and
devices itself.- Author:
- Dennis Pidun, University of Hildesheim
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
de.iip_ecosphere.platform.support.iip_aas.AasContributor.Kind -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.aas.AascontributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator) Basically registers the aas for the device registry.voidcontributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Defines the operations details.de.iip_ecosphere.platform.support.iip_aas.AasContributor.KindgetKind()This aas is aKind.ACTIVE.private static StringReturns a qualified name within this submodel.booleanisValid()In case this code is used as library one doesn't want that the aas is setup.static voidnotifyDeviceAdded(String managedId, String resourceId, String resourceIp) Notify the DeviceRegistryAas if a device was added, so it can manage and build dynamic parts for this device.static voidnotifyDeviceRemoved(String resourceId) Notify the DeviceRegistryAas if a device was removed, so it can remove entries of the managed device.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
exists, getAasAuthentication, getSubmodelAuthentication
-
Field Details
-
NAME_SUBMODEL
- See Also:
-
NAME_COLL_DEVICE_REGISTRY
- See Also:
-
NAME_PROP_DEVICE_RESOURCE
- See Also:
-
NAME_PROP_MANAGED_DEVICE_ID
- See Also:
-
NAME_PROP_DEVICE_IP
- See Also:
-
NAME_OP_DEVICE_ADD
- See Also:
-
NAME_OP_DEVICE_REMOVE
- See Also:
-
NAME_OP_IM_ALIVE
- See Also:
-
NAME_OP_SEND_TELEMETRY
- See Also:
-
-
Constructor Details
-
DeviceRegistryAas
public DeviceRegistryAas()
-
-
Method Details
-
contributeTo
public de.iip_ecosphere.platform.support.aas.Aas contributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator) Basically registers the aas for the device registry.- Specified by:
contributeToin interfacede.iip_ecosphere.platform.support.iip_aas.AasContributor- Parameters:
aasBuilder- the aasBuilder to contributeToiCreator- an InvocablesCreator- Returns:
- null
-
contributeTo
public void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Defines the operations details.- Specified by:
contributeToin interfacede.iip_ecosphere.platform.support.iip_aas.AasContributor- Parameters:
sBuilder- the ProtocolServerBuilder
-
getQName
Returns a qualified name within this submodel.- Parameters:
name- the name to be turned into a qualified name- Returns:
- the qualified name
-
getKind
public de.iip_ecosphere.platform.support.iip_aas.AasContributor.Kind getKind()This aas is aKind.ACTIVE.- Specified by:
getKindin interfacede.iip_ecosphere.platform.support.iip_aas.AasContributor- Returns:
- Kind.ACTIVE.
-
isValid
public boolean isValid()In case this code is used as library one doesn't want that the aas is setup.- Specified by:
isValidin interfacede.iip_ecosphere.platform.support.iip_aas.AasContributor- Returns:
trueif code based is not used as a library and the aas should be deployed.
-
notifyDeviceAdded
Notify the DeviceRegistryAas if a device was added, so it can manage and build dynamic parts for this device.- Parameters:
managedId- the internal/managed id, could be the same as resourceIdresourceId- the resource idresourceIp- the ip address of the resource
-
notifyDeviceRemoved
Notify the DeviceRegistryAas if a device was removed, so it can remove entries of the managed device.- Parameters:
resourceId- the id of the resource
-