DistributedAlgorithmSimulator Methods |
Name | Description | |
---|---|---|
![]() | btnExit_Click |
Exits the application.
|
![]() | btnOpenFile_Click |
Launches a FileOpen dialog which lets the user select the input file.
|
![]() | btnRead_Click |
Reads the node IDs and creates a list of IDs.
Depending on the user's selection, reads either from a user selected file or takes input from a text box.
|
![]() | btnRun_Click |
Executes the simulation depending on user preference of Visual or Textual simulation.
If the number of nodes is greater than 18, prompts the user to launch a Textual Simulation.
|
![]() | CreateNetwork |
Creates a ring network which can pass messages in either clockwise or counter-clockwise directions
Nodes are linked to their CW and CCW neighbors using a private id called linkID (which isn't a part of the algorithm)
|
![]() | Initializations |
Performs initializations such as setting initial values of controls.
|
![]() | InitializeComponent |
Required method for Designer support - do not modify
the contents of this method with the code editor.
|
![]() | LaunchSimulation |
Launches either a Visual Simulation or a Textual Simulation of an algorithm of user's choice.
|
![]() | LoadAlgorithms |
Loads available algorithms into "Algorithm Type" combo box.
|
![]() | rbInputIDs_CheckedChanged |
Specifies user preference of reading input from a textbox.
|
![]() | rbReadFromFile_CheckedChanged |
Specifies user preference of reading input from a file.
|
![]() | SimulatorMain_Load |
Form load event of the main window.
|