Click or drag to resize
VisualSimulator Class
Distributed Algorithm Simulator
Visual Simulation window.
Inheritance Hierarchy

Namespace: DistributedAlgorithmSimulator
Assembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class VisualSimulator : Form

The VisualSimulator type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberVisualSimulator
Public methodVisualSimulator
Initializes an instance of the VisualSimulator class.
Top
Methods
  NameDescription
Private methodbtnExit_Click
Exits the Visual Simulator window.
Private methodbtnFirst_Clicked
Jumps to the first step of the execution.
Private methodbtnLast_Clicked
Jumps to the last step of the execution.
Private methodbtnNext_Clicked
Advances one step forward through the history.
Private methodbtnPlayPause_Clicked
Play/Pause button click. Runs/Stops the execution.
Private methodbtnPrev_Clicked
Advances one step backward through the history.
Private methodbtnReset_Clicked
Resets all variables and counters.
Private methodbtnSaveToFile_Clicked
Saves the result of the execution to a file.
Private methodCalculateRingProperties
Calculates the XY-coordinates and the radius of the ring.
Private methodchkBox_CheckedChanged
Update the list of variables to be displayed based on check status of check boxes.
Private methodCreateDynamicControls
Dyamically creates controls.
Private methodDrawNodes
Draws nodes in the ring.
Private methodFillInfoList
Gets the variables associated with the algorithm.
Private methodgbSimulation_Paint
Draws the circle representing the ring.
Private methodInitializeComponent
Required method for Designer support - do not modify the contents of this method with the code editor.
Private methodnumUpDownSpeed_ValueChanged
Updates the execution speed depending on the user selected value.
Private methodRefreshSimulator
Resets all varibles to initial state.
Private methodSaveData
Saves the result of the execution to a file.
Private methodSetCheckStatus
Sets the checked status of check boxes.
Private methodSetCouners
Sets the values of TotalSteps, RoundNumer, and Steps in the Round counters.
Private methodSetStatusOfPlaybackButtons
Sets the enabled statues of playback buttons.
Private methodTimerCallback
Performs one step of the execution of the algorith. Called from the Timer, at each time tick.
Private methodUpdateInfoList
Updates the list of variables to be displayed depending on check status of check boxes.
Top
See Also