jist.swans
Class Constants

java.lang.Object
  extended by jist.swans.Constants

public final class Constants
extends java.lang.Object

SWANS constants.

Since:
SWANS1.0
Version:
$Id: Constants.java,v 1.62 2005/02/09 23:32:20 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu&rt;

Nested Class Summary
 class Constants.TCPSTATES
          TCP States.
 
Field Summary
static double AMBIENT_NOISE_DEFAULT
          Default ambient noise (units: mW).
static int BANDWIDTH_DEFAULT
          Default radio bandwidth (units: bits/second).
static double BOLTZMANN
          Boltzmann's constant (units: Joules/Kelvin).
static long DAY
          one day in simulation time units.
static int EPSILON_DELAY
          smallest possible delay.
static float FIELD_BOUND_X
          Default field boundary (units: sim distance, usually meters).
static float FIELD_BOUND_Y
          Default field boundary (units: sim distance, usually meters).
static double FREQUENCY_DEFAULT
          Default radio frequency (units: Hz).
static double GAIN_DEFAULT
          Default antenna gain (units: dB).
static double HEIGHT_DEFAULT
          Default radio height (units: sim distance units, usually meters).
static long HOUR
          one hour in simulation time units.
static long LINK_DELAY
          link layer delay.
static double log10
          Pre-computed natural logarithm of 10.
static boolean MAC_PROMISCUOUS_DEFAULT
          Default mac promiscuous mode.
static long MICRO_SECOND
          one micro-second in simulation time units.
static long MILLI_SECOND
          one milli-second in simulation time units.
static long MINUTE
          one minute in simulation time units.
static int MOBILITY_DEFAULT
          node mobility choice constant.
static int MOBILITY_INVALID
          node mobility choice constant.
static int MOBILITY_STATIC
          node mobility choice constant.
static int MOBILITY_TELEPORT
          node mobility choice constant.
static int MOBILITY_WALK
          node mobility choice constant.
static int MOBILITY_WAYPOINT
          node mobility choice constant.
static long NANO_SECOND
          one nano-second in simulation time units.
static long NET_DELAY
          network layer delay.
static int NET_INTERFACE_DEFAULT
          network interface constant.
static int NET_INTERFACE_INVALID
          network interface constant.
static int NET_INTERFACE_LOOPBACK
          network interface constant.
static int NET_LOSS_DEFAULT
          network layer loss model choice constant.
static int NET_LOSS_INVALID
          network layer loss model choice constant.
static int NET_LOSS_NONE
          network layer loss model choice constant.
static int NET_LOSS_UNIFORM
          network layer loss model choice constant.
static byte NET_PRIORITY_CONTROL
          network packet priority level.
static byte NET_PRIORITY_INVALID
          network packet priority level.
static byte NET_PRIORITY_NORMAL
          network packet priority level.
static byte NET_PRIORITY_NUM
          network packet priority level.
static byte NET_PRIORITY_REALTIME
          network packet priority level.
static short NET_PROTOCOL_AODV
          network level (IP) protocol number.
static short NET_PROTOCOL_BELLMANFORD
          network level (IP) protocol number.
static short NET_PROTOCOL_DSR
          network level (IP) protocol number.
static short NET_PROTOCOL_FISHEYE
          network level (IP) protocol number.
static short NET_PROTOCOL_HEARTBEAT
          network level (IP) protocol number.
static short NET_PROTOCOL_INVALID
          network level (IP) protocol number.
static short NET_PROTOCOL_LAR1
          network level (IP) protocol number.
static short NET_PROTOCOL_MAX
          network level (IP) protocol number.
static short NET_PROTOCOL_NO_NEXT_HEADER
          network level (IP) protocol number.
static short NET_PROTOCOL_ODMRP
          network level (IP) protocol number.
static short NET_PROTOCOL_OSPF
          network level (IP) protocol number.
static short NET_PROTOCOL_TCP
          network level (IP) protocol number.
static short NET_PROTOCOL_UDP
          network level (IP) protocol number.
