Class WoDTDigitalAdapterConfiguration
java.lang.Object
io.github.webbasedwodt.WoDTShadowingAdapter.api.WoDTDigitalAdapterConfiguration
Configuration for the
WoDTDigitalAdapter
.-
Constructor Summary
ConstructorsConstructorDescriptionWoDTDigitalAdapterConfiguration
(URI dittoUrl, URI dittoObservationEndpoint, String dittoUsername, String dittoPassword, String thingId, String yamlOntologyPath, String physicalAssetId, Set<URI> platformToRegister, URI digitalTwinUri, int digitalTwinExposedPort, String digitalTwinVersion) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the WoDT Digital Twin URI.Obtain the digital twin version.Get ditto endpoint.Get ditto password.org.eclipse.ditto.things.model.Thing
Return the Ditto Thing associated with the Digital Twin.Get ditto url.Get ditto username.Obtain the ontology to describe the Digital Twin data.Obtain the associated physical asset id.Obtain the platform to which register.int
Obtain the port number where to expose services.
-
Constructor Details
-
WoDTDigitalAdapterConfiguration
public WoDTDigitalAdapterConfiguration(URI dittoUrl, URI dittoObservationEndpoint, String dittoUsername, String dittoPassword, String thingId, String yamlOntologyPath, String physicalAssetId, Set<URI> platformToRegister, URI digitalTwinUri, int digitalTwinExposedPort, String digitalTwinVersion) Default constructor.- Parameters:
dittoUrl
- the ditto endpoint urldittoObservationEndpoint
- the endpoint to observe internal ditto activitiesdittoUsername
- ditto credential -- usernamedittoPassword
- ditto credential -- passwordthingId
- the ditto thing id to expose as a wodt dtyamlOntologyPath
- the path for the configuration filephysicalAssetId
- the physical asset id associated to the dtplatformToRegister
- the set of WoDT Platforms to automatically register todigitalTwinUri
- the digital twin uri to exposedigitalTwinExposedPort
- the digital twin wodt adapter exposed portdigitalTwinVersion
- the digital twin model version
-
-
Method Details
-
getDittoUrl
Get ditto url.- Returns:
- the ditto url
-
getDittoObservationEndpoint
Get ditto endpoint.- Returns:
- the ditto endpoint uri
-
getDittoUsername
Get ditto username.- Returns:
- the username
-
getDittoPassword
Get ditto password.- Returns:
- the password
-
getDittoThing
public org.eclipse.ditto.things.model.Thing getDittoThing()Return the Ditto Thing associated with the Digital Twin.- Returns:
- the thing
-
getDigitalTwinUri
Obtain the WoDT Digital Twin URI.- Returns:
- the URI.
-
getOntology
Obtain the ontology to describe the Digital Twin data.- Returns:
- the ontology.
-
getPortNumber
public int getPortNumber()Obtain the port number where to expose services.- Returns:
- the port number
-
getPhysicalAssetId
Obtain the associated physical asset id.- Returns:
- the id of the associated physical asset
-
getPlatformToRegister
Obtain the platform to which register.- Returns:
- the platforms urls.
-
getDigitalTwinVersion
Obtain the digital twin version.- Returns:
- the digital twin version.
-