Download Written Final - CS Course Webpages

Transcript
1.2.2 Found
The Found variable is responsible for saving the status of the light search. When a node finds the light,
a 1 is saved into Found. When it receives the token, the node may then transmit that it has found the
light.
1.2.3 NextNode
This is no longer used. NextNode is calculated directly from the RouteTable.
1.2.4 Route Table
The RouteTable is probably the single most important part of the network. It contains information about
the network size, a node’s successor, and the list of used ID’s. See Table 2.
Table 2: Three nodes are currently in the network: nodes 1,2,4.
RouteTable
0
0
0
0
1
0
1
1
1.2.5 Invite
This is no longer used. Invite is now calculated locally.
1.2.6 ID
The ID variable is calculated just before the node joins the network. This ID stays with the node until
there is an error.
-4-