Class Beta2D

java.lang.Object
jaba.Beta2D

public class Beta2D extends Object
Created by IntelliJ IDEA. User: PoliMi Date: 25-lug-2005 Time: 10.48.18 To change this template use File | Settings | File Templates.
  • Constructor Details

    • Beta2D

      public Beta2D()
  • Method Details

    • BetaCalc2D

      public Sector2D BetaCalc2D(newPoint p1, newPoint p2)
      Given two points p1 and p2 the method return the betas of the saturation sector by means of solving a system of linear equations
      Parameters:
      p1 -
      p2 -
      Returns:
      a sector Sector2D with the coordinates in the space of the betas and the associated service demands
    • BetaVector

      public Vector<Sector2D> BetaVector(Vector<newPoint> verticesnp)
      Given a vector of vertices returns a vector double[] representing the betas and the points in the associated sector
      Parameters:
      verticesnp - the vector of vertices
      Returns:
      a vector with the beta with the data structures in BetaCal2D
    • StatAss

      public Vector<Sector2D> StatAss(Vector<Sector2D> sector)
      The method associates a vector passed from BetaVector to each sector a station, exploding in such a way to obtain also the sectors where a single station saturates
      Parameters:
      sector - a vettore passed by BetaVector
      Returns:
      {b1,1-b1,b2,1-b2,xa,ya,xb,yb} if in the sector saturates a single station=>xb,yb=-1