Class SequencingRun
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.run.SequencingRun
-
- All Implemented Interfaces:
IridaThing
,MutableIridaThing
,Timestamped<java.lang.Long>
,java.lang.Comparable<SequencingRun>
@Entity public class SequencingRun extends IridaRepresentationModel implements MutableIridaThing, java.lang.Comparable<SequencingRun>
This class represents a collection of sequence files that have come off one run of a sequencer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SequencingRun.LayoutType
The type of layout for the run.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SequencingRun()
SequencingRun(SequencingRun.LayoutType layoutType, java.lang.String sequencerType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOptionalProperty(java.lang.String key, java.lang.String value)
Add one optional property to the map of propertiesint
compareTo(SequencingRun o)
boolean
equals(java.lang.Object obj)
java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.String
getDescription()
java.lang.Long
getId()
Get the numerical identifier for this objectjava.lang.String
getLabel()
Get a human readable label for this object.SequencingRun.LayoutType
getLayoutType()
java.util.Date
getModifiedDate()
Get the date that this object was last modifiedjava.util.Map<java.lang.String,java.lang.String>
getOptionalProperties()
Get the Map of optional propertiesjava.lang.String
getOptionalProperty(java.lang.String key)
Get an individual optional propertyjava.lang.String
getSequencerType()
Get the sequencer typeSequencingRunUploadStatus
getUploadStatus()
User
getUser()
int
hashCode()
void
setDescription(java.lang.String description)
void
setId(java.lang.Long id)
Set the numerical identifier for this objectvoid
setModifiedDate(java.util.Date modifiedDate)
Set the modification time of this objectvoid
setSequencerType(java.lang.String sequencerType)
void
setUser(User user)
-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
add, add, getLink, getLinks, getRemoteStatus, getSelfHref, hasLink, hasLinks, removeLinks, setRemoteStatus, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Constructor Detail
-
SequencingRun
protected SequencingRun()
-
SequencingRun
public SequencingRun(SequencingRun.LayoutType layoutType, java.lang.String sequencerType)
-
-
Method Detail
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThing
Get the numerical identifier for this object- Specified by:
getId
in interfaceIridaThing
- Specified by:
getId
in interfaceTimestamped<java.lang.Long>
- Returns:
- the numerical identifier for the object
-
setId
public void setId(java.lang.Long id)
Description copied from interface:MutableIridaThing
Set the numerical identifier for this object- Specified by:
setId
in interfaceMutableIridaThing
- Parameters:
id
- The ID to set
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:Timestamped
Get the created date of the object- Specified by:
getCreatedDate
in interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThing
Get the date that this object was last modified- Specified by:
getModifiedDate
in interfaceMutableIridaThing
- Returns:
Date
object of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThing
Set the modification time of this object- Specified by:
setModifiedDate
in interfaceMutableIridaThing
- Parameters:
modifiedDate
- The date where this object was modified
-
getLabel
public java.lang.String getLabel()
Get a human readable label for this object.- Specified by:
getLabel
in interfaceIridaThing
- Returns:
- a human-readable label for the object.
-
hashCode
public int hashCode()
Description copied from class:IridaRepresentationModel
- Overrides:
hashCode
in classIridaRepresentationModel
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:IridaRepresentationModel
- Overrides:
equals
in classIridaRepresentationModel
-
getUploadStatus
public SequencingRunUploadStatus getUploadStatus()
-
getLayoutType
public SequencingRun.LayoutType getLayoutType()
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
addOptionalProperty
public void addOptionalProperty(java.lang.String key, java.lang.String value)
Add one optional property to the map of properties- Parameters:
key
- The key of the property to addvalue
- The value of the property to add
-
getOptionalProperties
public java.util.Map<java.lang.String,java.lang.String> getOptionalProperties()
Get the Map of optional properties- Returns:
- A
Map<String,String>
of all the optional propertie
-
getOptionalProperty
public java.lang.String getOptionalProperty(java.lang.String key)
Get an individual optional property- Parameters:
key
- The key of the property to read- Returns:
- A String of the property's value
-
getSequencerType
public java.lang.String getSequencerType()
Get the sequencer type- Returns:
- Name of the sequencer type
-
setSequencerType
public void setSequencerType(java.lang.String sequencerType)
-
compareTo
public int compareTo(SequencingRun o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SequencingRun>
-
-