|
||||||||||
| 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.Restriction
public final class Restriction
Component property to form the robot type permission system. The restriction is always set for all robots and if present, forbids all robots except those with permissions.
| Constructor Summary | |
|---|---|
Restriction()
Instantiates a new restriction property. |
|
| Method Summary | |
|---|---|
String |
getValueToDisplay()
Returns the value(s) in a way to show it in a UI. |
static boolean |
isAllowed(PropertyHolder propHolder,
Integer robotTypeId)
Tests whether a robot type has permission to use an edge or node. |
static boolean |
isRestricted(PropertyHolder propHolder,
Integer robotTypeId)
Tests whether a robot type is not allowed to use an edge or node. |
static Restriction |
parse(String s)
Used to deserialize this property from a string. |
static void |
restrict(PropertyHolder propHolder,
Integer robotTypeId)
Prevents any robot of the given robot type to move on the edge or node to which the given PropertyHolder
belongs. |
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 |
|---|
public Restriction()
| Method Detail |
|---|
public String toString()
toString in class Object
public static boolean isRestricted(PropertyHolder propHolder,
Integer robotTypeId)
propHolder - a property holderrobotTypeId - a robot type
public static boolean isAllowed(PropertyHolder propHolder,
Integer robotTypeId)
propHolder - a property holderrobotTypeId - a robot type
public static void restrict(PropertyHolder propHolder,
Integer robotTypeId)
PropertyHolder
belongs.
propHolder - the property holder of the edge or noderobotTypeId - the id of the robot typepublic static Restriction parse(String s)
s - a string
public String getValueToDisplay()
Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||