import daj.*;

class PositionSet extends Message {
  public Position p[];
  public int n;			// max. nr. of points
  public int k;			// actual nr. of points

  PositionSet(int n) {
    p = new Position[n];
    this.n = n;
    this.k = 0;
  }

  public void add(Position point) {
    if(k < n) {
      p[k] = point;
      k ++;
    } else {
      System.err.println("add error");
    }
  }
}

