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

java.lang.Object
  extended by com.kuka.nav.fleet.graph.properties.AbstractProperty
All Implemented Interfaces:
Property, Serializable
Direct Known Subclasses:
AbstractEdgeMaxMotionAbsProperty, AbstractEdgeMotionProperty, AbstractNodeMaxMotionAbsProperty, AbstractRecoverProperty, CustomUserData, EdgeBlendingCart, EdgeWeight, GraphTransition, MaxAcceleration, MaxDeceleration, MaxVelocity, NodeAccuracy, NodeAction, NodeAllowRotation, NodeDescription, NodeLocations, NodeName, NodePosition, NodeTransitOrientations, Restriction, WaitingZone

public abstract class AbstractProperty
extends Object
implements Property

Base class for all properties.

See Also:
Serialized Form

Constructor Summary
AbstractProperty()
          Creates a new property.
 
Method Summary
 boolean equals(Object obj)
           
protected  void fireChanged()
          Fires a changed event.
 Collection<Integer> getAllowedTypes()
          Returns the allowed robot type ids for this property.
 Integer getId()
          Returns the unique id of this property.
 int hashCode()
           
 void setId(Integer id)
          Sets the unique id of this property.
protected  Double tryGetParamFromString(int paramIndex, String paramString, int paramListLength)
          Parses the given string according to the commas and casts the resulting substrings to double.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.kuka.nav.fleet.graph.properties.Property
getValueToDisplay
 

Constructor Detail

AbstractProperty

public AbstractProperty()
Creates a new property.

Method Detail

getId

public Integer getId()
Description copied from interface: Property
Returns the unique id of this property.

Specified by:
getId in interface Property
Returns:
the unique id of this property

setId

public void setId(Integer id)
Description copied from interface: Property
Sets the unique id of this property.

Specified by:
setId in interface Property
Parameters:
id - the unique id of this property

getAllowedTypes

public Collection<Integer> getAllowedTypes()
Description copied from interface: Property
Returns the allowed robot type ids for this property. Note that the id corresponding to all robot types (PropertyHolder.ROBOTTYPEALL) is considered as a separate robot type. If all possible types are allowed the returned collection is empty.

Specified by:
getAllowedTypes in interface Property
Returns:
the allowed robot type ids

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

fireChanged

protected void fireChanged()
Fires a changed event.


tryGetParamFromString

protected Double tryGetParamFromString(int paramIndex,
                                       String paramString,
                                       int paramListLength)
Parses the given string according to the commas and casts the resulting substrings to double. If the resulting list does not have the expected length or the given index is out of bounds, null is returned. Otherwise, the entry at the given index is returned.

Parameters:
paramIndex - the index of the parameter.
paramString - the parameter string.
paramListLength - the expected length of the parameter string.
Returns:
the corresponding value (null if it is not set.)


Copyright © 2019. All rights reserved.