com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Enum ConnectionType

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

public enum ConnectionType
extends Enum<ConnectionType>

The connection type defined the possible connection types of a connection. Right now we support 6 different connection types.

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
Client
          Client connection: Counterpart for the server connection.
MulticastClient
          A MulticastClient only receives broadcast messages from a MulticastServer.
MulticastServer
          A MulticastServer sends broadcast messages to all known clients.
MultiClient
          MultiClient connection: Counterpart for the MultiServer connection.
MultiServer
          MutliServer has several connections to clients.
Server
          A server connection: A server has one connection to a single client.
 
Method Summary
abstract  com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ConnectionData createConnectionData(NameserverProxy ns, String name)
          Creates a connection data object.
 int getId()
          Gets the id of the connection type.
static ConnectionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConnectionType[] 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

Server

public static final ConnectionType Server
A server connection: A server has one connection to a single client.


Client

public static final ConnectionType Client
Client connection: Counterpart for the server connection.


MulticastServer

public static final ConnectionType MulticastServer
A MulticastServer sends broadcast messages to all known clients.


MulticastClient

public static final ConnectionType MulticastClient
A MulticastClient only receives broadcast messages from a MulticastServer.


MultiServer

public static final ConnectionType MultiServer
MutliServer has several connections to clients. Messages are sent to the client from which the last message was received (classical request-response-pattern)


MultiClient

public static final ConnectionType MultiClient
MultiClient connection: Counterpart for the MultiServer connection.

Method Detail

values

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

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

valueOf

public static ConnectionType 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 connection type.

Returns:
The id of the connection 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.

createConnectionData

public abstract com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ConnectionData createConnectionData(NameserverProxy ns,
                                                                                                               String name)
Creates a connection data object.

Parameters:
ns - the nameserver.
name - The name of the connection.
Returns:
The created connection data.
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.