lanSimulation.internals
Class Node

java.lang.Object
  extended bylanSimulation.internals.Node

public class Node
extends java.lang.Object

A Node represents a single Node in a Local Area Network (LAN). Several types of Nodes exist.


Field Summary
 java.lang.String name_
          Holds the name of the Node.
 Node nextNode_
          Holds the next Node in the token ring architecture.
static byte NODE
          A node with type NODE has only basic functionality.
static byte PRINTER
          A node with type PRINTER may accept packages to be printed.
 byte type_
          Holds the type of the Node.
static byte WORKSTATION
          A node with type WORKSTATION may initiate requests on the LAN.
 
Constructor Summary
Node(byte type, java.lang.String name)
          Construct a Node with given #type and #name.
Node(byte type, java.lang.String name, Node nextNode)
          Construct a Node with given #type and #name, and which is linked to #nextNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE

public static final byte NODE
A node with type NODE has only basic functionality.

See Also:
Constant Field Values

WORKSTATION

public static final byte WORKSTATION
A node with type WORKSTATION may initiate requests on the LAN.

See Also:
Constant Field Values

PRINTER

public static final byte PRINTER
A node with type PRINTER may accept packages to be printed.

See Also:
Constant Field Values

type_

public byte type_
Holds the type of the Node.


name_

public java.lang.String name_
Holds the name of the Node.


nextNode_

public Node nextNode_
Holds the next Node in the token ring architecture.

See Also:
Node
Constructor Detail

Node

public Node(byte type,
            java.lang.String name)
Construct a Node with given #type and #name.

Precondition: (type >= NODE) & (type <= PRINTER);


Node

public Node(byte type,
            java.lang.String name,
            Node nextNode)
Construct a Node with given #type and #name, and which is linked to #nextNode.

Precondition: (type >= NODE) & (type <= PRINTER);