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

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

public class NodeLocations
extends AbstractProperty

Manages a list of all locations associated to the node holding this property.

See Also:
Serialized Form

Constructor Summary
NodeLocations()
          Creates a new property.
NodeLocations(Integer... locationIds)
          Creates a new property.
NodeLocations(List<Integer> locationIds)
          Creates a new property.
 
Method Summary
 void addLocationId(Integer id)
          Adds the given location id to this property.
 Collection<Integer> getAllowedTypes()
          Returns the allowed robot type ids for this property.
 List<Integer> getLocationIds()
           
 String getLocationIdString()
           
 String getValueToDisplay()
          Returns the value(s) in a way to show it in a UI.
static NodeLocations parse(String value)
          Parses the property from the given string.
 void removeLocationId(Integer id)
          Removes the given location id from this property.
 void setLocationIdString(String s)
          Helper accessor to set the list via string.
 String toString()
           
 
Methods inherited from class com.kuka.nav.fleet.graph.properties.AbstractProperty
equals, fireChanged, getId, hashCode, setId, tryGetParamFromString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeLocations

public NodeLocations()
Creates a new property.


NodeLocations

public NodeLocations(Integer... locationIds)
Creates a new property.

Parameters:
locationIds - a list of all associated locations (ids)

NodeLocations

public NodeLocations(List<Integer> locationIds)
Creates a new property.

Parameters:
locationIds - a list of all associated locations (ids)
Method Detail

setLocationIdString

public void setLocationIdString(String s)
Helper accessor to set the list via string.

Parameters:
s - a string containing seperated integer values as location ids

getLocationIdString

public String getLocationIdString()
Returns:
the list of location ids as a string

getLocationIds

public List<Integer> getLocationIds()
Returns:
an unmodifiable list of all associated location ids.

addLocationId

public void addLocationId(Integer id)
Adds the given location id to this property.

Parameters:
id - the location id

removeLocationId

public void removeLocationId(Integer id)
Removes the given location id from this property.

Parameters:
id - the location id

toString

public String toString()
Overrides:
toString in class Object

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
Overrides:
getAllowedTypes in class AbstractProperty
Returns:
the allowed robot type ids

parse

public static NodeLocations parse(String value)
Parses the property from the given string.

Parameters:
value - The string representing associated locations.
Returns:
The new 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.