package org.lucci.madhoc.bining;

import java.util.Collection;
import java.util.HashSet;

import org.lucci.madhoc.network.Station;

/*
 * Created on Jul 24, 2004
 */

/**
 * @author luc.hogie
 */
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;
    }

    /**
     * @return Returns the stations.
     */
    public Collection<Station> getStations()
    {
        return stations;
    }
}