static short NET_PROTOCOL_ZRP
          network level (IP) protocol number.
static short NET_PROTOCOL_ZRP_BRP_DEFAULT
          zrp-subprotocol number.
static short NET_PROTOCOL_ZRP_BRP_FLOOD
          zrp-subprotocol number.
static short NET_PROTOCOL_ZRP_IARP_DEFAULT
          zrp-subprotocol number.
static short NET_PROTOCOL_ZRP_IARP_ZDP
          zrp-subprotocol number.
static short NET_PROTOCOL_ZRP_IERP_DEFAULT
          zrp-subprotocol number.
static short NET_PROTOCOL_ZRP_NDP_DEFAULT
          zrp-subprotocol number.
static int PLACEMENT_DEFAULT
          node placement choice constant.
static int PLACEMENT_GRID
          node placement choice constant.
static int PLACEMENT_INVALID
          node placement choice constant.
static int PLACEMENT_MAX
          node placement choice constant.
static int PLACEMENT_RANDOM
          node placement choice constant.
static long PROCESS_IMMEDIATELY
          zero delay.
static double PROPAGATION_LIMIT_DEFAULT
          Default minimum propagated signal (units: dBm).
static byte RADIO_MODE_IDLE
          Radio mode: idle, no signals.
static byte RADIO_MODE_RECEIVING
          Radio mode: signal locked and receiving packet.
static byte RADIO_MODE_SENSING
          Radio mode: some signals above sensitivity.
static byte RADIO_MODE_SLEEP
          Radio mode: sleeping.
static byte RADIO_MODE_TRANSMITTING
          Radio mode: transmitting packet.
static int RADIO_NOUSER_DELAY
          Constant used to specify the default "delay to the wire".
static long RADIO_PHY_DELAY
          physical layer delay.
static long RADIO_TURNAROUND_TIME
          RX-TX switching delay.
static java.util.Random random
          Global random number generator.
static long SECOND
          one second in simulation time units.
static double SENSITIVITY_DEFAULT
          Default radio reception sensitivity (units: dBm).
static double SNR_THRESHOLD_DEFAULT
          Default threshold signal-to-noise ratio.
static int SPATIAL_GRID
          spatial data structure choice constant.
static int SPATIAL_HIER
          spatial data structure choice constant.
static int SPATIAL_INVALID
          spatial data structure choice constant.
static int SPATIAL_LINEAR
          spatial data structure choice constant.
static int SPATIAL_WRAP
          spatial data structure choice constant.
static double SPEED_OF_LIGHT
          Speed of light in a vacuum (units: meter/second).
static short TCP_PROTOCOL_ECHO
          transport level (tcp/udp) protocol number.
static short TCP_PROTOCOL_FTP
          transport level (tcp/udp) protocol number.
static short TCP_PROTOCOL_HTTP
          transport level (tcp/udp) protocol number.
static short TCP_PROTOCOL_SMTP
          transport level (tcp/udp) protocol number.
static short TCP_PROTOCOL_TELNET
          transport level (tcp/udp) protocol number.
static short TCP_PROTOCOL_TIME
          transport level (tcp/udp) protocol number.
static double TEMPERATURE_DEFAULT
          Default temperature (units: degrees Kelvin).
static double TEMPERATURE_FACTOR_DEFAULT
          Default temperature noise factor.
static double THRESHOLD_DEFAULT
          Default radio reception threshold (units: dBm).
static long TRANS_DELAY
          transport layer delay.
static long TRANS_PROCESSING_DELAY
          socket delay.
static short TRANS_PROTOCOL_INVALID
          transport level (tcp/udp) protocol number.
static double TRANSMIT_DEFAULT
          Default transmission strength (units: dBm).
static byte TTL_DEFAULT
          default time-to-live.
static int ZERO_WIRE_SIZE
          packet with zero wire size.
 
Constructor Summary
Constants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

public static java.util.Random random
Global random number generator.


PROCESS_IMMEDIATELY

public static final long PROCESS_IMMEDIATELY
zero delay.

See Also:
Constant Field Values

EPSILON_DELAY

