Klasse VehicleCreationTO.EnergyLevelThresholdSet

java.lang.Object
org.opentcs.access.to.model.VehicleCreationTO.EnergyLevelThresholdSet
Alle implementierten Schnittstellen:
Serializable
Umschließende Klasse:
VehicleCreationTO

public static class VehicleCreationTO.EnergyLevelThresholdSet extends Object implements Serializable
Contains information regarding the energy level threshold values of a vehicle.
Siehe auch:
  • Konstruktordetails

    • EnergyLevelThresholdSet

      public EnergyLevelThresholdSet(int energyLevelCritical, int energyLevelGood, int energyLevelSufficientlyRecharged, int energyLevelFullyRecharged)
      Creates a new instance.
      Parameter:
      energyLevelCritical - The value at/below which the vehicle's energy level is considered "critical".
      energyLevelGood - The value at/above which the vehicle's energy level is considered "good".
      energyLevelSufficientlyRecharged - The value at/above which the vehicle's energy level is considered fully recharged.
      energyLevelFullyRecharged - The value at/above which the vehicle's energy level is considered sufficiently recharged.
  • Methodendetails

    • getEnergyLevelCritical

      public int getEnergyLevelCritical()
      Returns the vehicle's critical energy level (in percent of the maximum).

      The critical energy level is the one at/below which the vehicle should be recharged.

      Gibt zurück:
      The vehicle's critical energy level.
    • withEnergyLevelCritical

      public VehicleCreationTO.EnergyLevelThresholdSet withEnergyLevelCritical(int energyLevelCritical)
      Creates a copy of this object, with the given critical energy level.
      Parameter:
      energyLevelCritical - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getEnergyLevelGood

      public int getEnergyLevelGood()
      Returns the vehicle's good energy level (in percent of the maximum).

      The good energy level is the one at/above which the vehicle can be dispatched again when charging.

      Gibt zurück:
      The vehicle's good energy level.
    • withEnergyLevelGood

      public VehicleCreationTO.EnergyLevelThresholdSet withEnergyLevelGood(int energyLevelGood)
      Creates a copy of this object, with the given good energy level.
      Parameter:
      energyLevelGood - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getEnergyLevelSufficientlyRecharged

      public int getEnergyLevelSufficientlyRecharged()
      Returns the vehicle's energy level for being sufficiently recharged (in percent of the maximum).
      Gibt zurück:
      This vehicle's sufficiently recharged energy level.
    • withEnergyLevelSufficientlyRecharged

      public VehicleCreationTO.EnergyLevelThresholdSet withEnergyLevelSufficientlyRecharged(int energyLevelSufficientlyRecharged)
      Creates a copy of this object, with the given sufficiently recharged energy level.
      Parameter:
      energyLevelSufficientlyRecharged - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getEnergyLevelFullyRecharged

      public int getEnergyLevelFullyRecharged()
      Returns the vehicle's energy level for being fully recharged (in percent of the maximum).
      Gibt zurück:
      The vehicle's fully recharged threshold.
    • withEnergyLevelFullyRecharged

      public VehicleCreationTO.EnergyLevelThresholdSet withEnergyLevelFullyRecharged(int energyLevelFullyRecharged)
      Creates a copy of this object, with the given fully recharged energy level.
      Parameter:
      energyLevelFullyRecharged - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object