java.lang.Object
com.genologics.ri.queue.Queue
- All Implemented Interfaces:
Batch<ArtifactLink>,PaginatedBatch<ArtifactLink>,Serializable,Iterable<ArtifactLink>
The representation of a queue.
It represents and is used to list all of the elements contained within a queue. A queue is a representation of samples that are ready to run through a Protocol Step.
Each artifact listed in the queue will contain elements to show when it was queued and its container location.
- Since:
- 2.19
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ArtifactLink>The list of artifacts in the queue.protected StringThe name of the queue.protected PageThe link to the next page of results.protected PageThe link to the previous page of results.protected URIThe URI of the protocol step for this queue.protected URIThe URI of the queue. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of artifacts in the queue.getList()Gets the list of items in this batch.getName()Gets the name of the queue.Gets the next page of results.Gets the previous page of results.Gets the protocol step URI.intgetSize()Gets the number of items in this batch.getUri()Gets the URI of the queue.voidSets the name of the queue.voidsetNextPage(Page nextPage) Sets the next page of results.voidsetPreviousPage(Page previousPage) Sets the previous page of results.voidsetProtocolStepUri(URI protocolStepUri) Sets the protocol step URI.voidSets the URI of the queue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
artifacts
The list of artifacts in the queue. -
previousPage
The link to the previous page of results. -
nextPage
The link to the next page of results. -
uri
The URI of the queue. -
protocolStepUri
The URI of the protocol step for this queue. -
name
The name of the queue.
-
-
Constructor Details
-
Queue
public Queue()Default constructor. -
Queue
Constructor with URI.- Parameters:
uri- The URI of the queue.
-
Queue
Constructor with URI and name.- Parameters:
uri- The URI of the queue.name- The name of the queue.
-
-
Method Details
-
getPreviousPage
Gets the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<ArtifactLink>- Returns:
- The previous page, or null if there is no previous page.
-
setPreviousPage
Sets the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<ArtifactLink>- Parameters:
previousPage- The previous page.
-
getNextPage
Gets the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<ArtifactLink>- Returns:
- The next page, or null if there is no next page.
-
setNextPage
Sets the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<ArtifactLink>- Parameters:
nextPage- The next page.
-
getUri
Gets the URI of the queue.- Returns:
- The queue URI.
-
setUri
Sets the URI of the queue.- Parameters:
uri- The queue URI.
-
getProtocolStepUri
Gets the protocol step URI.- Returns:
- The protocol step URI.
-
setProtocolStepUri
Sets the protocol step URI.- Parameters:
protocolStepUri- The protocol step URI.
-
getName
Gets the name of the queue.- Returns:
- The queue name.
-
setName
Sets the name of the queue.- Parameters:
name- The queue name.
-
getArtifacts
Gets the list of artifacts in the queue.- Returns:
- The list of artifact links.
-
getList
Gets the list of items in this batch.- Specified by:
getListin interfaceBatch<ArtifactLink>- Returns:
- The list of items.
-
getSize
public int getSize()Gets the number of items in this batch.- Specified by:
getSizein interfaceBatch<ArtifactLink>- Returns:
- The size of the batch.
-