Enum Station

java.lang.Object
java.lang.Enum<Station>
fr.alba0404.astuce.api.enums.Station
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Station>, java.lang.constant.Constable

public enum Station
extends java.lang.Enum<Station>
Stations of the Astuce transport network;
Version:
2.0
Author:
Alba0404
  • Enum Constant Details

    • ABATTOIRS

      public static final Station ABATTOIRS
    • ABBAYE_DE_ST_MARTIN_DE_BOSCHERVILLE

      public static final Station ABBAYE_DE_ST_MARTIN_DE_BOSCHERVILLE
    • ABBESSES

      public static final Station ABBESSES
    • ACHAVANNE

      public static final Station ACHAVANNE
    • ADENAUER

      public static final Station ADENAUER
    • AEROPORT

      public static final Station AEROPORT
    • ALLEE_DE_L_OREE_DU_BOIS

      public static final Station ALLEE_DE_L_OREE_DU_BOIS
    • ALLEE_DES_DEUX_FERMES

      public static final Station ALLEE_DES_DEUX_FERMES
    • ALLEE_DE_PEUPLIERS

      public static final Station ALLEE_DE_PEUPLIERS
    • GARE_RUE_VERTE

      public static final Station GARE_RUE_VERTE
    • BOULINGRIN

      public static final Station BOULINGRIN
    • BEAUVOISINE

      public static final Station BEAUVOISINE
    • GARE_RUE_VERTE_METRO

      public static final Station GARE_RUE_VERTE_METRO
    • PALAIS_DE_JUSTICE

      public static final Station PALAIS_DE_JUSTICE
    • THEATRE_DES_ARTS

      public static final Station THEATRE_DES_ARTS
    • JOFFRE_MUTUALITE

      public static final Station JOFFRE_MUTUALITE
    • SAINT_SEVER

      public static final Station SAINT_SEVER
    • EUROPE

      public static final Station EUROPE
    • HONORE_DE_BALZAC

      public static final Station HONORE_DE_BALZAC
    • VOLTAIRE

      public static final Station VOLTAIRE
    • GARIBALDI

      public static final Station GARIBALDI
    • HDV_SOTTEVILLE

      public static final Station HDV_SOTTEVILLE
    • _14_JUILLET

      public static final Station _14_JUILLET
    • JEAN_ZAY

      public static final Station JEAN_ZAY
    • TOIT_FAMILIAL

      public static final Station TOIT_FAMILIAL
    • CHAMP_DE_COURSE

      public static final Station CHAMP_DE_COURSE
    • ERNEST_RENAN

      public static final Station ERNEST_RENAN
    • LE_PARC

      public static final Station LE_PARC
    • MARYSE_BASTIE

      public static final Station MARYSE_BASTIE
    • TECHNOPOLE

      public static final Station TECHNOPOLE
    • AVENUE_DE_CAEN

      public static final Station AVENUE_DE_CAEN
    • JEAN_JAURES

      public static final Station JEAN_JAURES
    • FRANCOIS_TRUFFAUT

      public static final Station FRANCOIS_TRUFFAUT
    • PLACE_DU_8_MAI

      public static final Station PLACE_DU_8_MAI
    • SAINT_JULIEN

      public static final Station SAINT_JULIEN
    • CHARLES_DE_GAULLE

      public static final Station CHARLES_DE_GAULLE
    • PROVINCES

      public static final Station PROVINCES
    • JF_KENNEDY

      public static final Station JF_KENNEDY
    • LEON_BLUM

      public static final Station LEON_BLUM
    • PAUL_CEZANNE

      public static final Station PAUL_CEZANNE
    • GEORGES_BRAQUE

      public static final Station GEORGES_BRAQUE
  • Method Details

    • values

      public static Station[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Station valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getName

      public final java.lang.String getName()
      Getter for the name of the station.
      Returns:
      The name of the station, used by the system.
    • getId

      public final int getId()
      Getter for the id of the station.
      Returns:
      The id of the station.
    • getPhysicalIds

      public final int getPhysicalIds​(int sens, Line line)
      Get the physical id (the platform) of the station.
      Parameters:
      sens - The direction (1/2).
      line - The concerned line.
      Returns:
      The physical id.
    • getLines

      public final java.util.List<Line> getLines()
      Getter for Lines which go to this station.
      Returns:
      The list of lines available at this station.
    • getStationById

      public static final Station getStationById​(int id)
      Get the station using its id.
      Parameters:
      id - The id of the station you want.
      Returns:
      The station with this id.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Enum<Station>