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

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

public class MaxAcceleration
extends AbstractProperty

Property describing the max allowed acceleration on an edge.

See Also:
Serialized Form

Constructor Summary
MaxAcceleration()
          Constructs a new max acceleration property with value 1.0.
MaxAcceleration(double maxAcc)
          Creates a new property.
 
Method Summary
static MaxAcceleration get(PropertyHolder e, Integer robotTypeId)
          Helper function to retrieve this property from an edge.
 Double getMaxAcceleration()
           
 String getValueToDisplay()
          Returns the value(s) in a way to show it in a UI.
static MaxAcceleration parse(String value)
          Parses the max accelerations from the given string.
static void set(PropertyHolder e, Integer robotTypeId, double value)
          Helper function to set this property for an edge.
 void setMaxAcceleration(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

MaxAcceleration

public MaxAcceleration(double maxAcc)
Creates a new property.

Parameters:
maxAcc - the max x acceleration

MaxAcceleration

public MaxAcceleration()
Constructs a new max acceleration property with value 1.0.

Method Detail

getMaxAcceleration

public Double getMaxAcceleration()
Returns:
The max x acceleration.

setMaxAcceleration

public void setMaxAcceleration(Double value)
Parameters:
value - the new value for max acceleration

toString

public String toString()
Overrides:
toString in class Object

get

public static MaxAcceleration 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 MaxAccelerations 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 acceleration value

parse

public static MaxAcceleration parse(String value)
Parses the max accelerations from the given string.

Parameters:
value - The string representing max accelerations.
Returns:
The max accelerations 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.