Class InstrumentLink

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

public class InstrumentLink extends LimsEntityLinkBase<Instrument>
The instrument element provides a URI to the instrument that is responsible for running the process. This instrument must have a single software defined to be valid for process execution.
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 instrument URI.
    • InstrumentLink

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

    • getEntityClass

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

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

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

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

      public void setLimsid(String id)
      Sets the LIMS id. This method does nothing for instrument links.
      Parameters:
      id - The LIMS id (ignored).