|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectlanSimulation.internals.Node
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 |
public static final byte NODE
public static final byte WORKSTATION
public static final byte PRINTER
public byte type_
public java.lang.String name_
public Node nextNode_
Node| Constructor Detail |
public Node(byte type,
java.lang.String name)
Precondition: (type >= NODE) & (type <= PRINTER);
public Node(byte type,
java.lang.String name,
Node nextNode)
Precondition: (type >= NODE) & (type <= PRINTER);
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||