Class Sector3D

java.lang.Object
jaba.Sector3D

public class Sector3D extends Object
Created by IntelliJ IDEA. User: Andrea Zanzottera Date: 27-lug-2005 Time: 13.54.43
  • Constructor Details

  • Method Details

    • setClassNames

      public void setClassNames(String[] classNames)
    • getBeta

      public double getBeta(int vertex, String coord)
      !!NOT USED!! Returns the "x","y" or "z" coordinate of the vertex vertex in Beta space
      Parameters:
      vertex -
      coord -
      Returns:
      the "x","y" or "z" coordinate of the vertex vertex in Beta space
    • getBeta

      public double getBeta(int vertex, int coord)
    • getBetas

      public double[] getBetas(int vertex)
      Returns an array of doubles containing coordinates in zeta space of vertex vertex
      Parameters:
      vertex -
      Returns:
      an array of doubles containing coordinates in zeta space
    • getV0

      public BetaVertex getV0()
    • getV1

      public BetaVertex getV1()
    • getV2

      public BetaVertex getV2()
    • getV

      public BetaVertex getV(int i)
    • CountPoint

      public int CountPoint()
    • getS0

      public Vertex getS0()
    • getS1

      public Vertex getS1()
    • getS2

      public Vertex getS2()
    • getS

      public Vertex getS(int i)
    • getS

      public Vector<Vertex> getS()
    • CountStations

      public int CountStations()
      Method CountStations.
      Returns:
      an int that corresponds to the number of stations associated with a sector
    • AddVertex

      public Sector3D AddVertex(BetaVertex betas, Vertex station)
      Adds a point in Beta space and its station
      Parameters:
      betas -
      station -
      Returns:
      the updated sector
    • setType

      public Sector3D setType(int type)
      The method is to set the sector type. 1=Saturates a single station 2=Saturate 2 stations 3=Saturate 3 stations etc
      Parameters:
      type -
      Returns:
      the updated sector
    • getType

      public int getType()
      Returns the type.
      Returns:
      the type of Sector
    • IsTriangle

      public boolean IsTriangle()
      Check if a Sector3D is a triangle where 3 contemp stations saturate.
      Returns:
      TRUE if it's a triangle
    • AssoStation3D

      public int AssoStation3D(Vector points, Vertex p)
      Given a vector of Vertex and a Vertex associate this last one to the initial stations
      Parameters:
      points -
      p -
      Returns:
      the starting station number
    • getxycoord

      public double[] getxycoord(int point)
      /////////////////// MANAGEMENT OF COORDINATES PROJECTED ON THE XY PLANE ////////////////////
    • getx

      public double getx(int point)
    • gety

      public double gety(int point)
    • addxycoord

      public void addxycoord(double[] coord)
    • getCentre

      public double[] getCentre()
      Calculates central point of the polygon
      Fixed by Bertoli Marco
      Returns:
      an array with x and y coordinates of center
    • givename

      public void givename(Vector<Station3D> oristations)
      //////////////////// STATION NAMES MANAGEMENT ////////////////////// //////////////
    • getName

      public String getName()
    • getNames

      public String[] getNames()
    • toString

      public String toString()
      Overrides:
      toString in class Object