Package org.opentcs.data.model
Klasse Vehicle
- Alle implementierten Schnittstellen:
Serializable
Describes a vehicle's current state.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Contains information regarding the energy level threshold values of a vehicle.static enum
A vehicle's state of integration into the system.static class
Contains information regarding the graphical representation of a vehicle.static enum
The elements of this enumeration represent the possible orientations of a vehicle.static enum
A vehicle's processing state as seen by the dispatcher.static enum
The elements of this enumeration describe the various possible states of a vehicle. -
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
The key for a property to store the class name of the preferred communication adapter (factory) for this vehicle. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungList
<Set<TCSResourceReference<?>>> Returns the resources this vehicle has allocated.Returns the set of order types this vehicle is allowed to process.Returns the vehicle's current bounding box (in mm).List
<Set<TCSResourceReference<?>>> Returns the resources this vehicle has claimed for future allocation.Returns a reference to the point this vehicle currently occupies.int
Returns this vehicle's remaining energy (in percent of the maximum).int
Veraltet.int
Veraltet.UsegetEnergyLevelThresholdSet()
instead.int
Veraltet.UsegetEnergyLevelThresholdSet()
instead.int
Veraltet.UsegetEnergyLevelThresholdSet()
instead.Returns this vehicle's energy level threshold set.Returns the key for selecting the envelope to be used for resources the vehicle occupies.Returns this vehicle's integration level.Returns the information regarding the graphical representation of this vehicle.int
Veraltet.UsegetBoundingBox()
instead.Returns the current (state of the) load handling devices of this vehicle.int
Returns this vehicle's maximum reverse velocity (in mm/s).int
Returns this vehicle's maximum velocity (in mm/s).Returns a reference to the point this vehicle is expected to be seen at next.Returns a reference to the order sequence this vehicle is currently processing.double
Veraltet.UsegetPose()
instead.getPose()
Returns the vehicle's pose containing the precise position and orientation angle.Veraltet.UsegetPose()
instead.Returns this vehicle's current processing state.Returns the operation that the vehicle's current communication adapter accepts as a command to recharge the vehicle.getState()
Returns this vehicle's current state.Returns a reference to the transport order this vehicle is currently processing.boolean
hasProcState
(Vehicle.ProcState otherState) Checks if this vehicle's current processing state is equal to the given one.boolean
hasState
(Vehicle.State otherState) Checks if this vehicle's current state is equal to the given one.boolean
Checks whether the vehicle's energy level is critical.boolean
Checks whether the vehicle's energy level is degraded (not good any more).boolean
Checks whether the vehicle's energy level is fully recharged.boolean
Checks whether the vehicle's energy level is good.boolean
Checks whether the vehicle's energy level is sufficiently recharged.boolean
isPaused()
Indicates whether this vehicle is paused.boolean
Checks if this vehicle is currently processing any transport order.toString()
withAllocatedResources
(List<Set<TCSResourceReference<?>>> allocatedResources) Creates a copy of this object, with the given allocated resources.withAllowedOrderTypes
(Set<String> allowedOrderTypes) Creates a copy of this object, with the given set of allowed order types.withBoundingBox
(BoundingBox boundingBox) Creates a copy of this object, with the given bounding box (in mm).withClaimedResources
(List<Set<TCSResourceReference<?>>> claimedResources) Creates a copy of this object, with the given claimed resources.withCurrentPosition
(TCSObjectReference<Point> currentPosition) Creates a copy of this object, with the given current position.withEnergyLevel
(int energyLevel) Creates a copy of this object, with the given energy level.withEnergyLevelCritical
(int energyLevelCritical) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.withEnergyLevelFullyRecharged
(int energyLevelFullyRecharged) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.withEnergyLevelGood
(int energyLevelGood) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.withEnergyLevelSufficientlyRecharged
(int energyLevelSufficientlyRecharged) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.withEnergyLevelThresholdSet
(Vehicle.EnergyLevelThresholdSet energyLevelThresholdSet) Creates a copy of this object, with the given EnergyLevelThresholdSet.withEnvelopeKey
(String envelopeKey) Creates a copy of this object, with the given envelope key.withHistory
(ObjectHistory history) Creates a copy of this object, with the given history.Creates a copy of this object, with the given history entry integrated.withIntegrationLevel
(Vehicle.IntegrationLevel integrationLevel) Creates a copy of this object, with the given integration level.withLayout
(Vehicle.Layout layout) Creates a copy of this object, with the given layout.withLength
(int length) Veraltet.UsewithBoundingBox(BoundingBox)
instead.withLoadHandlingDevices
(List<LoadHandlingDevice> loadHandlingDevices) Creates a copy of this object, with the given load handling devices.withMaxReverseVelocity
(int maxReverseVelocity) Creates a copy of this object, with the given maximum reverse velocity.withMaxVelocity
(int maxVelocity) Creates a copy of this object, with the given maximum velocity.withNextPosition
(TCSObjectReference<Point> nextPosition) Creates a copy of this object, with the given next position.withOrderSequence
(TCSObjectReference<OrderSequence> orderSequence) Creates a copy of this object, with the given order sequence.withOrientationAngle
(double orientationAngle) Veraltet.UsewithPose(Pose)
instead.withPaused
(boolean paused) Creates a copy of this object, with the given paused state.Creates a copy of this object, with the given pose.withPrecisePosition
(Triple precisePosition) Veraltet.UsewithPose(Pose)
instead.withProcState
(Vehicle.ProcState procState) Creates a copy of this object, with the given processing state.withProperties
(Map<String, String> properties) Creates a copy of this object, with the given properties.withProperty
(String key, String value) Creates a copy of this object, with the given property integrated.withRechargeOperation
(String rechargeOperation) Creates a copy of this object, with the given recharge operation.withState
(Vehicle.State state) Creates a copy of this object, with the given state.withTransportOrder
(TCSObjectReference<TransportOrder> transportOrder) Creates a copy of this object, with the given transport order.Von Klasse geerbte Methoden org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, getReference, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues
-
Felddetails
-
PREFERRED_ADAPTER
The key for a property to store the class name of the preferred communication adapter (factory) for this vehicle.- Siehe auch:
-
-
Konstruktordetails
-
Vehicle
Creates a new vehicle.- Parameter:
name
- The new vehicle's name.
-
-
Methodendetails
-
withProperty
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given property integrated.- Angegeben von:
withProperty
in KlasseTCSObject<Vehicle>
- Parameter:
key
- The key of the property to be changed.value
- The new value of the property, ornull
, if the property is to be removed.- Gibt zurück:
- A copy of this object, with the given property integrated.
-
withProperties
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given properties.- Angegeben von:
withProperties
in KlasseTCSObject<Vehicle>
- Parameter:
properties
- The properties.- Gibt zurück:
- A copy of this object, with the given properties.
-
withHistoryEntry
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history entry integrated.- Angegeben von:
withHistoryEntry
in KlasseTCSObject<Vehicle>
- Parameter:
entry
- The history entry to be integrated.- Gibt zurück:
- A copy of this object, with the given history entry integrated.
-
withHistory
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history.- Angegeben von:
withHistory
in KlasseTCSObject<Vehicle>
- Parameter:
history
- The history.- Gibt zurück:
- A copy of this object, with the given history.
-
getEnergyLevel
public int getEnergyLevel()Returns this vehicle's remaining energy (in percent of the maximum).- Gibt zurück:
- This vehicle's remaining energy.
-
withEnergyLevel
Creates a copy of this object, with the given energy level.- Parameter:
energyLevel
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isEnergyLevelCritical
public boolean isEnergyLevelCritical()Checks whether the vehicle's energy level is critical.- Gibt zurück:
true
if, and only if, the vehicle's energy level is critical.
-
isEnergyLevelDegraded
public boolean isEnergyLevelDegraded()Checks whether the vehicle's energy level is degraded (not good any more).- Gibt zurück:
true
if, and only if, the vehicle's energy level is degraded.
-
isEnergyLevelGood
public boolean isEnergyLevelGood()Checks whether the vehicle's energy level is good.- Gibt zurück:
true
if, and only if, the vehicle's energy level is good.
-
isEnergyLevelFullyRecharged
public boolean isEnergyLevelFullyRecharged()Checks whether the vehicle's energy level is fully recharged.- Gibt zurück:
true
if, and only if, the vehicle's energy level is fully recharged.
-
isEnergyLevelSufficientlyRecharged
public boolean isEnergyLevelSufficientlyRecharged()Checks whether the vehicle's energy level is sufficiently recharged.- Gibt zurück:
true
if, and only if, the vehicle's energy level is sufficiently recharged.
-
getEnergyLevelCritical
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public int getEnergyLevelCritical()Veraltet.UsegetEnergyLevelThresholdSet()
instead.Returns this 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:
- This vehicle's critical energy level.
-
withEnergyLevelCritical
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withEnergyLevelCritical(int energyLevelCritical) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.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
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public int getEnergyLevelGood()Veraltet.UsegetEnergyLevelThresholdSet()
instead.Returns this 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:
- This vehicle's good energy level.
-
withEnergyLevelGood
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withEnergyLevelGood(int energyLevelGood) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.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.
-
getEnergyLevelFullyRecharged
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public int getEnergyLevelFullyRecharged()Veraltet.UsegetEnergyLevelThresholdSet()
instead.Returns this vehicle's energy level for being fully recharged (in percent of the maximum).- Gibt zurück:
- This vehicle's fully recharged threshold.
-
withEnergyLevelFullyRecharged
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withEnergyLevelFullyRecharged(int energyLevelFullyRecharged) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.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.
-
getEnergyLevelSufficientlyRecharged
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public int getEnergyLevelSufficientlyRecharged()Veraltet.UsegetEnergyLevelThresholdSet()
instead.Returns this vehicle's energy level for being sufficiently recharged (in percent of the maximum).- Gibt zurück:
- This vehicle's sufficiently recharged energy level.
-
withEnergyLevelSufficientlyRecharged
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withEnergyLevelSufficientlyRecharged(int energyLevelSufficientlyRecharged) Veraltet.UsewithEnergyLevelThresholdSet(EnergyLevelThresholdSet)
instead.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.
-
getEnergyLevelThresholdSet
Returns this vehicle's energy level threshold set.- Gibt zurück:
- This vehicle's energy level threshold set.
-
withEnergyLevelThresholdSet
Creates a copy of this object, with the given EnergyLevelThresholdSet.- Parameter:
energyLevelThresholdSet
- The new EnergyLevelThresholdSet.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getRechargeOperation
Returns the operation that the vehicle's current communication adapter accepts as a command to recharge the vehicle.- Gibt zurück:
- The operation that the vehicle's current communication adapter accepts as a command to recharge the vehicle.
-
withRechargeOperation
Creates a copy of this object, with the given recharge operation.- Parameter:
rechargeOperation
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLoadHandlingDevices
Returns the current (state of the) load handling devices of this vehicle.- Gibt zurück:
- The current (state of the) load handling devices of this vehicle.
-
withLoadHandlingDevices
Creates a copy of this object, with the given load handling devices.- Parameter:
loadHandlingDevices
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getMaxVelocity
public int getMaxVelocity()Returns this vehicle's maximum velocity (in mm/s).- Gibt zurück:
- This vehicle's maximum velocity (in mm/s).
-
withMaxVelocity
Creates a copy of this object, with the given maximum velocity.- Parameter:
maxVelocity
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getMaxReverseVelocity
public int getMaxReverseVelocity()Returns this vehicle's maximum reverse velocity (in mm/s).- Gibt zurück:
- This vehicle's maximum reverse velocity (in mm/s).
-
withMaxReverseVelocity
Creates a copy of this object, with the given maximum reverse velocity.- Parameter:
maxReverseVelocity
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getState
Returns this vehicle's current state.- Gibt zurück:
- This vehicle's current state.
-
hasState
Checks if this vehicle's current state is equal to the given one.- Parameter:
otherState
- The state to compare to this vehicle's one.- Gibt zurück:
true
if, and only if, the given state is equal to this vehicle's one.
-
withState
Creates a copy of this object, with the given state.- Parameter:
state
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getProcState
Returns this vehicle's current processing state.- Gibt zurück:
- This vehicle's current processing state.
-
getIntegrationLevel
Returns this vehicle's integration level.- Gibt zurück:
- This vehicle's integration level.
-
withIntegrationLevel
Creates a copy of this object, with the given integration level.- Parameter:
integrationLevel
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isPaused
public boolean isPaused()Indicates whether this vehicle is paused.- Gibt zurück:
- Whether this vehicle is paused.
-
withPaused
Creates a copy of this object, with the given paused state.- Parameter:
paused
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
hasProcState
Checks if this vehicle's current processing state is equal to the given one.- Parameter:
otherState
- The state to compare to this vehicle's one.- Gibt zurück:
true
if, and only if, the given state is equal to this vehicle's one.
-
withProcState
Creates a copy of this object, with the given processing state.- Parameter:
procState
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getBoundingBox
Returns the vehicle's current bounding box (in mm).The bounding box is oriented so that its longitudinal axis runs parallel to the longitudinal axis of the vehicle. For the reference point offset, positive x values indicate an offset in the forward direction of the vehicle, positive y values an offset towards the left-hand side.
- Gibt zurück:
- The vehicle's current bounding box (in mm).
-
withBoundingBox
Creates a copy of this object, with the given bounding box (in mm).The bounding box is oriented so that its longitudinal axis runs parallel to the longitudinal axis of the vehicle. For the reference point offset, positive x values indicate an offset in the forward direction of the vehicle, positive y values an offset towards the left-hand side.
- Parameter:
boundingBox
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLength
Veraltet.UsegetBoundingBox()
instead.Returns this vehicle's current length.- Gibt zurück:
- this vehicle's current length.
-
withLength
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withLength(int length) Veraltet.UsewithBoundingBox(BoundingBox)
instead.Creates a copy of this object, with the given length.- Parameter:
length
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getTransportOrder
Returns a reference to the transport order this vehicle is currently processing.- Gibt zurück:
- A reference to the transport order this vehicle is currently
processing, or
null
, if it is not processing any transport order at the moment.
-
withTransportOrder
Creates a copy of this object, with the given transport order.- Parameter:
transportOrder
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getOrderSequence
Returns a reference to the order sequence this vehicle is currently processing.- Gibt zurück:
- A reference to the order sequence this vehicle is currently
processing, or
null
, if it is not processing any order sequence at the moment.
-
withOrderSequence
Creates a copy of this object, with the given order sequence.- Parameter:
orderSequence
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getAllowedOrderTypes
Returns the set of order types this vehicle is allowed to process.- Gibt zurück:
- The set of order types this vehicle is allowed to process.
-
withAllowedOrderTypes
Creates a copy of this object, with the given set of allowed order types.- Parameter:
allowedOrderTypes
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getClaimedResources
Returns the resources this vehicle has claimed for future allocation.- Gibt zurück:
- The resources this vehicle has claimed for future allocation.
-
withClaimedResources
Creates a copy of this object, with the given claimed resources.- Parameter:
claimedResources
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getAllocatedResources
Returns the resources this vehicle has allocated.- Gibt zurück:
- The resources this vehicle has allocated.
-
withAllocatedResources
Creates a copy of this object, with the given allocated resources.- Parameter:
allocatedResources
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getCurrentPosition
Returns a reference to the point this vehicle currently occupies.- Gibt zurück:
- A reference to the point this vehicle currently occupies, or
null
, if this vehicle's position is unknown or the vehicle is currently not in the system.
-
withCurrentPosition
Creates a copy of this object, with the given current position.- Parameter:
currentPosition
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getNextPosition
Returns a reference to the point this vehicle is expected to be seen at next.- Gibt zurück:
- A reference to the point this vehicle is expected to be seen at
next, or
null
, if this vehicle's next position is unknown.
-
withNextPosition
Creates a copy of this object, with the given next position.- Parameter:
nextPosition
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getPrecisePosition
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Triple getPrecisePosition()Veraltet.UsegetPose()
instead.Returns the vehicle's position in world coordinates [mm], independent from logical positions/point names. May benull
if the vehicle hasn't provided a precise position.- Gibt zurück:
- The vehicle's precise position in mm.
-
withPrecisePosition
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withPrecisePosition(Triple precisePosition) Veraltet.UsewithPose(Pose)
instead.Creates a copy of this object, with the given precise position.- Parameter:
precisePosition
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getOrientationAngle
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public double getOrientationAngle()Veraltet.UsegetPose()
instead.Returns the vehicle's current orientation angle (-360..360). May beDouble.NaN
if the vehicle hasn't provided an orientation angle.- Gibt zurück:
- The vehicle's current orientation angle.
-
withOrientationAngle
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Vehicle withOrientationAngle(double orientationAngle) Veraltet.UsewithPose(Pose)
instead.Creates a copy of this object, with the given orientation angle.- Parameter:
orientationAngle
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getPose
Returns the vehicle's pose containing the precise position and orientation angle.- Gibt zurück:
- The vehicle's pose.
-
withPose
Creates a copy of this object, with the given pose.- Parameter:
pose
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getEnvelopeKey
@ScheduledApiChange(when="7.0", details="Envelope key will become non-null.") @Nullable public String getEnvelopeKey()Returns the key for selecting the envelope to be used for resources the vehicle occupies.- Gibt zurück:
- The key for selecting the envelope to be used for resources the vehicle occupies.
-
withEnvelopeKey
@ScheduledApiChange(when="7.0", details="Envelope key will become non-null.") public Vehicle withEnvelopeKey(@Nullable String envelopeKey) Creates a copy of this object, with the given envelope key.- Parameter:
envelopeKey
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLayout
Returns the information regarding the graphical representation of this vehicle.- Gibt zurück:
- The information regarding the graphical representation of this vehicle.
-
withLayout
Creates a copy of this object, with the given layout.- Parameter:
layout
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isProcessingOrder
public boolean isProcessingOrder()Checks if this vehicle is currently processing any transport order.- Gibt zurück:
true
if, and only if, this vehicle is currently processing a transport order.
-
toString
-
getEnergyLevelThresholdSet()
instead.