planet.simulate
Class Globals

java.lang.Object
  extended byplanet.simulate.Globals

public class Globals
extends java.lang.Object

This class contains as static manner all of the types and string representatations of them requireds for the simulator.

Author:
Pedro Garcia, Ruben Mondejar, Jordi Pujol 08-jul-2005

Field Summary
static int ERROR
          Mode value: This mode is returned by the simulator always when the receiver of a message not exist in the actual network.
static int FAIL
          Event type: Node fails.
static int JOIN
          Event type: Adding a new node to the network.
static int LEAVE
          Event type: Node leaving network.
 
Constructor Summary
Globals()
           
 
Method Summary
static java.lang.String modeToString(int mode)
          Returns a string representation of each of event mode and RouteMessage mode.
static java.lang.String typeToString(int type)
          Returns a string representation of each of event type and RouteMessage mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOIN

public static final int JOIN
Event type: Adding a new node to the network.

See Also:
Constant Field Values

LEAVE

public static final int LEAVE
Event type: Node leaving network.

See Also:
Constant Field Values

FAIL

public static final int FAIL
Event type: Node fails.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Mode value: This mode is returned by the simulator always when the receiver of a message not exist in the actual network.

See Also:
Constant Field Values
Constructor Detail

Globals

public Globals()
Method Detail

typeToString

public static final java.lang.String typeToString(int type)
Returns a string representation of each of event type and RouteMessage mode.

Parameters:
type - Type of the RouteMessage to get its String representation.
Returns:
String representation of the type of RouteMessage.

modeToString

public static final java.lang.String modeToString(int mode)
Returns a string representation of each of event mode and RouteMessage mode.

Parameters:
mode - Mode of the RouteMessage to get its String representation.
Returns:
String representation of the mode of RouteMessage.