public class Plate extends Object implements Iterable<Well>, Comparable<Plate>
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
| A | ||||||||||||
| B | ||||||||||||
| C | ||||||||||||
| D | ||||||||||||
| E | ||||||||||||
| F | ||||||||||||
| G | ||||||||||||
| H |
Plate Type |
Flag |
|---|---|
| 6-Well | PLATE_6 |
| 12-Well | PLATE_12 |
| 24-Well | PLATE_24 |
| 48-Well | PLATE_48 |
| 96-Well | PLATE_96 |
| 384-Well | PLATE_384 |
| 1536-Well | PLATE_1536 |
Primitives |
|---|
| Byte |
| Short |
| Int |
| Long |
| Float |
| Double |
Immutables |
|---|
| BigInteger |
| BigDecimal |
| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMNS_12WELL |
static int |
COLUMNS_1536WELL |
static int |
COLUMNS_24WELL |
static int |
COLUMNS_384WELL |
static int |
COLUMNS_48WELL |
static int |
COLUMNS_6WELL |
static int |
COLUMNS_96WELL |
static int |
PLATE_12WELL |
static int |
PLATE_1536WELL |
static int |
PLATE_24WELL |
static int |
PLATE_384WELL |
static int |
PLATE_48WELL |
static int |
PLATE_6WELL |
static int |
PLATE_96WELL |
static int |
PLATE_BIGDECIMAL |
static int |
PLATE_BIGINTEGER |
static int |
PLATE_DOUBLE |
static int |
PLATE_INTEGER |
static int |
ROWS_12WELL |
static int |
ROWS_1536WELL |
static int |
ROWS_24WELL |
static int |
ROWS_384WELL |
static int |
ROWS_48WELL |
static int |
ROWS_6WELL |
static int |
ROWS_96WELL |
| Constructor and Description |
|---|
Plate(int type)
Creates a Integer plate.
|
Plate(int rows,
int columns)
Creates a Integer plate.
|
Plate(int rows,
int columns,
String label)
Creates a Integer plate.
|
Plate(int rows,
int columns,
String label,
WellSet data)
Creates a Integer plate.
|
Plate(int rows,
int columns,
WellSet set)
Creates a Integer plate.
|
Plate(int type,
String label)
Creates a Integer plate.
|
Plate(int type,
String label,
WellSet data)
Creates a Integer plate.
|
Plate(int type,
WellSet set)
Creates a Integer plate.
|
Plate(Plate plate)
Clones a Integer plate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroups(Collection<WellList> collection)
Adds a collection of well groups for analysis.
|
void |
addGroups(WellList list)
Adds a well group for analysis.
|
void |
addGroups(WellList[] array)
Adds an array of well groups for analysis.
|
boolean |
addWells(Collection<Well> collection)
Adds a collection of wells to the data set omitting wells that are already
members of the set.
|
boolean |
addWells(Well well)
Adds a well to the data set.
|
boolean |
addWells(Well[] array)
Adds an array of wells to the data set omitting wells that are already
members of the set.
|
boolean |
addWells(WellSet set)
Adds an array of wells to the data set omitting wells that are already
members of the set.
|
Set<WellSet> |
allGroups()
Returns a well set for all analysis groups.
|
Well |
ceiling(Well well)
Returns the least well in this set greater than or equal to the given
well, or null if there is no such well.
|
void |
clearGroups()
Clears all groups.
|
boolean |
clearWells()
Removes all plate wells.
|
int |
columns()
Returns the number of columns.
|
int |
compare(Plate plate1,
Plate plate2)
Plates are ordered using the size, data type, label and number of sets.
|
int |
compareTo(Plate plate)
Compares the object to another plate.
|
boolean |
contains(Collection<Well> collection)
Returns true if all the input wells are found within the well set.
|
boolean |
contains(String well)
Returns true if the well is part of the well set.
|
boolean |
contains(String wellList,
String delimiter)
Returns true if all the wells in the delimiter separated list exist in the
plate.
|
boolean |
contains(Well well)
Returns true if the well is part of the well set.
|
boolean |
contains(Well[] array)
Returns true if all the input wells are found within the plate.
|
boolean |
contains(WellIndex index)
Returns true if a well with the index exists.
|
boolean |
contains(WellList list)
Returns true if the wells in the list exist.
|
boolean |
contains(WellSet set)
Returns true if all the input wells are found within the well set.
|
boolean |
containsGroup(Collection<WellList> collection)
Returns true if the groups in the collection exist.
|
boolean |
containsGroup(List<String> labels)
Returns true if groups with all the labels exist.
|
boolean |
containsGroup(String label)
Returns true if the group exists.
|
boolean |
containsGroup(WellList list)
Returns true if the group exists.
|
boolean |
containsGroup(WellList[] array)
Returns true if the groups in the array exist.
|
WellSet |
dataSet()
Returns the data set.
|
int |
dataType()
Returns the data type as an integer value.
|
String |
dataTypeString()
Returns the data type as a string.
|
Iterator<Well> |
descendingIterator()
Returns an iterator over the wells in this set in descending order.
|
Set<Well> |
descendingSet()
Returns a reverse order view of the wells contained in this set.
|
String |
descriptor()
Returns the descriptor.
|
boolean |
equals(Object object)
Plates are equivalent if they share the same dimensions, label, plate type,
data type, descriptor, size and well sets.
|
Well |
first()
Returns the first well in the set.
|
Well |
floor(Well well)
Returns the greatest well in this set less than or equal to the given
well, or null if there is no such well.
|
WellSet |
getColumn(int column)
Returns all wells with the matching column index.
|
Set<WellSet> |
getGroups(Collection<WellList> collection)
Returns a well set containing the wells for each group.
|
Set<WellSet> |
getGroups(List<String> labels)
Returns all wells with a label contained in the input list.
|
WellSet |
getGroups(String label)
Returns a well set containing the wells for the group with the given label.
|
WellSet |
getGroups(WellList list)
Returns a well set containing the wells for the group.
|
Set<WellSet> |
getGroups(WellList[] array)
Returns a well set containing the wells for each group.
|
WellSet |
getRow(int row)
Returns all wells with the matching row index.
|
WellSet |
getWells(Collection<Well> collection)
Returns the well or null if no such well exists.
|
Well |
getWells(String well)
Returns the well with the input indices.
|
WellSet |
getWells(String wellList,
String delimiter)
Returns a well set holding all plate wells that match the indices or
null if there are no matches.
|
Well |
getWells(Well well)
Returns the well or null if no such well exists.
|
WellSet |
getWells(Well[] array)
Returns the well or null if no such well exists.
|
Well |
getWells(WellIndex index)
Returns the well with the input index.
|
WellSet |
getWells(WellList list)
Returns the wells in the input list.
|
WellSet |
getWells(WellSet set)
Returns the well or null if no such well exists.
|
int |
hashCode()
Hash code uses the plate dimensions, label, plate type, data type,
descriptor, size and well sets.
|
Set<Well> |
headSet(Well well)
Returns a view of the portion of this set whose wells are strictly
less than the input well.
|
Set<Well> |
headSet(Well well,
boolean inclusive)
Returns a view of the portion of this set whose wells are less than
(or equal to, if inclusive is true) to the input well.
|
Well |
higher(Well well)
Returns the least well in this set strictly greater than the given
well, or null if there is no such well.
|
boolean |
isEmpty()
Returns true if the plate is empty.
|
Iterator<Well> |
iterator()
Returns an iterator that iterates over the well in the plate.
|
String |
label()
Returns the plate label or the hash code if the label is undefined.
|
Well |
last()
Returns the last well in the set.
|
Well |
lower(Well well)
Returns the greatest well in this set strictly less than the given well,
or null if there is no such well.
|
Well |
pollFirst()
Retrieves and removes the first (lowest) well, or returns null if this
set is empty.
|
Well |
pollLast()
Retrieves and removes the last (highest) well, or returns null if this
set is empty.
|
String |
printAllData()
Returns a string holding the well ID and data for all the plate wells.
|
<T extends Number> |
printData(Well well)
Returns a string holding the well data.
|
void |
removeGroups(Collection<WellList> collection)
Removes a collection of well groups.
|
void |
removeGroups(List<String> labels)
Removes all wells with labels contained in the input list.
|
void |
removeGroups(String label)
Removes an the group with the label.
|
void |
removeGroups(WellList list)
Removes a well group.
|
void |
removeGroups(WellList[] array)
Removes an array of well groups.
|
boolean |
removeWells(Collection<Well> collection)
Removes a collection of wells.
|
boolean |
removeWells(String well)
Removes the well from the data set.
|
boolean |
removeWells(String wellList,
String delimiter)
Removes the wells in the delimiter separated list.
|
boolean |
removeWells(Well well)
Removes the well from the data set.
|
boolean |
removeWells(Well[] wells)
Removes an array of wells.
|
boolean |
removeWells(WellIndex index)
Removes the well from the data set.
|
boolean |
removeWells(WellList list)
Removes a well list.
|
boolean |
removeWells(WellSet set)
Removes a set of wells.
|
boolean |
replaceWells(Collection<Well> collection)
Replaces the plate wells with the wells from the collection.
|
boolean |
replaceWells(Well well)
Replaces the plate well with the input well.
|
boolean |
replaceWells(Well[] array)
Replaces the plate wells with the wells from the array.
|
boolean |
replaceWells(WellSet set)
Replaces the plate wells with the wells from the well set.
|
boolean |
retainWells(Collection<Well> collection)
Retains the wells in the collection if they exist.
|
boolean |
retainWells(String well)
Retains the well in the data set.
|
boolean |
retainWells(String wellList,
String delimiter)
Retains the wells in the delimiter separated list.
|
boolean |
retainWells(Well well)
Retains the input well if it exists.
|
boolean |
retainWells(Well[] array)
Retains the wells in the array if they exist.
|
boolean |
retainWells(WellIndex index)
Retains the well with the index.
|
boolean |
retainWells(WellList list)
Retains the wells in the list.
|
boolean |
retainWells(WellSet set)
Retains the wells in the well set if they exist.
|
int |
rows()
Returns the number of rows.
|
void |
setLabel(String newLabel)
Sets the label.
|
int |
size()
Returns the number of wells.
|
Set<Well> |
subSet(Well well1,
boolean inclusive1,
Well well2,
boolean inclusive2)
Returns a view of the portion of this set whose wells range from
the first input well to the second input well.
|
Set<Well> |
subSet(Well well1,
Well well2)
Returns a view of the portion of this set whose wells range from
the first input well inclusive to the second input well inclusive.
|
Set<Well> |
tailSet(Well well)
Returns a view of the portion of this set whose wells are greater than
or equal to the input well.
|
Set<Well> |
tailSet(Well well,
boolean inclusive)
Returns a view of the portion of this set whose wells are greater than
(or equal to, if inclusive is true) the input well.
|
Well[] |
toArray()
Returns the plate wells in an array.
|
String |
toString()
Returns the plate descriptor and label.
|
int |
type()
Returns the plate type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final int PLATE_6WELL
public static final int PLATE_12WELL
public static final int PLATE_24WELL
public static final int PLATE_48WELL
public static final int PLATE_96WELL
public static final int PLATE_384WELL
public static final int PLATE_1536WELL
public static final int PLATE_DOUBLE
public static final int PLATE_INTEGER
public static final int PLATE_BIGDECIMAL
public static final int PLATE_BIGINTEGER
public static final int ROWS_6WELL
public static final int ROWS_12WELL
public static final int ROWS_24WELL
public static final int ROWS_48WELL
public static final int ROWS_96WELL
public static final int ROWS_384WELL
public static final int ROWS_1536WELL
public static final int COLUMNS_6WELL
public static final int COLUMNS_12WELL
public static final int COLUMNS_24WELL
public static final int COLUMNS_48WELL
public static final int COLUMNS_96WELL
public static final int COLUMNS_384WELL
public static final int COLUMNS_1536WELL
public Plate(int type)
int - the plate typepublic Plate(int rows,
int columns)
int - plate rowsint - plate columnspublic Plate(int type,
String label)
int - plate type flagString - plate labelpublic Plate(int rows,
int columns,
String label)
int - plate rowsint - plate columnsString - plate labelpublic Plate(int type,
WellSet set)
int - plate type flagWellSet - well setpublic Plate(int rows,
int columns,
WellSet set)
int - number of plate rowsint - number of plate columnsWellSet - plate well setspublic Plate(int type,
String label,
WellSet data)
int - plate type flagString - plate labelWellSet - plate well setpublic Plate(int rows,
int columns,
String label,
WellSet data)
int - plate rowsint - plate columnsString - plate labelE - plate well setpublic Plate(Plate plate)
Plate - plate to clonepublic void addGroups(WellList list)
WellList - the list of wellspublic void addGroups(Collection<WellList> collection)
Collection - collection of groupspublic void addGroups(WellList[] array)
WellList[] - array of groupspublic void removeGroups(WellList list)
WellList - the grouppublic void removeGroups(Collection<WellList> collection)
Collection - the collection of well groupspublic void removeGroups(WellList[] array)
WellList[] - the array of well groupspublic void removeGroups(String label)
String - the group labelpublic void removeGroups(List<String> labels)
List - the group labelspublic void clearGroups()
public Set<WellSet> allGroups()
public WellSet getGroups(String label)
String - labelpublic WellSet getGroups(WellList list)
WellList - the grouppublic Set<WellSet> getGroups(Collection<WellList> collection)
Collection - the collection of groupspublic Set<WellSet> getGroups(WellList[] array)
WellList[] - the array of groupspublic Set<WellSet> getGroups(List<String> labels)
List - the group labelspublic boolean containsGroup(String label)
String - labelpublic boolean containsGroup(List<String> labels)
List - labelpublic boolean containsGroup(WellList list)
WellList - the grouppublic boolean containsGroup(Collection<WellList> collection)
Collection - collection of groupspublic boolean containsGroup(WellList[] array)
WellList[] - array of groupspublic Well higher(Well well)
Well - input wellpublic Well lower(Well well)
Well - input wellpublic Well pollFirst()
public Well pollLast()
public Iterator<Well> iterator()
public Iterator<Well> descendingIterator()
public Set<Well> descendingSet()
public Well first()
public Well last()
public Well ceiling(Well well)
Well - the wellpublic Well floor(Well well)
public Set<Well> headSet(Well well)
Well - input wellpublic Set<Well> headSet(Well well, boolean inclusive)
Well - well input wellboolean - a true value retains the input well in the sub setpublic Set<Well> tailSet(Well well)
Well - the input wellpublic Set<Well> tailSet(Well well, boolean inclusive)
Well - the input wellpublic Set<Well> subSet(Well well1, boolean inclusive1, Well well2, boolean inclusive2)
Well - the first input wellWell - the second input wellboolean - includes the first input well in the returned setboolean - includes the second input well in the returned setpublic Set<Well> subSet(Well well1, Well well2)
Well - the first input wellWell - the second input wellpublic boolean isEmpty()
public String label()
public void setLabel(String newLabel)
String - the new labelpublic int columns()
public int rows()
public int size()
public int type()
public String descriptor()
public int dataType()
public String dataTypeString()
public String toString()
public WellSet dataSet()
public Well[] toArray()
public boolean addWells(Well well)
Well - the wellpublic boolean addWells(WellSet set)
WellSet - the well setpublic boolean addWells(Collection<Well> collection)
Collection - the well collectionpublic boolean addWells(Well[] array)
WellInteger[] - the well arraypublic boolean removeWells(Well well)
Well - the wellpublic boolean removeWells(WellSet set)
WellSet - the well setpublic boolean removeWells(Collection<Well> collection)
Collection - collection of wells to
removepublic boolean removeWells(Well[] wells)
WellInteger[] - array of wells to removepublic boolean removeWells(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic boolean removeWells(String well)
String - the wellpublic boolean removeWells(WellIndex index)
String - the indexpublic boolean removeWells(WellList list)
WellList - the well listpublic boolean clearWells()
public boolean replaceWells(Well well)
Well - the well for replacementpublic boolean replaceWells(WellSet set)
WellSet - the well setpublic boolean replaceWells(Collection<Well> collection)
Collection - the data collectionpublic boolean replaceWells(Well[] array)
WellInteger[] - the array of wellspublic boolean retainWells(Well well)
Well - the wellpublic boolean retainWells(WellSet set)
WellSet - the well setpublic boolean retainWells(Collection<Well> collection)
Collection - the data collectionpublic boolean retainWells(Well[] array)
WellInteger[] - the array of wellspublic boolean retainWells(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic boolean retainWells(String well)
String - the wellpublic boolean retainWells(WellIndex index)
WellIndex - the well indexpublic boolean retainWells(WellList list)
WellList - the well listboolean - true on successful well retentionpublic Well getWells(Well well)
Well - the wellpublic WellSet getWells(WellSet set)
WellSet - the wellpublic WellSet getWells(Collection<Well> collection)
WellInteger[] - the wellpublic WellSet getWells(Well[] array)
WellInteger[] - the wellpublic WellSet getWells(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic Well getWells(String well)
String - the well IDpublic Well getWells(WellIndex index)
WellIndex - the well indexpublic WellSet getWells(WellList list)
WellList - the well listpublic WellSet getRow(int row)
int - the row indexpublic WellSet getColumn(int column)
int - the row indexpublic boolean contains(Well well)
Well - the wellpublic boolean contains(WellSet set)
WellSet - the input wellspublic boolean contains(Collection<Well> collection)
Collection - the input wellspublic boolean contains(Well[] array)
WellInteger[] - the input wellspublic boolean contains(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic boolean contains(String well)
String - the wellpublic boolean contains(WellIndex index)
public boolean contains(WellList list)
public String printAllData()
public <T extends Number> String printData(Well well)
Well - the wellpublic boolean equals(Object object)
public int hashCode()
public int compareTo(Plate plate)
compareTo in interface Comparable<Plate>Plate - plate the plate for comparisonpublic int compare(Plate plate1, Plate plate2) throws ClassCastException
Plate - the plate for comparisonClassCastExceptionCopyright © 2017. All rights reserved.