Last update: 2011-06-23

org.proteios.core.data
Class MappingCoordinate

java.lang.Object
  extended by org.proteios.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. A MappingCoordinate object is used by a PlateMappingData to specify the source and destination 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:
Array LIMS - Plates overview, Serialized Form
Last modified
$Date: 2011-03-14 08:28:51 +0100 (Mon, 14 Mar 2011) $

Constructor Summary
MappingCoordinate(int plate, int row, int column)
          Create new MappingCoordinate with the specified plate, row and column.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another MappingCoordinate 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.
 String toString()
          Get the coordinate as [plate, row, column]
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingCoordinate

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

Method Detail

equals

public final boolean equals(Object o)
Check if this object is equal to another MappingCoordinate 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 [plate, row, column]

Overrides:
toString in class Object

getPlate

public int getPlate()
Get the plate number.


getRow

public int getRow()
Get the row number.


getColumn

public int getColumn()
Get the column number.


Last update: 2011-06-23