2.17.2: 2011-06-17

net.sf.basedb.core.data
Class PlateCoordinate

java.lang.Object
  extended by net.sf.basedb.core.data.PlateCoordinate
All Implemented Interfaces:
Serializable

public class PlateCoordinate
extends Object
implements Serializable

This class defines a plate coordinate, which is row and column on a plate. A PlateCoordinate object is used by a PlateData to specify the coordinates of wells. The Serializable interface must be implemented because Hibernate requires it if we use it as a map key.

Version:
2.0
Author:
Nicklas
See Also:
PlateData, Array LIMS - Plates overview, Serialized Form
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private  int column
          The column number.
private  int row
          The row number.
private static long serialVersionUID
           
 
Constructor Summary
PlateCoordinate()
          Create new object.
PlateCoordinate(int row, int column)
          Create new PlateCoordinate with the specified row and column.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another PlateCoordinateData object.
 int getColumn()
          Get the column 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 setRow(int row)
          Set the row number.
 String toString()
          Get the coordinate as [row, column]
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

row

private int row
The row number.


column

private int column
The column number.

Constructor Detail

PlateCoordinate

PlateCoordinate()
Create new object. Used by Hibernate only.


PlateCoordinate

public PlateCoordinate(int row,
                       int column)
Create new PlateCoordinate with the specified row and column.

Method Detail

equals

public final boolean equals(Object o)
Check if this object is equal to another PlateCoordinateData object. They are equal if both have the same plate, row and column.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

toString

public final String toString()
Get the coordinate as [row, column]

Overrides:
toString in class Object

getRow

public int getRow()
Get the row number.

Hibernate: property
column="`row`" type="int"

setRow

void setRow(int row)
Set the row number.


getColumn

public int getColumn()
Get the column number.

Hibernate: property
column="`column`" type="int"

setColumn

void setColumn(int column)
Set the location.


2.17.2: 2011-06-17