Class GenomeAssembly
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.assembly.GenomeAssembly
-
- All Implemented Interfaces:
IridaSequenceFile,IridaThing,Timestamped<java.lang.Long>,VersionedFileFields<java.lang.Long>
- Direct Known Subclasses:
GenomeAssemblyFromAnalysis,UploadedAssembly
@Entity public abstract class GenomeAssembly extends IridaRepresentationModel implements IridaThing, IridaSequenceFile, VersionedFileFields<java.lang.Long>
Defines a genome assembly which can be associated with a sample.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenomeAssembly()GenomeAssembly(java.util.Date createdDate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddSampleGenomeAssemblyJoin(SampleGenomeAssemblyJoin join)Add a sample to this assemblybooleanequals(java.lang.Object obj)java.util.DategetCreatedDate()Get the created date of the objectabstract java.nio.file.PathgetFile()Gets the assembly file.java.lang.StringgetFileName()The base name of the filejava.lang.StringgetFileSize()Get human-readable file size.longgetFileSizeBytes()Get the size of the genome assembly filesjava.lang.LonggetId()Get the numerical identifier for this objectjava.lang.StringgetLabel()Get a human readable label for this object.inthashCode()voidsetId(java.lang.Long id)-
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
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.VersionedFileFields
getFileRevisionNumber, incrementFileRevisionNumber
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Specified by:
getLabelin interfaceIridaThing- Returns:
- a human-readable label for the object.
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThingGet the numerical identifier for this object- Specified by:
getIdin interfaceIridaThing- Specified by:
getIdin interfaceTimestamped<java.lang.Long>- Returns:
- the numerical identifier for the object
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:TimestampedGet the created date of the object- Specified by:
getCreatedDatein interfaceTimestamped<java.lang.Long>- Returns:
- A
Dateobject of the created date
-
getFileSizeBytes
public long getFileSizeBytes() throws java.io.IOExceptionGet the size of the genome assembly files- Returns:
- file size
- Throws:
java.io.IOException- if the file cannot be read
-
addSampleGenomeAssemblyJoin
public void addSampleGenomeAssemblyJoin(SampleGenomeAssemblyJoin join)
Add a sample to this assembly- Parameters:
join- theSampleGenomeAssemblyJointo add
-
getFileSize
public java.lang.String getFileSize()
Get human-readable file size.- Specified by:
getFileSizein interfaceIridaSequenceFile- Returns:
- A human-readable file size.
-
getFile
public abstract java.nio.file.Path getFile()
Gets the assembly file.- Specified by:
getFilein interfaceIridaSequenceFile- Returns:
- The assembly file.
-
getFileName
public java.lang.String getFileName()
Description copied from interface:IridaSequenceFileThe base name of the file- Specified by:
getFileNamein interfaceIridaSequenceFile- Returns:
- a string base name of the file
-
hashCode
public int hashCode()
Description copied from class:IridaRepresentationModel- Overrides:
hashCodein classIridaRepresentationModel
-
setId
public void setId(java.lang.Long id)
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:IridaRepresentationModel- Overrides:
equalsin classIridaRepresentationModel
-
-