driver
Class ip

java.lang.Object
  extended by driver.ip

public class ip
extends java.lang.Object

Small scenario that tests stuff below the IP layer on the network stack.

Since:
JIST1.0
Version:
$Id: ip.java,v 1.4 2005/03/13 16:11:53 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
private static class ip.CommandLineOptions
          Simulation parameters with default values.
static class ip.MyIpHandler
           
 
Field Summary
static short MY_PROTOCOL
           
static java.lang.String RADIO_STRING_ADDITIVE
           
static java.lang.String RADIO_STRING_INDEPENDENT
           
static int RADIO_TYPE_ADDITIVE
           
static int RADIO_TYPE_INDEPENDENT
           
 
Constructor Summary
ip()
           
 
Method Summary
static NetInterface createNode(Field field, int i, Location location, RadioNoise radio, NetAddress addr, NetInterface.NetHandler nethandler)
           
static RadioNoise createRadio(int type, int i, RadioInfo.RadioInfoShared radioInfoShared)
           
static void main(java.lang.String[] args)
          Program entry point: small IP-layer-and-below two-node test.
private static ip.CommandLineOptions parseCommandLineOptions(java.lang.String[] args)
          Parses command-line arguments.
private static void showUsage()
          Prints a usage statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RADIO_TYPE_INDEPENDENT

public static final int RADIO_TYPE_INDEPENDENT
See Also:
Constant Field Values

RADIO_TYPE_ADDITIVE

public static final int RADIO_TYPE_ADDITIVE
See Also:
Constant Field Values

RADIO_STRING_INDEPENDENT

public static final java.lang.String RADIO_STRING_INDEPENDENT
See Also:
Constant Field Values

RADIO_STRING_ADDITIVE

public static final java.lang.String RADIO_STRING_ADDITIVE
See Also:
Constant Field Values

MY_PROTOCOL

public static final short MY_PROTOCOL
See Also:
Constant Field Values
Constructor Detail

ip

public ip()
Method Detail

showUsage

private static void showUsage()
Prints a usage statement.


parseCommandLineOptions

private static ip.CommandLineOptions parseCommandLineOptions(java.lang.String[] args)
                                                      throws jargs.gnu.CmdLineParser.OptionException
Parses command-line arguments.

Parameters:
args - command-line arguments
Returns:
parsed command-line options
Throws:
CmdLineParser.OptionException - if the command-line arguments are not well-formed.

createNode

public static NetInterface createNode(Field field,
                                      int i,
                                      Location location,
                                      RadioNoise radio,
                                      NetAddress addr,
                                      NetInterface.NetHandler nethandler)

createRadio

public static RadioNoise createRadio(int type,
                                     int i,
                                     RadioInfo.RadioInfoShared radioInfoShared)

main

public static void main(java.lang.String[] args)
Program entry point: small IP-layer-and-below two-node test.

Parameters:
args - command-line parameters