topology
Class Coords

java.lang.Object
  extended by topology.Coords

public class Coords
extends java.lang.Object

Class used to get or set neuron coordinate in topology.


Field Summary
 int x
          x coordinate
 int y
          y coordinate
 
Constructor Summary
Coords()
          Creates a new instance of Coords with default coordinates (0,0).
Coords(int x, int y)
          Creates a new instance of Coords with specified x and y coordinate.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" Coords class..
 int getX()
          Return x coordinate
 int getY()
          Return y coordinate
 java.lang.String toString()
          Returns a string representation of the Coords object [ x = ,y = ]
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
x coordinate


y

public int y
y coordinate

Constructor Detail

Coords

public Coords()
Creates a new instance of Coords with default coordinates (0,0).


Coords

public Coords(int x,
              int y)
Creates a new instance of Coords with specified x and y coordinate.

Parameters:
x - value of x
y - value of y
Method Detail

getX

public int getX()
Return x coordinate

Returns:
coordinate x

getY

public int getY()
Return y coordinate

Returns:
coordinate y

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" Coords class..

Overrides:
equals in class java.lang.Object
Parameters:
obj - obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the Coords object [ x = ,y = ]

Overrides:
toString in class java.lang.Object
Returns:
Returns a string representation of the Coords object