/**
 * $$\\ToureNPlaner\\$$
 */
package computecore;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author Niklas Schnelle
 */
public class RequestPoints {
    private final ArrayList<RequestPoint> points;

    public RequestPoints() {
        super();
        points = new ArrayList<RequestPoint>();
    }
    
    public int size(){
        return points.size();
    }

    /**
     * Gets the latitude for point with index i
     *
     * @param i
     * @return
     */
    public int getPointLat(int i){
        return points.get(i).getLat();
    }

    /**
     * Gets the longitude for point with index i
     *
     * @param i
     * @return
     */
    public int getPointLon(int i) {
        return points.get(i).getLon();
    }

    /**
     * Sets the latitude for point with index i
     *
     * @param i
     */
    public void setPointLat(int i, int lat) {
        points.get(i).setLat(lat);
    }

    /**
     * Sets the longitude for point with index i
     *
     * @param i
     */
    public void setPointLon(int i, int lon) {
        points.get(i).setLon(lon);
    }

    public void addPoint(int lat, int lon, Map<String, Object> pconst) {
        points.add(new RequestPoint(lat, lon, pconst));
    }

    /**
     * Gets the Constraint with the name conName for point i
     *
     * @param i
     * @param conName
     * @return
     */
    public Object getConstraint(int i, String conName) {
        return (points.get(i).getConstraints() != null) ? points.get(i).getConstraints().get("conName") : null;
    }

    /**
     * Gets the Constraints of the point i
     *
     * @param i
     * @return
     */
    public Map<String, Object> getConstraints(int i) {
        return points.get(i).getConstraints();
    }

    /**
     * Adds a new point with null constraints
     *
     * @param lat
     * @param lon
     */
    public void addPoint(int lat, int lon) {
        this.addPoint(lat, lon, null);
    }

    /**
     * Gets the List of Points
     *
     * @return
     */
    public ArrayList<RequestPoint> getPoints() {
        return points;
    }
}

@@ -75,16 +75,39 @@
 ayList;%0A
+import java.util.List;%0A
 import j
@@ -201,19 +201,8 @@
 ate 
-final Array
 List
@@ -1994,24 +1994,62 @@
 st of Points
+ i.e. this RequestPoints backing store
 %0A     *%0A    
@@ -2078,21 +2078,16 @@
  public 
-Array
 List%3CReq
@@ -2104,35 +2104,246 @@
  get
-Points() %7B
+Store() %7B%0A        return points;%0A    %7D%0A%0A    /**%0A     * Sets the List of Points i.e. this RequestPoints backing store
 %0A     
+*%0A
    
-return p
+  * @param newPoints%0A     */%0A    public void setStore(List%3CRequestPoint%3E newPoints)%7B%0A        this.points = newP
 oint

Add method to set the points/store