Class NetworkManagerAas
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.NetworkManagerAas
- All Implemented Interfaces:
AasContributor
Builds an active AAS for the
NetworkManager.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classA proxy forManagedServerAddressas we do not want to have setters there.Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
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) Contribute to the givenaasBuilder.voidcontributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Contributes the real implementation functions to thesBuilder.getKind()Returns the kind of AAS being created.static StringReturns the qualified name for an operation/property implementation.booleanisValid()Allow the AAS contributor to declare itself as invalid.static de.iip_ecosphere.platform.support.net.ManagedServerAddressReads aManagedServerAddressfrom a JSON string.static StringtoJson(de.iip_ecosphere.platform.support.net.ManagedServerAddress address) Turns aManagedServerAddressinto JSON.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:
-
OP_RELEASE_PORT
- See Also:
-
OP_IS_IN_USE_PORT
- See Also:
-
OP_IS_IN_USE_ADR
- See Also:
-
OP_GET_PORT
- See Also:
-
PROP_HIGH_PORT
- See Also:
-
PROP_LOW_PORT
- See Also:
-
OP_OBTAIN_PORT
- See Also:
-
OP_RESERVE_PORT
- See Also:
-
OP_REGISTER_INSTANCE
- See Also:
-
OP_UNREGISTER_INSTANCE
- See Also:
-
OP_GET_REGISTERED_INSTANCES
- See Also:
-
-
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:AasContributorContribute to the givenaasBuilder.- Specified by:
contributeToin interfaceAasContributor- Parameters:
aasBuilder- the AAS to contribute toiCreator- 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
aasBuilderand create an own AAS and return that. If this contributor just contributes to theaasBuilderthe result shall be null
-
contributeTo
public void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Description copied from interface:AasContributorContributes the real implementation functions to thesBuilder. Names used for theiCreatorinAasContributor.contributeTo(AasBuilder, InvocablesCreator)must be the same as used here. Property and function names shall be qualified by the AAS short id.- Specified by:
contributeToin interfaceAasContributor- Parameters:
sBuilder- the server builder
-
getQName
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 aManagedServerAddressfrom a JSON string.- Parameters:
json- the JSON object, usually a String- Returns:
- the server address or null if reading fails
-
toJson
Turns aManagedServerAddressinto JSON.- Parameters:
address- the address (may be null)- Returns:
- the JSON string or an empty string in case of problems/no address
-
getKind
Description copied from interface:AasContributorReturns the kind of AAS being created. This is helpful for filtering.- Specified by:
getKindin interfaceAasContributor- Returns:
- the kind of AAS
-
isValid
public boolean isValid()Description copied from interface:AasContributorAllow the AAS contributor to declare itself as invalid.- Specified by:
isValidin interfaceAasContributor- Returns:
trueas prerequisite to executeAasContributor.contributeTo(ProtocolServerBuilder)andAasContributor.contributeTo(AasBuilder, InvocablesCreator),falseelse
-