com.kuka.nav.fleet.graph.properties
Class MaxVelocity

java.lang.Object
  extended by com.kuka.nav.fleet.graph.properties.AbstractProperty
      extended by com.kuka.nav.fleet.graph.properties.MaxVelocity
All Implemented Interfaces:
Property, Serializable

public class MaxVelocity
extends AbstractProperty

Property limiting the maximum velocity along a graph edge.

See Also:
Serialized Form

Constructor Summary
MaxVelocity()
          Constructs a new max velocity property with value 1.0.
MaxVelocity(double maxVel)
           
 
Method Summary
static MaxVelocity get(PropertyHolder e, Integer robotTypeId)
          Helper function to retrieve this property from an edge.
 Double getMaxVelocity()
           
 String getValueToDisplay()
          Returns the value(s) in a way to show it in a UI.
static MaxVelocity parse(String value)
          Parses the max velocities from the given string.
static void set(PropertyHolder e, Integer robotTypeId, double value)
          Helper function to set this property for an edge.
 void setMaxVelocity(Double value)
           
 String toString()
           
 
Methods inherited from class com.kuka.nav.fleet.graph.properties.AbstractProperty
equals, fireChanged, getAllowedTypes, getId, hashCode, setId, tryGetParamFromString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxVelocity

public MaxVelocity(double maxVel)
Parameters:
maxVel - The maximum velocity.

MaxVelocity

public MaxVelocity()
Constructs a new max velocity property with value 1.0.

Method Detail

getMaxVelocity

public Double getMaxVelocity()
Returns:
The maximum velocity.

setMaxVelocity

public void setMaxVelocity(Double value)
Parameters:
value - the new value for max velocity

toString

public String toString()
Overrides:
toString in class Object

get

public static MaxVelocity get(PropertyHolder e,
                              Integer robotTypeId)
Helper function to retrieve this property from an edge.

Parameters:
e - an edge
robotTypeId - a robot type id
Returns:
the MaxVelocities property of the edge for the given robot type, or null if none is set

set

public static void set(PropertyHolder e,
                       Integer robotTypeId,
                       double value)
Helper function to set this property for an edge.

Parameters:
e - an edge
robotTypeId - a robot type id
value - the new max velocity value

parse

public static MaxVelocity parse(String value)
Parses the max velocities from the given string.

Parameters:
value - The string representing max velocities.
Returns:
The max velocities property.

getValueToDisplay

public String getValueToDisplay()
Description copied from interface: Property
Returns the value(s) in a way to show it in a UI.

Returns:
the values


Copyright © 2019. All rights reserved.