public class NetworkAdapter extends Adapter
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ipv4Adress
the IPv4 adress of the network adapter.
|
private java.lang.String |
ipv6Adress
the IPv6 adress of the network adapter.
|
private java.lang.String |
macAddress
the mac address of the network adapter.
|
Constructor and Description |
---|
NetworkAdapter(java.awt.Point p,
Device owner)
Constructor.
|
NetworkAdapter(java.awt.Point p,
Device owner,
VariableAssignment name,
VariableAssignment ipv4Adress)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ItemVisitor visitor)
accept-method for nodevisitor (VisitorPattern).
|
void |
acceptConnectVisitor(ConnectVisitor visitor)
accept-method for connectvisitor (VisitorPattern).
|
java.lang.String |
getIpv4Adress()
Üblicher Getter für das Attribut ipv4Adress.
|
java.lang.String |
getIpv6Adress()
Üblicher Getter für das Attribut ipv6Adress.
|
java.lang.String |
getMacAddress()
Üblicher Getter für das Attribut macAddress.
|
java.awt.image.BufferedImage |
giveImage()
the Image for the symbol.
|
void |
setIpv4Adress(java.lang.String ipv4Adress)
Üblicher Setter für das Attribut ipv4Adress.
|
void |
setIpv6Adress(java.lang.String ipv6Adress)
Üblicher Setter für das Attribut ipv6Adress.
|
void |
setMacAddress(java.lang.String macAddress)
Üblicher Setter für das Attribut macAddress.
|
getOwner, getState, setConnected, setNotConnected, setOwner
draw, getName, getObserver, markAsSelected, notifyObserver, registerObserver, removeObserver, setName
contains, containsVaByIdentifier, getBoundary, getPoint, getPropertyBar, getPropertyDraw, getSelected, getSelectedNodes, selectAll, selectMultiple, selectNone, selectOne, selectRect, selectToggle, setBoundary, setPoint, setSelected, updatePosition
private java.lang.String ipv4Adress
private java.lang.String ipv6Adress
private java.lang.String macAddress
public NetworkAdapter(java.awt.Point p, Device owner)
p
- the point;owner
- the owner of the node.public NetworkAdapter(java.awt.Point p, Device owner, VariableAssignment name, VariableAssignment ipv4Adress)
p
- the point;owner
- the owner;name
- the name;ipv4Adress
- the ipv4Adress;public java.lang.String getIpv4Adress()
public void setIpv4Adress(java.lang.String ipv4Adress)
ipv4Adress
- Setzt den Parameter ipv4Adress
in das Feld ipv4Adress.public java.lang.String getIpv6Adress()
public void setIpv6Adress(java.lang.String ipv6Adress)
ipv6Adress
- Setzt den Parameter ipv6Adress
in das Feld ipv6Adress.public java.lang.String getMacAddress()
public void setMacAddress(java.lang.String macAddress)
macAddress
- Setzt den Parameter macAddress
in das Feld macAddress.public void accept(ItemVisitor visitor)
Item
public java.awt.image.BufferedImage giveImage()
Node
public void acceptConnectVisitor(ConnectVisitor visitor)
Item
acceptConnectVisitor
in class Item
visitor
- the connectvisitor.