com.kuka.roboticsAPI.controllerModel.sunrise
Enum SunriseCommandType

java.lang.Object
  extended by java.lang.Enum<SunriseCommandType>
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.SunriseCommandType
All Implemented Interfaces:
Serializable, Comparable<SunriseCommandType>

public enum SunriseCommandType
extends Enum<SunriseCommandType>

Defined the possible command types for sunrise.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Enum Constant Summary
Cancel
          Cancel command type.
CloseAPI
          Tells Sunrise to terminate the API.
CloseConnections
          Tells Sunrise to terminate the connection.
SPR
          SPR command type.
Unknwon
          Unknown command type.
Update
          Update command type.
 
Method Summary
static SunriseCommandType fromId(int id)
          Creates a command type out of it's id.
 int getId()
          Gets the id of the command type.
static SunriseCommandType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SunriseCommandType[] 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

Unknwon

public static final SunriseCommandType Unknwon
Unknown command type.


SPR

public static final SunriseCommandType SPR
SPR command type. Used to issue a SPR to Sunrise.


Cancel

public static final SunriseCommandType Cancel
Cancel command type. Used to cancel a running SPR.


Update

public static final SunriseCommandType Update
Update command type. Used to update a running SPR.


CloseAPI

public static final SunriseCommandType CloseAPI
Tells Sunrise to terminate the API.


CloseConnections

public static final SunriseCommandType CloseConnections
Tells Sunrise to terminate the connection.

Method Detail

values

public static SunriseCommandType[] 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 (SunriseCommandType c : SunriseCommandType.values())
    System.out.println(c);

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

valueOf

public static SunriseCommandType 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

getId

public int getId()
Gets the id of the command type.

Returns:
The id of the command type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

fromId

public static SunriseCommandType fromId(int id)
Creates a command type out of it's id.

Parameters:
id - The id of the command type. If the id is not known, Unknown will be returned.
Returns:
The command type enum.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.