Class NetworkManagerAas

java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.NetworkManagerAas
All Implemented Interfaces:
AasContributor

public class NetworkManagerAas extends Object implements AasContributor
Builds an active AAS for the NetworkManager.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • NetworkManagerAas

      public NetworkManagerAas()
  • 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)
      Description copied from interface: AasContributor
      Contribute to the given aasBuilder.
      Specified by:
      contributeTo in interface AasContributor
      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
    • contributeTo

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

      public static String getQName(String elementName)
      Returns the qualified name for an operation/property implementation.
      Parameters:
      elementName - the element name
      Returns:
      the qualified name
    • managedServerAddressFromJson

      public static de.iip_ecosphere.platform.support.net.ManagedServerAddress managedServerAddressFromJson(Object json)
      Reads a ManagedServerAddress from a JSON string.
      Parameters:
      json - the JSON object, usually a String
      Returns:
      the server address or null if reading fails
    • toJson

      public static String toJson(de.iip_ecosphere.platform.support.net.ManagedServerAddress address)
      Turns a ManagedServerAddress into JSON.
      Parameters:
      address - the address (may be null)
      Returns:
      the JSON string or an empty string in case of problems/no address
    • getKind

      public AasContributor.Kind getKind()
      Description copied from interface: AasContributor
      Returns the kind of AAS being created. This is helpful for filtering.
      Specified by:
      getKind in interface AasContributor
      Returns:
      the kind of AAS
    • isValid

      public boolean isValid()
      Description copied from interface: AasContributor
      Allow the AAS contributor to declare itself as invalid.
      Specified by:
      isValid in interface AasContributor
      Returns:
      true as prerequisite to execute AasContributor.contributeTo(ProtocolServerBuilder) and AasContributor.contributeTo(AasBuilder, InvocablesCreator), false else