Class TraceToAasService.Converter

  • Enclosing class:
    TraceToAasService

    protected class TraceToAasService.Converter
    extends TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
    A configured transport to AAS converter for TraceRecord.
    Author:
    Holger Eichelberger, SSE
    • Constructor Detail

      • Converter

        public Converter()
        Creates a configured converter instance.
    • Method Detail

      • getAasId

        public java.lang.String getAasId()
        Description copied from class: TransportToAasConverter
        Returns the AAS idShort of the AAS represented by this service/application.
        Specified by:
        getAasId in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Returns:
        the idShort
      • getAasUrn

        public java.lang.String getAasUrn()
        Description copied from class: TransportToAasConverter
        Returns the AAS URN of the AAS represented by this service/application.
        Specified by:
        getAasUrn in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Returns:
        the URN
      • getSubmodelElementIdFunction

        protected java.util.function.Function<de.iip_ecosphere.platform.transport.status.TraceRecord,​java.lang.String> getSubmodelElementIdFunction()
        Description copied from class: TransportToAasConverter
        Returns a function turning a data instance into an id of the submodel representing the data instance.
        Specified by:
        getSubmodelElementIdFunction in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Returns:
        the function
      • buildUpAas

        protected boolean buildUpAas​(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder)
        Description copied from class: TransportToAasConverter
        Builds up the AAS.
        Overrides:
        buildUpAas in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Parameters:
        aasBuilder - the aas builder to use
        Returns:
        true for success, false else
      • cleanUpAas

        protected boolean cleanUpAas​(de.iip_ecosphere.platform.support.aas.Aas aas)
        Description copied from class: TransportToAasConverter
        Cleans up the AAS. Last action, may delete the AAS itself.
        Overrides:
        cleanUpAas in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Parameters:
        aas - the AAS to clean up
        Returns:
        true for success, false else
      • populateSubmodelElementCollection

        protected void populateSubmodelElementCollection​(de.iip_ecosphere.platform.support.aas.SubmodelElementCollection.SubmodelElementCollectionBuilder smcBuilder,
                                                         de.iip_ecosphere.platform.transport.status.TraceRecord data)
        Description copied from class: TransportToAasConverter
        Creates the submodel element representing a single received data value.
        Specified by:
        populateSubmodelElementCollection in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Parameters:
        smcBuilder - the builder for the submodel element collection representing the data value
        data - the data that may be used to create the element
      • mapPayloadType

        protected java.lang.String mapPayloadType​(java.lang.Class<?> cls)
        Description copied from class: TransportToAasConverter
        Allows for application specific payload type names.
        Overrides:
        mapPayloadType in class TransportToAasConverter<de.iip_ecosphere.platform.transport.status.TraceRecord>
        Parameters:
        cls - the type
        Returns:
        the mapped name