package org.lucci.madhoc.bining;
import java.util.Collection;
import java.util.HashSet;
import org.lucci.madhoc.network.Station;
public class Cel
{
private int x, y;
private Collection<Station> stations = new HashSet<Station>();
public Cel(int i, int j)
{
if (i < 0)
throw new IllegalArgumentException("i should be >= 0");
if (j < 0)
throw new IllegalArgumentException("j should be >= 0");
this.x = i;
this.y = j;
}
public int getX()
{
return x;
}
public int getY()
{
return y;
}
public Collection<Station> getStations()
{
return stations;
}
}