water.util
Class UserSpecifiedNetwork
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserSpecifiedNetwork
public UserSpecifiedNetwork(int o1,
int o2,
int o3,
int o4,
int bits)
- Create object from user specified data.
- Parameters:
o1
- First octeto2
- Second octeto3
- Third octeto4
- Fourth octetbits
- Bits on the left to compare
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)