Interface AasContributor

All Known Implementing Classes:
NetworkManagerAas, PlatformAas

public interface AasContributor
Service interface to contribute to an AAS. Platform components with individual AAS shall implement this interface and contribute to the AasPartRegistry.
Author:
Holger Eichelberger, SSE
See Also:
  • ExcludeFirst
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The kind of AAS being built.
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Contribute to the given aasBuilder.
    void
    contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder)
    Contributes the real implementation functions to the sBuilder.
    default boolean
    Returns whether the contribution of this contributor already exists.
    default de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor
    Returns the AAS authentication descriptor.
    Returns the kind of AAS being created.
    default de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor
    Returns the submodel authentication descriptor.
    boolean
    Allow the AAS contributor to declare itself as invalid.
  • Method Details

    • contributeTo

      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)
      Contribute to the given aasBuilder.
      Parameters:
      aasBuilder - the AAS to contribute to
      iCreator - the invocables creator for binding (remote) property and operation implementations. Property and function names shall be qualified by the AAS short id.
      Returns:
      the contributor may ignore aasBuilder and create an own AAS and return that. If this contributor just contributes to the aasBuilder the result shall be null
    • getAasAuthentication

      default de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor getAasAuthentication()
      Returns the AAS authentication descriptor. [shortcut]
      Returns:
      the AAS authentication descriptor, may be null for none
      See Also:
    • getSubmodelAuthentication

      default de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor getSubmodelAuthentication()
      Returns the submodel authentication descriptor. [shortcut]
      Returns:
      the submodel authentication descriptor, may be null for none
      See Also:
    • contributeTo

      void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder)
      Contributes the real implementation functions to the sBuilder. Names used for the iCreator in contributeTo(AasBuilder, InvocablesCreator) must be the same as used here. Property and function names shall be qualified by the AAS short id.
      Parameters:
      sBuilder - the server builder
    • getKind

      Returns the kind of AAS being created. This is helpful for filtering.
      Returns:
      the kind of AAS
    • isValid

      boolean isValid()
      Allow the AAS contributor to declare itself as invalid.
      Returns:
      true as prerequisite to execute contributeTo(ProtocolServerBuilder) and contributeTo(AasBuilder, InvocablesCreator), false else
    • exists

      default boolean exists()
      Returns whether the contribution of this contributor already exists. This would skip this contributor. In particular considered when automatically re-building AAS after server disconnect.
      Returns:
      true for exists, false else