Click or drag to resize
UniqueKUtility Methods
Distributed Algorithm Simulator

The UniqueKUtility type exposes the following members.

Methods
  NameDescription
Public methodErrorChecks
Checks for errors.
(Overrides UtilityErrorChecks(Int32, ListInt32, String).)
Public methodStatic memberFindK(ListInt32)
Finds the maximum number of repeating IDs in a list of integers
Public methodStatic memberFindK(ListNode)
Finds the maximum number of repeating IDs in a list of nodes
Public methodGetStatus
Returns (as a reference) the state of all the nodes as a NodeState list.
(Overrides UtilityGetStatus(Int32, ListNode, ListNodeState).)
Public methodGetVariables
Returns a list of variables used in the algorithm.
(Overrides UtilityGetVariables.)
Public methodInitialize
Performs required initializations
(Overrides UtilityInitialize(Int32, ListNode, ListMessage, String).)
Public methodIsFinished
Checks whether the algorithm execution is finished.
(Overrides UtilityIsFinished(Int32, ListNode).)
Public methodPrintList
Prints the ring orientation in clockwise order.
(Overrides UtilityPrintList(Int32, ListNode, String, String).)
Public methodPrintStep
Returns (as a reference) the state of all the nodes as a single string.
(Overrides UtilityPrintStep(Int32, Int32, ListNode, String, String).)
Top
See Also