|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.FeatureCoordinate
public class FeatureCoordinate
Represents the coordinate of a feature on an array design. One coordinate is equal to another if the row and column match and if either the block number (if it is non-zero) or the meta row and meta column (if the block is zero) match.
| Field Summary | |
|---|---|
private int |
block
|
private int |
column
The column of this feature. |
private int |
metaColumn
|
private int |
metaRow
|
private int |
row
The row of this feature. |
| Constructor Summary | |
|---|---|
FeatureCoordinate(Integer block,
Integer metaRow,
Integer metaColumn,
Integer row,
Integer column)
Create new object with the specified row and column. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Check if this object is equal to another FeatureCoordinate
object. |
int |
getBlock()
|
int |
getColumn()
|
int |
getMetaColumn()
|
int |
getMetaRow()
|
int |
getRow()
|
int |
hashCode()
Calculate the hash code for the object. |
String |
toString()
Get the coordinate as [block, row, column] or [metarow, metacolumn, row, column] |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int block
private final int metaRow
private final int metaColumn
private final int row
private final int column
| Constructor Detail |
|---|
public FeatureCoordinate(Integer block,
Integer metaRow,
Integer metaColumn,
Integer row,
Integer column)
block - Block number the feature belongs to.metaRow - Meta row numbermetaColumn - Meta column numberrow - Row number of the featurecolumn - Column number of the feature.| Method Detail |
|---|
public boolean equals(Object o)
FeatureCoordinate
object. For non-zero block number they are equal if the block, row and column
match, otherwise they are equal if the metarow, metacolumn, row and column
match.
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int getBlock()
public int getMetaRow()
public int getMetaColumn()
public int getColumn()
public int getRow()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||