public static final int EPSILON_DELAY
smallest possible delay.

See Also:
Constant Field Values

NANO_SECOND

public static final long NANO_SECOND
one nano-second in simulation time units.

See Also:
Constant Field Values

MICRO_SECOND

public static final long MICRO_SECOND
one micro-second in simulation time units.

See Also:
Constant Field Values

MILLI_SECOND

public static final long MILLI_SECOND
one milli-second in simulation time units.

See Also:
Constant Field Values

SECOND

public static final long SECOND
one second in simulation time units.

See Also:
Constant Field Values

MINUTE

public static final long MINUTE
one minute in simulation time units.

See Also:
Constant Field Values

HOUR

public static final long HOUR
one hour in simulation time units.

See Also:
Constant Field Values

DAY

public static final long DAY
one day in simulation time units.

See Also:
Constant Field Values

BOLTZMANN

public static final double BOLTZMANN
Boltzmann's constant (units: Joules/Kelvin).

See Also:
Constant Field Values

SPEED_OF_LIGHT

public static final double SPEED_OF_LIGHT
Speed of light in a vacuum (units: meter/second).

See Also:
Constant Field Values

log10

public static final double log10
Pre-computed natural logarithm of 10.


FIELD_BOUND_X

public static final float FIELD_BOUND_X
Default field boundary (units: sim distance, usually meters).

See Also:
Constant Field Values

FIELD_BOUND_Y

public static final float FIELD_BOUND_Y
Default field boundary (units: sim distance, usually meters).

See Also:
Constant Field Values

PLACEMENT_INVALID

public static final int PLACEMENT_INVALID
node placement choice constant.

See Also:
Constant Field Values

PLACEMENT_RANDOM

public static final int PLACEMENT_RANDOM
node placement choice constant.

See Also:
Constant Field Values

PLACEMENT_GRID

public static final int PLACEMENT_GRID
node placement choice constant.

See Also:
Constant Field Values

PLACEMENT_MAX

public static final int PLACEMENT_MAX
node placement choice constant.

See Also:
Constant Field Values

PLACEMENT_DEFAULT

public static final int PLACEMENT_DEFAULT
node placement choice constant.

See Also:
Constant Field Values

MOBILITY_INVALID

public static final int MOBILITY_INVALID
node mobility choice constant.

See Also:
Constant Field Values

MOBILITY_STATIC

public static final int MOBILITY_STATIC
node mobility choice constant.

See Also:
Constant Field Values

MOBILITY_WAYPOINT

public static final int MOBILITY_WAYPOINT
node mobility choice constant.

See Also:
Constant Field Values

MOBILITY_TELEPORT

public static final int MOBILITY_TELEPORT
node mobility choice constant.

See Also:
Constant Field Values

MOBILITY_WALK

public static final int MOBILITY_WALK
node mobility choice constant.

See Also:
Constant Field Values

MOBILITY_DEFAULT

public static final int MOBILITY_DEFAULT
node mobility choice constant.

See Also:
Constant Field Values

SPATIAL_INVALID

public static final int SPATIAL_INVALID
spatial data structure choice constant.

See Also:
Constant Field Values

SPATIAL_LINEAR

public static final int SPATIAL_LINEAR
spatial data structure choice constant.

See Also:
Constant Field Values

SPATIAL_GRID

public static final int SPATIAL_GRID
spatial data structure choice constant.

See Also:
Constant Field Values

SPATIAL_HIER

public static final int SPATIAL_HIER
spatial data structure choice constant.

See Also:
Constant Field Values

SPATIAL_WRAP

public static final int SPATIAL_WRAP
spatial data structure choice constant.

See Also:
Constant Field Values

ZERO_WIRE_SIZE

public static final int ZERO_WIRE_SIZE
packet with zero wire size.

See Also:
Constant Field Values

RADIO_MODE_SLEEP

public static final byte RADIO_MODE_SLEEP
Radio mode: sleeping.

See Also:
Constant Field Values

RADIO_MODE_IDLE

