public class CommunicationAddress extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
_address
Speichert die Geräteadresse.
|
private String |
_protocol
Speichert den Namen des Kommunikationsprotokolls.
|
private int |
_subAddress
Speichert die Subadresse.
|
| Constructor and Description |
|---|
CommunicationAddress(String protocol,
String address,
int subAdress)
Erzeugt ein neues Objekt der Klasse CommunicationAddress.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Bestimmt die Geräteadresse dieser Kommunikationsadresse.
|
String |
getProtocol()
Bestimmt den Protokollnamen dieser Kommunikationsadresse.
|
int |
getSubaddress()
Bestimmt die Subadresse dieser Kommunikationsadresse.
|
private final String _protocol
private final String _address
private final int _subAddress
public CommunicationAddress(String protocol, String address, int subAdress)
protocol - Name des Kommunikationsprotokolls (z.B. "tcp").address - Geräteaddresse (z.B IP-Adresse oder Domainname eines Rechners).subAdress - Subadresse (z.B. TCP Portnummer).public String getProtocol()
public String getAddress()
public int getSubaddress()