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

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

public class EdgeWeight
extends AbstractProperty

Represents the weight of an edge.

See Also:
Serialized Form

Constructor Summary
EdgeWeight()
          Creates a new edge weight property for the given edge.
EdgeWeight(Double weight)
          Creates a new edge weight property for the given edge with the specified value.
 
Method Summary
 String getValueToDisplay()
          Returns the value(s) in a way to show it in a UI.
 Double getWeight()
           
 void setWeight(Double weight)
          Sets the weight of the edge.
 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

EdgeWeight

public EdgeWeight()
Creates a new edge weight property for the given edge.


EdgeWeight

public EdgeWeight(Double weight)
Creates a new edge weight property for the given edge with the specified value.

Parameters:
weight - The weight of the edge.
Method Detail

getWeight

public Double getWeight()
Returns:
The value of this property (i.e. the weight of the corresponding edge).

setWeight

public void setWeight(Double weight)
Sets the weight of the edge. Value must be greater or equal to 1.

Parameters:
weight - the new weight >= 1

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All rights reserved.