public static final byte RADIO_MODE_IDLE
Radio mode: idle, no signals.

See Also:
Constant Field Values

RADIO_MODE_SENSING

public static final byte RADIO_MODE_SENSING
Radio mode: some signals above sensitivity.

See Also:
Constant Field Values

RADIO_MODE_RECEIVING

public static final byte RADIO_MODE_RECEIVING
Radio mode: signal locked and receiving packet.

See Also:
Constant Field Values

RADIO_MODE_TRANSMITTING

public static final byte RADIO_MODE_TRANSMITTING
Radio mode: transmitting packet.

See Also:
Constant Field Values

RADIO_TURNAROUND_TIME

public static final long RADIO_TURNAROUND_TIME
RX-TX switching delay.

See Also:
Constant Field Values

RADIO_PHY_DELAY

public static final long RADIO_PHY_DELAY
physical layer delay.

See Also:
Constant Field Values

RADIO_NOUSER_DELAY

public static final int RADIO_NOUSER_DELAY
Constant used to specify the default "delay to the wire".

See Also:
Constant Field Values

FREQUENCY_DEFAULT

public static final double FREQUENCY_DEFAULT
Default radio frequency (units: Hz).

See Also:
Constant Field Values

BANDWIDTH_DEFAULT

public static final int BANDWIDTH_DEFAULT
Default radio bandwidth (units: bits/second).

See Also:
Constant Field Values

TRANSMIT_DEFAULT

public static final double TRANSMIT_DEFAULT
Default transmission strength (units: dBm).

See Also:
Constant Field Values

GAIN_DEFAULT

public static final double GAIN_DEFAULT
Default antenna gain (units: dB).

See Also:
Constant Field Values

SENSITIVITY_DEFAULT

public static final double SENSITIVITY_DEFAULT
Default radio reception sensitivity (units: dBm).

See Also:
Constant Field Values

THRESHOLD_DEFAULT

public static final double THRESHOLD_DEFAULT
Default radio reception threshold (units: dBm).

See Also:
Constant Field Values

TEMPERATURE_DEFAULT

public static final double TEMPERATURE_DEFAULT
Default temperature (units: degrees Kelvin).

See Also:
Constant Field Values

TEMPERATURE_FACTOR_DEFAULT

public static final double TEMPERATURE_FACTOR_DEFAULT
Default temperature noise factor.

See Also:
Constant Field Values

AMBIENT_NOISE_DEFAULT

public static final double AMBIENT_NOISE_DEFAULT
Default ambient noise (units: mW).

See Also:
Constant Field Values

PROPAGATION_LIMIT_DEFAULT

public static final double PROPAGATION_LIMIT_DEFAULT
Default minimum propagated signal (units: dBm).

See Also:
Constant Field Values

HEIGHT_DEFAULT

public static final double HEIGHT_DEFAULT
Default radio height (units: sim distance units, usually meters).

See Also:
Constant Field Values

SNR_THRESHOLD_DEFAULT

public static final double SNR_THRESHOLD_DEFAULT
Default threshold signal-to-noise ratio.

See Also:
Constant Field Values

MAC_PROMISCUOUS_DEFAULT

public static final boolean MAC_PROMISCUOUS_DEFAULT
Default mac promiscuous mode.

See Also:
Constant Field Values

LINK_DELAY

public static final long LINK_DELAY
link layer delay.

See Also:
Constant Field Values

NET_LOSS_INVALID

public static final int NET_LOSS_INVALID
network layer loss model choice constant.

See Also:
Constant Field Values

NET_LOSS_NONE

public static final int NET_LOSS_NONE
network layer loss model choice constant.

See Also:
Constant Field Values

NET_LOSS_UNIFORM

public static final int NET_LOSS_UNIFORM
network layer loss model choice constant.

See Also:
Constant Field Values

NET_LOSS_DEFAULT

public static final int NET_LOSS_DEFAULT
network layer loss model choice constant.

See Also:
Constant Field Values

NET_PRIORITY_CONTROL

public static final byte NET_PRIORITY_CONTROL
network packet priority level.

