Class SequenceFilePair
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.sequenceFile.SequencingObject
-
- ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFilePair
-
- All Implemented Interfaces:
IridaThing,MutableIridaThing,RemoteSynchronizable,Timestamped<java.lang.Long>
@Entity public class SequenceFilePair extends SequencingObject
A pair of sequence files in forward/reverse orientation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.corefacility.bioinformatics.irida.model.sequenceFile.SequencingObject
SequencingObject.ProcessingState
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]forwardMatchesstatic java.lang.String[]reverseMatches
-
Constructor Summary
Constructors Constructor Description SequenceFilePair()SequenceFilePair(SequenceFile file1, SequenceFile file2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<SequenceFile>getFiles()Get theSequenceFiles associated with thisSequencingObjectSequenceFilegetForwardSequenceFile()Gets the forwardSequenceFilefrom the pair.java.lang.StringgetLabel()Get a human readable label for this object.SequenceFilegetReverseSequenceFile()Gets the reverseSequenceFilefrom the pair.inthashCode()voidsetFiles(java.util.Set<SequenceFile> files)Set theSequenceFiles in this pair.voidsetModifiedDate(java.util.Date modifiedDate)Set the modification time of this objectjava.lang.StringtoString()-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.sequenceFile.SequencingObject
getAutomatedAssembly, getCreatedDate, getFileProcessor, getFileWithId, getId, getModifiedDate, getProcessingState, getQcEntries, getRemoteStatus, getSequencingRun, getSistrTyping, setAutomatedAssembly, setFileProcessor, setId, setProcessingState, setQcEntries, setRemoteStatus, setSequencingRun, setSistrTyping
-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
add, add, getLink, getLinks, getSelfHref, hasLink, hasLinks, removeLinks
-
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
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.remote.RemoteSynchronizable
isRemote
-
-
-
-
Constructor Detail
-
SequenceFilePair
public SequenceFilePair()
-
SequenceFilePair
public SequenceFilePair(SequenceFile file1, SequenceFile file2)
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from class:IridaRepresentationModel- Overrides:
hashCodein classSequencingObject
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:IridaRepresentationModel- Overrides:
equalsin classSequencingObject
-
getForwardSequenceFile
public SequenceFile getForwardSequenceFile()
Gets the forwardSequenceFilefrom the pair.- Returns:
- The forward
SequenceFilefrom the pair.
-
getReverseSequenceFile
public SequenceFile getReverseSequenceFile()
Gets the reverseSequenceFilefrom the pair.- Returns:
- The reverse
SequenceFilefrom the pair.
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThingSet the modification time of this object- Parameters:
modifiedDate- The date where this object was modified
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Returns:
- a human-readable label for the object.
-
toString
public java.lang.String toString()
Description copied from class:IridaRepresentationModel- Overrides:
toStringin classIridaRepresentationModel
-
getFiles
public java.util.Set<SequenceFile> getFiles()
Description copied from class:SequencingObjectGet theSequenceFiles associated with thisSequencingObject- Specified by:
getFilesin classSequencingObject- Returns:
- a Set of
SequenceFile
-
setFiles
public void setFiles(java.util.Set<SequenceFile> files)
Set theSequenceFiles in this pair. Note it must contain 2 files.- Parameters:
files- The set ofSequenceFiles
-
-