|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.NameserverData
public class NameserverData
Data class for nameserver requests. Mirrors the C++ struct from the C++ Nameserver implementation.
| Field Summary | |
|---|---|
static int |
DATA_LENGTH
The length in bytes of a nameserver data packet. |
| Constructor Summary | |
|---|---|
NameserverData()
Creates a new NameserverData instance. |
|
| Method Summary | |
|---|---|
void |
failOnError()
Tests if the current nameserver data contains an error id and throws an appropriate exception. |
String |
getAddress()
Gets the address entry. |
byte[] |
getBuffer()
Gets the underlying buffer for this nameserver data. |
CommunicationMedium |
getChosenCommunicationMedium()
Gets the communication medium entry out of this data which was chosen by the nameserver. |
String |
getConnectionName()
Gets the connection name entry. |
NameserverRequestType |
getRequestType()
Gets the nameserver request type entry out of this data. |
boolean |
hasEmptyBuffer()
Checks whether there is any data left in the buffer. |
void |
resetBuffer()
Resets the buffer to 0. |
void |
setAddress(String address)
Sets the address entry. |
void |
setChosenCommunicationMedium(CommunicationMedium medium)
Sets the communication medium which should be used for communication. |
void |
setCommunicationMedium(Set<CommunicationMedium> mediums)
Sets the communication medium entry. |
void |
setConnectionName(String name)
Sets the connection name entry. |
void |
setConnectionType(ConnectionType connectionType)
Sets the connection type entry. |
void |
setErrorMessage(String message)
Sets the error message for this data. |
void |
setMaxClient(int maxClients)
Sets the max clients entry. |
void |
setRequestType(NameserverRequestType type)
Sets the nameserver request typeentry. |
void |
setReturnValue(int value)
Sets the return value flag for the data. |
void |
setSystemType()
Sets the system type for this nameserver data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DATA_LENGTH
| Constructor Detail |
|---|
public NameserverData()
| Method Detail |
|---|
public void resetBuffer()
public byte[] getBuffer()
public void failOnError()
public void setReturnValue(int value)
value - The return value flag for the data.public void setErrorMessage(String message)
message - The error message for this data.public CommunicationMedium getChosenCommunicationMedium()
public void setChosenCommunicationMedium(CommunicationMedium medium)
medium - The communication medium entry.public NameserverRequestType getRequestType()
public void setRequestType(NameserverRequestType type)
type - The nameserver request type value.public void setAddress(String address)
address - The address.public void setConnectionName(String name)
name - The conenction name.public String getConnectionName()
public void setConnectionType(ConnectionType connectionType)
connectionType - The connection type.public void setCommunicationMedium(Set<CommunicationMedium> mediums)
mediums - The communication mediums.public void setMaxClient(int maxClients)
maxClients - The max clients amount.public void setSystemType()
public String getAddress()
public boolean hasEmptyBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||