java.lang.Object
com.genologics.ri.instrument.Instrument
- All Implemented Interfaces:
LimsEntity<Instrument>,LimsEntityLinkable<Instrument>,Linkable<Instrument>,Locatable,Serializable
The detailed representation of an instrument.
Since API version 2.25 this object has received an explicit limsid attribute from
the server. Unfortunately this is broken in that the last part of the URI path is not the
same as the LIMS id. The id on the path is just a number corresponding to the database id
whereas the LIMS id has the prefix "55-", corresponding to the LUID.
To make this work without special cases elsewhere this object will work as it did for
API 2.24 and before, and return the LIMS id as just the number from getLimsid().
This keeps things consistent.
This issue has been reported to Illumina but they are very reluctant to fix it (SFC# 02921030).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanWhether the instrument has been archived.protected StringThe instrument expiry date.protected StringThe LIMS id of this instrument as provided by the server.protected StringThe instrument name.protected StringThe instrument serial number.protected StringThe instrument type.protected URIThe URI of this instrument. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Instrument(String name) Constructor with instrument name.Instrument(String name, String type) Constructor with instrument name and type. -
Method Summary
Modifier and TypeMethodDescriptionGet whether the instrument has been archived.Get the instrument expiry date.Get the LIMS id of this instrument.getLink()Get a concrete link object to thisLimsEntityLinkableentity.getName()Get the instrument name.Get the instrument serial number.getType()Get the instrument type.getUri()Get the URI of this object.voidsetArchived(Boolean archived) Set whether the instrument has been archived.voidsetExpiryDate(String expiryDate) Set the instrument expiry date.voidSet the LIMS id for this object.voidSet the instrument name.voidsetSerialNumber(String serialNumber) Set the instrument serial number.voidSet the instrument type.voidSet the URI of this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsId
-
Field Details
-
name
The instrument name. -
type
The instrument type. -
serialNumber
The instrument serial number.- Since:
- 2.25
-
expiryDate
The instrument expiry date.- Since:
- 2.25
-
archived
Whether the instrument has been archived.- Since:
- 2.25
-
uri
The URI of this instrument. -
limsid
The LIMS id of this instrument as provided by the server.- Since:
- 2.25
-
-
Constructor Details
-
Instrument
public Instrument()Default constructor. -
Instrument
Constructor with instrument name.- Parameters:
name- The instrument name.
-
Instrument
Constructor with instrument name and type.- Parameters:
name- The instrument name.type- The instrument type.
-
-
Method Details
-
getUri
Get the URI of this object. -
setUri
Set the URI of this object. -
getLimsid
Get the LIMS id of this instrument. Due to the error described in the class description, this doesn't return thelimsidvalue but takes the id from the path of the URI.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Instrument>- Returns:
- The LIMS id as recorded on the URI path.
-
setLimsid
Set the LIMS id for this object.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Instrument>- Parameters:
limsid- The new LIMS id.
-
getName
Get the instrument name.- Returns:
- The instrument name.
-
setName
Set the instrument name.- Parameters:
name- The instrument name.
-
getType
Get the instrument type.- Returns:
- The instrument type.
-
setType
Set the instrument type.- Parameters:
type- The instrument type.
-
getSerialNumber
Get the instrument serial number.- Returns:
- The serial number.
-
setSerialNumber
Set the instrument serial number.- Parameters:
serialNumber- The serial number.
-
getExpiryDate
Get the instrument expiry date.- Returns:
- The expiry date.
-
setExpiryDate
Set the instrument expiry date.- Parameters:
expiryDate- The expiry date.
-
getArchived
Get whether the instrument has been archived.- Returns:
- True if archived, false otherwise.
-
setArchived
Set whether the instrument has been archived.- Parameters:
archived- True if archived, false otherwise.
-
getLink
Get a concrete link object to thisLimsEntityLinkableentity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have correspondingLimsEntityLinklink classes available.- Specified by:
getLinkin interfaceLimsEntityLinkable<Instrument>- Specified by:
getLinkin interfaceLinkable<Instrument>- Returns:
- A
LimsEntityLinkto this object.
-