Package org.opentcs.data.model
Klasse Vehicle.EnergyLevelThresholdSet
java.lang.Object
org.opentcs.data.model.Vehicle.EnergyLevelThresholdSet
- Alle implementierten Schnittstellen:
Serializable
- Umschließende Klasse:
Vehicle
Contains information regarding the energy level threshold values of a vehicle.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungEnergyLevelThresholdSet
(int energyLevelCritical, int energyLevelGood, int energyLevelSufficientlyRecharged, int energyLevelFullyRecharged) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
int
Returns the vehicle's critical energy level (in percent of the maximum).int
Returns the vehicle's energy level for being fully recharged (in percent of the maximum).int
Returns the vehicle's good energy level (in percent of the maximum).int
Returns the vehicle's energy level for being sufficiently recharged (in percent of the maximum).int
hashCode()
toString()
withEnergyLevelCritical
(int energyLevelCritical) Creates a copy of this object, with the given critical energy level.withEnergyLevelFullyRecharged
(int energyLevelFullyRecharged) Creates a copy of this object, with the given fully recharged energy level.withEnergyLevelGood
(int energyLevelGood) Creates a copy of this object, with the given good energy level.withEnergyLevelSufficientlyRecharged
(int energyLevelSufficientlyRecharged) Creates a copy of this object, with the given sufficiently recharged energy level.
-
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
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
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 Vehicle.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
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.
-
equals
-
hashCode
public int hashCode() -
toString
-