verinec.netsim.addresses
Interface IAddress

All Superinterfaces:
Comparable
All Known Implementing Classes:
IPAddress, IPAddressNetmask, MACAddress

public interface IAddress
extends Comparable

This Interface defines the minimal methods for the addresses used in the simulator. All addresses must implement this interface. An address is comparable and has a String representation.

Version:
$Revision: 47 $
Author:
Dominik Jungo

Method Summary
 boolean equals(IAddress address)
          Tests if an address is equal to this address.
 String toString()
          This method returns this address in a form represented by a String.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

equals

boolean equals(IAddress address)
Tests if an address is equal to this address. Equal in this case does not mean the same address object but both represent the same address.

Parameters:
address - an address to compare with this Address
Returns:
true if both adresses have an equal String represenation, false otherwise.

toString

String toString()
This method returns this address in a form represented by a String. This String representation is used to compare addresses and for outputs.

Overrides:
toString in class Object
Returns:
this Address.

Copyright © 2005 Verinec, DIUF