Click or drag to resize
Utility Class
Distributed Algorithm Simulator
Common Utility class. Classes of different algorithms must override these and perform appropriate changes.
Inheritance Hierarchy

Namespace: WrapperClasses
Assembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class Utility

The Utility type exposes the following members.

Methods
  NameDescription
Public methodErrorChecks
Checks for errors.
Public methodGetStatus
Returns (as a reference) the state of all the nodes as a NodeState list.
Public methodGetVariables
Gets a list of variables that the algorithm uses.
Public methodInitialize
Performs required initializations
Public methodIsFinished
Checks whether the algorithm execution is finished.
Public methodPrintList
Prints the ring orientation in clockwise order.
Public methodPrintStep
Returns (as a reference) the state of all the nodes as a single string.
Top
Fields
  NameDescription
Public fieldStatic memberERR_MSG_SUCCESS
Successful operation.
Top
See Also