See Also:
Constant Field Values

NET_PRIORITY_REALTIME

public static final byte NET_PRIORITY_REALTIME
network packet priority level.

See Also:
Constant Field Values

NET_PRIORITY_NORMAL

public static final byte NET_PRIORITY_NORMAL
network packet priority level.

See Also:
Constant Field Values

NET_PRIORITY_NUM

public static final byte NET_PRIORITY_NUM
network packet priority level.

See Also:
Constant Field Values

NET_PRIORITY_INVALID

public static final byte NET_PRIORITY_INVALID
network packet priority level.

See Also:
Constant Field Values

NET_INTERFACE_INVALID

public static final int NET_INTERFACE_INVALID
network interface constant.

See Also:
Constant Field Values

NET_INTERFACE_LOOPBACK

public static final int NET_INTERFACE_LOOPBACK
network interface constant.

See Also:
Constant Field Values

NET_INTERFACE_DEFAULT

public static final int NET_INTERFACE_DEFAULT
network interface constant.

See Also:
Constant Field Values

NET_DELAY

public static final long NET_DELAY
network layer delay.

See Also:
Constant Field Values

TTL_DEFAULT

public static final byte TTL_DEFAULT
default time-to-live.

See Also:
Constant Field Values

NET_PROTOCOL_INVALID

public static final short NET_PROTOCOL_INVALID
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_TCP

public static final short NET_PROTOCOL_TCP
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_UDP

public static final short NET_PROTOCOL_UDP
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_OSPF

public static final short NET_PROTOCOL_OSPF
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_BELLMANFORD

public static final short NET_PROTOCOL_BELLMANFORD
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_FISHEYE

public static final short NET_PROTOCOL_FISHEYE
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_AODV

public static final short NET_PROTOCOL_AODV
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_DSR

public static final short NET_PROTOCOL_DSR
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ODMRP

public static final short NET_PROTOCOL_ODMRP
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_LAR1

public static final short NET_PROTOCOL_LAR1
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP

public static final short NET_PROTOCOL_ZRP
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_NDP_DEFAULT

public static final short NET_PROTOCOL_ZRP_NDP_DEFAULT
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_IARP_DEFAULT

public static final short NET_PROTOCOL_ZRP_IARP_DEFAULT
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_BRP_DEFAULT

public static final short NET_PROTOCOL_ZRP_BRP_DEFAULT
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_IERP_DEFAULT

public static final short NET_PROTOCOL_ZRP_IERP_DEFAULT
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_IARP_ZDP

public static final short NET_PROTOCOL_ZRP_IARP_ZDP
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_ZRP_BRP_FLOOD

public static final short NET_PROTOCOL_ZRP_BRP_FLOOD
zrp-subprotocol number.

See Also:
Constant Field Values

NET_PROTOCOL_NO_NEXT_HEADER

public static final short NET_PROTOCOL_NO_NEXT_HEADER
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_HEARTBEAT

public static final short NET_PROTOCOL_HEARTBEAT
network level (IP) protocol number.

See Also:
Constant Field Values

NET_PROTOCOL_MAX

public static final short NET_PROTOCOL_MAX
network level (IP) protocol number.

See Also:
Constant Field Values

TRANS_DELAY

public static final long TRANS_DELAY
transport layer delay.

See Also:
Constant Field Values

TRANS_PROCESSING_DELAY

public static final long TRANS_PROCESSING_DELAY
socket delay.

See Also:
Constant Field Values

TRANS_PROTOCOL_INVALID

public static final short TRANS_PROTOCOL_INVALID
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_ECHO

public static final short TCP_PROTOCOL_ECHO
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_FTP

public static final short TCP_PROTOCOL_FTP
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_TELNET

public static final short TCP_PROTOCOL_TELNET
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_SMTP

public static final short TCP_PROTOCOL_SMTP
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_TIME

public static final short TCP_PROTOCOL_TIME
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values

TCP_PROTOCOL_HTTP

public static final short TCP_PROTOCOL_HTTP
transport level (tcp/udp) protocol number.

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()