Class WoDTDigitalAdapterConfiguration

java.lang.Object
io.github.webbasedwodt.WoDTShadowingAdapter.api.WoDTDigitalAdapterConfiguration

public final class WoDTDigitalAdapterConfiguration extends Object
Configuration for the WoDTDigitalAdapter.
  • 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 url
      dittoObservationEndpoint - the endpoint to observe internal ditto activities
      dittoUsername - ditto credential -- username
      dittoPassword - ditto credential -- password
      thingId - the ditto thing id to expose as a wodt dt
      yamlOntologyPath - the path for the configuration file
      physicalAssetId - the physical asset id associated to the dt
      platformToRegister - the set of WoDT Platforms to automatically register to
      digitalTwinUri - the digital twin uri to expose
      digitalTwinExposedPort - the digital twin wodt adapter exposed port
      digitalTwinVersion - the digital twin model version
  • Method Details

    • getDittoUrl

      public URI getDittoUrl()
      Get ditto url.
      Returns:
      the ditto url
    • getDittoObservationEndpoint

      public URI getDittoObservationEndpoint()
      Get ditto endpoint.
      Returns:
      the ditto endpoint uri
    • getDittoUsername

      public String getDittoUsername()
      Get ditto username.
      Returns:
      the username
    • getDittoPassword

      public String 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

      public URI getDigitalTwinUri()
      Obtain the WoDT Digital Twin URI.
      Returns:
      the URI.
    • getOntology

      public OntologyManagerImpl 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

      public String getPhysicalAssetId()
      Obtain the associated physical asset id.
      Returns:
      the id of the associated physical asset
    • getPlatformToRegister

      public Set<URI> getPlatformToRegister()
      Obtain the platform to which register.
      Returns:
      the platforms urls.
    • getDigitalTwinVersion

      public String getDigitalTwinVersion()
      Obtain the digital twin version.
      Returns:
      the digital twin version.