Click or drag to resize
UniqueKNode Class
Distributed Algorithm Simulator
Contains UniqueK Algorithm actions.
Inheritance Hierarchy
SystemObject
  WrapperClassesNode
    DistributedAlgorithmsUniqueKNode

Namespace: DistributedAlgorithms
Assembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public class UniqueKNode : Node

The UniqueKNode type exposes the following members.

Constructors
  NameDescription
Public methodUniqueKNode
Initializes a new instance of the UniqueKNode class.
Top
Properties
  NameDescription
Public propertyActive
Represents whether the node is active or not.
Public propertyCcwNeighbor
LinkID of the counter-clockwise neighbor.
(Inherited from Node.)
Public propertyCount
P.count variable.
Public propertyCwNeighbor
LinkID of the clockwise neighbor.
(Inherited from Node.)
Public propertyInit
Represents whether algorithm is initialized or not.
Public propertyIsLeader
True: if the node is the leader. False: otherwise.
Public propertyK
K, the maximum number of times a node ID is repeated in the ring.
Public propertyLeader
Elected leader's ID
Public propertyLeaderElected
True: the nodes knows that a leader has been elected by the algorithm. False: otherwise.
Public propertyLinkId
The ID used to create the network. Different from node IDs.
(Inherited from Node.)
Public propertyStatic memberNOCOUNT
An undefined count state.
Public propertyStatic memberNOMESSAGE
An LCR algorithm message containing NOMESSAGE as its X value represents a non-message. i.e., the same as no message being sent through the channel.
Public propertyRcvdMsg
Received message at each step.
(Inherited from Node.)
Public propertySentMsg
Sent message at the end of each step.
(Inherited from Node.)
Public propertyUID
Node IDs of nodes.
(Inherited from Node.)
Public propertyStatic memberUNDEFINED
Denotes an undefined state.
Top
Methods
See Also