All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.submerge.Network

java.lang.Object
   |
   +----benno.submerge.Network

public class Network
extends Object
implements Serializable
This class represents an IP network. It contains the 32 bits of the network address and also a subnet mask.


Constructor Index

 o Network(int, int, int, int, int, String)
 o Network(Network)

Method Index

 o equals(Network)
 o equals(Object)
 o intersects(Network)
Checks for intersection of networks.
 o networkString()
returns the network part in a.b.c.d form
 o numAddrs()
Returns the number of addresses in the network, including broadcast and network addresses
 o toString()

Constructors

 o Network
 public Network(int a,
                int b,
                int c,
                int d,
                int m,
                String ann)
 o Network
 public Network(Network n)

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o networkString
 public String networkString()
returns the network part in a.b.c.d form

 o numAddrs
 public int numAddrs()
Returns the number of addresses in the network, including broadcast and network addresses

 o intersects
 public boolean intersects(Network n)
Checks for intersection of networks. It returns true if the networks overlap in the IP address space.

 o equals
 public boolean equals(Object o)
Overrides:
equals in class Object
 o equals
 public boolean equals(Network n)

All Packages  Class Hierarchy  This Package  Previous  Next  Index