de.bsvrz.sys.funclib.commandLineArgs
Class CommunicationAddress

java.lang.Object
  extended by de.bsvrz.sys.funclib.commandLineArgs.CommunicationAddress

public class CommunicationAddress
extends Object

Wertklasse, die eine abstrakte Kommunikationsadresse speichert. Ein abstrakte Kommunikationsadresse besteht aus einem Protokollnamen (z.B. "tcp"), aus einer Geräteadresse (z.B IP-Adresse oder Domainname eines Rechners) und einer Subadresse (z.B. TCP Portnummer).

Author:
Kappich Systemberatung

Field Summary
private  String _address
          Speichert die Geräteadresse.
private  String _protocol
          Speichert den Namen des Kommunikationsprotokolls.
private  int _subAddress
          Speichert die Subadresse.
 
Constructor Summary
CommunicationAddress(String protocol, String address, int subAdress)
          Erzeugt ein neues Objekt der Klasse CommunicationAddress.
 
Method Summary
 String getAddress()
          Bestimmt die Geräteadresse dieser Kommunikationsadresse.
 String getProtocol()
          Bestimmt den Protokollnamen dieser Kommunikationsadresse.
 int getSubaddress()
          Bestimmt die Subadresse dieser Kommunikationsadresse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_protocol

private final String _protocol
Speichert den Namen des Kommunikationsprotokolls.


_address

private final String _address
Speichert die Geräteadresse.


_subAddress

private final int _subAddress
Speichert die Subadresse.

Constructor Detail

CommunicationAddress

public CommunicationAddress(String protocol,
                            String address,
                            int subAdress)
Erzeugt ein neues Objekt der Klasse CommunicationAddress.

Parameters:
protocol - Name des Kommunikationsprotokolls (z.B. "tcp").
address - Geräteaddresse (z.B IP-Adresse oder Domainname eines Rechners).
subAdress - Subadresse (z.B. TCP Portnummer).
Method Detail

getProtocol

public String getProtocol()
Bestimmt den Protokollnamen dieser Kommunikationsadresse.

Returns:
Protokollname.

getAddress

public String getAddress()
Bestimmt die Geräteadresse dieser Kommunikationsadresse.

Returns:
Geräteadresse.

getSubaddress

public int getSubaddress()
Bestimmt die Subadresse dieser Kommunikationsadresse.

Returns:
Subadresse