Class DeviceManagementAas
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.DeviceManagementAas
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.iip_aas.AasContributor
public class DeviceManagementAas
extends Object
implements de.iip_ecosphere.platform.support.iip_aas.AasContributor
A Asset Administration Shell for device management functionalities.
Mostly called by northbound services. A device should not rely on these functionalities.
- 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 management.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 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 voidnotifySetConfig(String id, String downloadUri, String location) Notify the aas if a new config should be set.static voidnotifyUpdateRuntime(String id, String downloadUrl) Notify if a device needs an update and redirect the request.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_MANAGER
- See Also:
-
NAME_OP_UPDATE_RUNTIME
- See Also:
-
NAME_OP_ESTABLISH_SSH
- See Also:
-
NAME_OP_SET_CONFIG
- See Also:
-
ECS_UPDATE_URI
- See Also:
-
-
Constructor Details
-
DeviceManagementAas
public DeviceManagementAas()
-
-
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 management.- 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
-
notifySetConfig
Notify the aas if a new config should be set. This method will redirect the request to the aas of the resource id.- Parameters:
id- the device iddownloadUri- the download urilocation- the location to put the configuration relative to /
-
notifyUpdateRuntime
Notify if a device needs an update and redirect the request.- Parameters:
id- the device iddownloadUrl- the download url
-
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.
-