com.kuka.roboticsAPI.conditionModel
Enum NotificationType

java.lang.Object
  extended by java.lang.Enum<NotificationType>
      extended by com.kuka.roboticsAPI.conditionModel.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>

public enum NotificationType
extends Enum<NotificationType>

This enum specifies the notification options of the ConditionObserver.


Enum Constant Summary
All
          Enables the options 'OnEnable' and 'MissedEvents'.
EdgesOnly
          The listener will only be notified about edges according to the listener type.
MissedEvents
          If events occur while the listener is still handling the previous event, it will be notified about the missed events as soon as the handling is done.
OnEnable
          The listener will only be notified about edges according to the listener type and also about the current state of the condition as the time when the conditionObserver is enabled.
 
Method Summary
 int toInt()
          Gets the internal value for the specific component.
static NotificationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotificationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EdgesOnly

public static final NotificationType EdgesOnly
The listener will only be notified about edges according to the listener type.


OnEnable

public static final NotificationType OnEnable
The listener will only be notified about edges according to the listener type and also about the current state of the condition as the time when the conditionObserver is enabled.
initial state on enable
listener type true false
rising edge x -
falling edge - x
any edge x x


MissedEvents

public static final NotificationType MissedEvents
If events occur while the listener is still handling the previous event, it will be notified about the missed events as soon as the handling is done.


All

public static final NotificationType All
Enables the options 'OnEnable' and 'MissedEvents'.

Method Detail

values

public static NotificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NotificationType c : NotificationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NotificationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toInt

public int toInt()
Gets the internal value for the specific component.

Returns:
The internal value for the specific component.


Copyright © 2019. All rights reserved.