Class Beta2D
java.lang.Object
jaba.Beta2D
Created by IntelliJ IDEA.
User: PoliMi
Date: 25-lug-2005
Time: 10.48.18
To change this template use File | Settings | File Templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBetaCalc2D(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 equationsBetaVector(Vector<newPoint> verticesnp) Given a vector of vertices returns a vector double[] representing the betas and the points in the associated sectorThe 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
-
Constructor Details
-
Beta2D
public Beta2D()
-
-
Method Details
-
BetaCalc2D
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
-
StatAss
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
-