Click or drag to resize
LCRNode Class
Distributed Algorithm Simulator
Contains LCR Algorithm actions.
Inheritance Hierarchy

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

The LCRNode type exposes the following members.

Constructors
  NameDescription
Public methodLCRNode
Initializes a new instance of the LCRNode 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 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 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 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.)
Top
Methods
See Also