water.util
Class UserSpecifiedNetwork

java.lang.Object
  extended by water.util.UserSpecifiedNetwork

public class UserSpecifiedNetwork
extends java.lang.Object

Data structure for holding network info specified by the user on the command line.


Constructor Summary
UserSpecifiedNetwork(int o1, int o2, int o3, int o4, int bits)
          Create object from user specified data.
 
Method Summary
static java.util.ArrayList<UserSpecifiedNetwork> calcArrayList(java.lang.String networkOpt)
           
 boolean inetAddressOnNetwork(java.net.InetAddress ia)
          Test if an internet address lives on this user specified network.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSpecifiedNetwork

public UserSpecifiedNetwork(int o1,
                            int o2,
                            int o3,
                            int o4,
                            int bits)
Create object from user specified data.

Parameters:
o1 - First octet
o2 - Second octet
o3 - Third octet
o4 - Fourth octet
bits - Bits on the left to compare
Method Detail

inetAddressOnNetwork

public boolean inetAddressOnNetwork(java.net.InetAddress ia)
Test if an internet address lives on this user specified network.

Parameters:
ia - Address to test.
Returns:
true if the address is on the network; false otherwise.

calcArrayList

public static java.util.ArrayList<UserSpecifiedNetwork> calcArrayList(java.lang.String networkOpt)

main

public static void main(java.lang.String[] args)