Enum Class SensorFeature

java.lang.Object
java.lang.Enum<SensorFeature>
it.unisa.diem.ai.torcs.model.SensorFeature
All Implemented Interfaces:
Serializable, Comparable<SensorFeature>, Constable

public enum SensorFeature extends Enum<SensorFeature>
Enumerazione che rappresenta un sottoinsieme di sensori selezionati dal modello TORCS. Ogni valore rappresenta una specifica feature che può essere usata per classificazione o apprendimento automatico.
  • Enum Constant Details

    • SPEED_X

      public static final SensorFeature SPEED_X
      Velocità lungo l'asse X del veicolo
    • SPEED_Y

      public static final SensorFeature SPEED_Y
      Velocità laterale lungo l'asse Y del veicolo
    • ANGLE_TO_TRACK_AXIS

      public static final SensorFeature ANGLE_TO_TRACK_AXIS
      Angolo tra l'asse del veicolo e l'asse centrale della pista
    • TRACK_POSITION

      public static final SensorFeature TRACK_POSITION
      Posizione laterale sulla pista rispetto al centro (range [-1, 1])
    • TRACK_EDGE_SENSOR_4

      public static final SensorFeature TRACK_EDGE_SENSOR_4
      Sensore di distanza al bordo della pista in posizione 4 (tra -90° e +90°)
    • TRACK_EDGE_SENSOR_6

      public static final SensorFeature TRACK_EDGE_SENSOR_6
      Sensore di distanza al bordo della pista in posizione 6
    • TRACK_EDGE_SENSOR_8

      public static final SensorFeature TRACK_EDGE_SENSOR_8
      Sensore di distanza al bordo della pista in posizione 8
    • TRACK_EDGE_SENSOR_9

      public static final SensorFeature TRACK_EDGE_SENSOR_9
      Sensore di distanza al bordo della pista in posizione 9
    • TRACK_EDGE_SENSOR_10

      public static final SensorFeature TRACK_EDGE_SENSOR_10
      Sensore di distanza al bordo della pista in posizione 10
    • TRACK_EDGE_SENSOR_12

      public static final SensorFeature TRACK_EDGE_SENSOR_12
      Sensore di distanza al bordo della pista in posizione 12
    • TRACK_EDGE_SENSOR_14

      public static final SensorFeature TRACK_EDGE_SENSOR_14
      Sensore di distanza al bordo della pista in posizione 14
  • Method Details

    • values

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

      public static SensorFeature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SensorFeature>
      Returns:
      nome leggibile della feature
    • getTrackSensorIndex

      public Integer getTrackSensorIndex()
      Returns:
      indice del sensore di bordo pista (se applicabile), altrimenti null
    • getTrackSensorIndices

      public static List<Integer> getTrackSensorIndices()
      Restituisce gli indici dei soli sensori di bordo pista utilizzati.
      Returns:
      lista di interi corrispondenti agli indici nel vettore di sensori "track"
    • csvHeader

      public static String csvHeader()
      Costruisce l'intestazione CSV completa con i nomi delle feature + LABEL_CODE e LABEL_NAME.
      Returns:
      stringa da usare come intestazione di un file CSV