Class InstrumentLink

All Implemented Interfaces:
LimsEntityLink<Instrument>, LimsEntityLinkable<Instrument>, LimsLink<Instrument>, Linkable<Instrument>, Locatable, Serializable

public class InstrumentLink extends LimsEntityLinkBase<Instrument>
The instrument is a child element of process-template that provides a URI to the instrument that is responsible for running a Process created using this Process Template.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the instrument.
  • Constructor Details

    • InstrumentLink

      public InstrumentLink()
      Default constructor.
    • InstrumentLink

      public InstrumentLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - the URI of the instrument.
    • InstrumentLink

      public InstrumentLink(Linkable<Instrument> link)
      Constructor from a linkable instrument.
      Parameters:
      link - the linkable instrument.
  • Method Details

    • getEntityClass

      public Class<Instrument> getEntityClass()
      Gets the entity class.
      Returns:
      the Instrument class.
    • getUri

      public URI getUri()
      Gets the URI.
      Returns:
      the URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI.
      Parameters:
      uri - the URI to set.
    • getLimsid

      public String getLimsid()
      Gets the LIMS id extracted from the URI.
      Returns:
      the LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Sets the LIMS id. This method does nothing as the LIMS id is extracted from the URI.
      Parameters:
      id - the LIMS id (ignored).