drcl.inet.data
Class NetAddress
java.lang.Object
drcl.DrclObj
drcl.inet.data.NetAddress
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- public class NetAddress
- extends DrclObj
The network address class. A network address consists of an address and
an address mask. The network address is associated with an interface of
a node. It represents what network the outside world see from that interface.
It is particularly useful at the edge interfaces of a domain or a network.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NetAddress
public NetAddress()
NetAddress
public NetAddress(long addr_,
long mask_)
NetAddress
public NetAddress(long addr_,
int nmaskbits_)
getMask
public static long getMask(int nmaskbits_)
getNumMaskBits
public static int getNumMaskBits(long mask_)
getAddress
public long getAddress()
setAddress
public void setAddress(long a_)
getMask
public long getMask()
setMask
public void setMask(long m_)
getMaskedAddress
public long getMaskedAddress()
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Specified by:
duplicate in interface ObjectDuplicable- Overrides:
duplicate in class DrclObj
equals
public boolean equals(java.lang.Object o_)
toString
public java.lang.String toString()
- Overrides:
toString in class DrclObj
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~