Class SubmodelElementsCollectionClient
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
de.iip_ecosphere.platform.support.iip_aas.SubmodelElementsCollectionClient
A
SubmodelClient which obtains properties and operations defined in a submodel elements collection.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubmodelElementsCollectionClient(de.iip_ecosphere.platform.support.aas.Submodel submodel, String collectionId) Creates a client instance based on the givensubmodel.SubmodelElementsCollectionClient(String submodel, String collectionId) Creates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a specified submodel and a collection id.SubmodelElementsCollectionClient(String submodel, String collectionId, de.iip_ecosphere.platform.support.aas.Submodel fallback) Creates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a specified submodel and a collection id. -
Method Summary
Modifier and TypeMethodDescriptionprotected de.iip_ecosphere.platform.support.logging.LoggerReturns the logger instance.protected de.iip_ecosphere.platform.support.aas.OperationgetOperation(String idShort) Returns the operation for the givenidShortdefined onSubmodelClient.submodel.protected de.iip_ecosphere.platform.support.aas.PropertygetProperty(String idShort) Returns the property for the givenidShortdefined onSubmodelClient.submodel.private static de.iip_ecosphere.platform.support.aas.SubmodelgetSubmodel(String submodel, de.iip_ecosphere.platform.support.aas.Submodel fallback) Returns the submodel with namesubmodelor of retrieving it failsfallback.protected de.iip_ecosphere.platform.support.aas.SubmodelElementCollectionReturns the actual submodel elements collection to use.Methods inherited from class de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
checkNotNull, checkString, clear, getOperation, getProperty, getPropertyStringValue, getSubmodel, requestRefresh
-
Field Details
-
collectionId
-
-
Constructor Details
-
SubmodelElementsCollectionClient
Creates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a specified submodel and a collection id.- Parameters:
submodel- the submode to refer tocollectionId- the id used as key insubmodelto denote the collection to operate on- Throws:
IOException- if retrieving the IIP-AAS or the respective submodel fails
-
SubmodelElementsCollectionClient
public SubmodelElementsCollectionClient(String submodel, String collectionId, de.iip_ecosphere.platform.support.aas.Submodel fallback) Creates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a specified submodel and a collection id.- Parameters:
submodel- the submode to refer tocollectionId- the id used as key insubmodelto denote the collection to operate onfallback- submodel to be used if retrievingsumbodelfails
-
SubmodelElementsCollectionClient
public SubmodelElementsCollectionClient(de.iip_ecosphere.platform.support.aas.Submodel submodel, String collectionId) Creates a client instance based on the givensubmodel. Operation and properties will be taken from the submodel elements collectioncollectionIdwithinsubmodel,- Parameters:
submodel- the submodel to usecollectionId- the id used as key insubmodelto denote the resource to operate on
-
-
Method Details
-
getSubmodel
private static de.iip_ecosphere.platform.support.aas.Submodel getSubmodel(String submodel, de.iip_ecosphere.platform.support.aas.Submodel fallback) Returns the submodel with namesubmodelor of retrieving it failsfallback.- Parameters:
submodel- the submodel namefallback- the fallback submodel, may be null- Returns:
- the submodel or
fallback
-
getSubmodelElementCollection
protected de.iip_ecosphere.platform.support.aas.SubmodelElementCollection getSubmodelElementCollection()Returns the actual submodel elements collection to use.- Returns:
- the collection
-
getOperation
protected de.iip_ecosphere.platform.support.aas.Operation getOperation(String idShort) throws ExecutionException Description copied from class:SubmodelClientReturns the operation for the givenidShortdefined onSubmodelClient.submodel.- Overrides:
getOperationin classSubmodelClient- Parameters:
idShort- the short id- Returns:
- the operation
- Throws:
ExecutionException- if the operation was not found- See Also:
-
getProperty
protected de.iip_ecosphere.platform.support.aas.Property getProperty(String idShort) throws ExecutionException Description copied from class:SubmodelClientReturns the property for the givenidShortdefined onSubmodelClient.submodel.- Overrides:
getPropertyin classSubmodelClient- Parameters:
idShort- the short id- Returns:
- the property
- Throws:
ExecutionException- if the property was not found- See Also:
-
getLogger
protected de.iip_ecosphere.platform.support.logging.Logger getLogger()Returns the logger instance.- Returns:
- the logger
-