|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.fleet.graph.properties.AbstractProperty
com.kuka.nav.fleet.graph.properties.NodeLocations
public class NodeLocations
Manages a list of all locations associated to the node holding this property.
| 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 |
|---|
public NodeLocations()
public NodeLocations(Integer... locationIds)
locationIds - a list of all associated locations (ids)public NodeLocations(List<Integer> locationIds)
locationIds - a list of all associated locations (ids)| Method Detail |
|---|
public void setLocationIdString(String s)
s - a string containing seperated integer values as location idspublic String getLocationIdString()
public List<Integer> getLocationIds()
public void addLocationId(Integer id)
id - the location idpublic void removeLocationId(Integer id)
id - the location idpublic String toString()
toString in class Objectpublic Collection<Integer> getAllowedTypes()
PropertyPropertyHolder.ROBOTTYPEALL)
is considered as a separate robot type. If all possible types are allowed
the returned collection is empty.
getAllowedTypes in interface PropertygetAllowedTypes in class AbstractPropertypublic static NodeLocations parse(String value)
value - The string representing associated locations.
public String getValueToDisplay()
Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||