All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fudaa.dodico.rubar.io.RubarNUAResult Maven / Gradle / Ivy

There is a newer version: 2.7
Show newest version
/**
 * 
 */
package org.fudaa.dodico.rubar.io;

import java.util.ArrayList;
import java.util.List;

import org.fudaa.ctulu.gis.GISPoint;

/**
 * @author CANEL Christophe (Genesis)
 */
public class RubarNUAResult {
  public static class RubarNUAResultLine {
    private final int areteIdx;
    private final GISPoint point;
    private final double coeff;

    public RubarNUAResultLine(int areteIdx, GISPoint point, double coeff) {
      this.point = point;
      this.coeff = coeff;
      this.areteIdx = areteIdx;
    }

    public int getAreteIdx() {
      return areteIdx;
    }

    /**
     * @return the point
     */
    public GISPoint getPoint() {
      return point;
    }

    /**
     * @return the coeff
     */
    public double getCoeff() {
      return coeff;
    }

  }

  public static class RubarNUAResultBloc {
    private double time;
    private List lines = new ArrayList();

    public RubarNUAResultBloc(double time) {
      this.time = time;
    }

    /**
     * @return the time
     */
    public double getTime() {
      return time;
    }

    /**
     * @param time the time to set
     */
    public void setTime(double time) {
      this.time = time;
    }

    /**
     * @return the lines
     */
    public List getLines() {
      return lines;
    }
  }

  private List blocs = new ArrayList();

  public int getNbBlocSize() {
    return blocs.size();
  }

  public RubarNUAResultBloc getBloc(int idx) {
    return blocs.get(idx);
  }

  /**
   * @return the blocs
   */
  public List getBlocs() {
    return blocs;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy