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

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

public class NodeAllowRotation
extends AbstractProperty

Property defining whether robots are allowed to turn at the node.

See Also:
Serialized Form

Constructor Summary
NodeAllowRotation()
           
 
Method Summary
static void allow(TopologyNode node)
          Allows all robots to rotate on the given node.
static void allow(TopologyNode node, int robotTypeId)
          Allows robot's with type id robotTypeId to rotate on the given node.
static void forbid(TopologyNode node)
          Forbids all robots to rotate on the given node.
static void forbid(TopologyNode node, int robotTypeId)
          Forbids robot's with type id robotTypeId to rotate on the given node.
 String getValueToDisplay()
          Returns the value(s) in a way to show it in a UI.
static boolean isAllowed(TopologyNode node)
          Checks whether all robots are allowed to rotate on the given node.
static boolean isAllowed(TopologyNode node, int robotTypeId)
          Checks whether robot's with type id robotTypeId are allowed to rotate on the given node.
 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

NodeAllowRotation

public NodeAllowRotation()
Method Detail

allow

public static void allow(TopologyNode node)
Allows all robots to rotate on the given node.

Parameters:
node - the node

allow

public static void allow(TopologyNode node,
                         int robotTypeId)
Allows robot's with type id robotTypeId to rotate on the given node.

Parameters:
node - the node
robotTypeId - the robot type id

forbid

public static void forbid(TopologyNode node)
Forbids all robots to rotate on the given node.

Parameters:
node - the node

forbid

public static void forbid(TopologyNode node,
                          int robotTypeId)
Forbids robot's with type id robotTypeId to rotate on the given node.

Parameters:
node - the node
robotTypeId - the robot type id

isAllowed

public static boolean isAllowed(TopologyNode node)
Checks whether all robots are allowed to rotate on the given node.

Parameters:
node - the node
Returns:
true if all robots are allowed to rotate on the given node, false otherwise

isAllowed

public static boolean isAllowed(TopologyNode node,
                                int robotTypeId)
Checks whether robot's with type id robotTypeId are allowed to rotate on the given node.

Parameters:
node - the node
robotTypeId - the robot type id
Returns:
true if robot's with type id robotTypeId are allowed to rotate on the given node, false otherwise

toString

public String toString()
Overrides:
toString in class Object

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.