Package net.sf.basedb.core.data
Class MappingCoordinate
- java.lang.Object
-
- net.sf.basedb.core.data.MappingCoordinate
-
- All Implemented Interfaces:
Serializable
public class MappingCoordinate extends Object implements Serializable
This class defines a mapping coordinate, which is a triplet of plate number, row and column. AMappingCoordinate
object is used by aPlateMappingData
to specify the source and destination coordinates of wells. TheSerializable
interface must be implemented because Hibernate requires it if we use it as a map key.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
PlateMappingData
, Developer documentation: Array LIMS (plates), Serialized Form- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description private int
column
The column number.private int
plate
The plate number.private int
row
The row number.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MappingCoordinate()
Create new object.MappingCoordinate(int plate, int row, int column)
Create newMappingCoordinate
with the specified plate, row and column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherMappingCoordinate
object.int
getColumn()
Get the column number.int
getPlate()
Get the plate number.int
getRow()
Get the row number.int
hashCode()
Calculate the hash code for the object.(package private) void
setColumn(int column)
Set the location.(package private) void
setPlate(int plate)
Set the plate number.(package private) void
setRow(int row)
Set the row number.String
toString()
Get the coordinate as [plate, row, column]
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
plate
private int plate
The plate number.
-
row
private int row
The row number.
-
column
private int column
The column number.
-
-
Method Detail
-
equals
public final boolean equals(Object o)
Check if this object is equal to anotherMappingCoordinate
object. They are equal if both have the same plate, row and column.
-
hashCode
public final int hashCode()
Calculate the hash code for the object.
-
toString
public final String toString()
Get the coordinate as [plate, row, column]
-
getPlate
public int getPlate()
Get the plate number.
-
setPlate
void setPlate(int plate)
Set the plate number.
-
getRow
public int getRow()
Get the row number.
-
setRow
void setRow(int row)
Set the row number.
-
getColumn
public int getColumn()
Get the column number.
-
setColumn
void setColumn(int column)
Set the location.
-
-