Hebrew University
Computer Science
DANSS Lab

Home

BP Visualized

Download

Usage

Simulator

Screenshots

 

 

 

 

 

 

Start-Up | Init | Run

Installation

First, you need to setup a new project in eclipse. The project's name should be SudukuSimulator and it should support JAVA level 5.

Second, You need to extract the source code from the attached ZIP file to the project's directory.

Third, you need to save the following JAR files in a directory called C:\ProjectJARs and then add them in the Add external JARs in the project properties.
BP_Visual.jar
colt.jar
jung-1.7.4.jar
Jama-1.0.1.jar
commons-collections-3.1.jar

Last you need to save the configuration file in your C: root directory (or change the ref. to the configuration file in the GUI). the sample config files are: suduku_book*.cfg configuration files controlling the size and complexity of the suduku board.

Now, compile and verify that no errors exist, you need to run the file SudukuApplet.java as Java applet.
Note that the package have to be named samples.graph

Start-Up

The Applet starts with a blank canvass, a text box where you can enter the configuration file path and file name, and an Init button that initiates the Applet.

In order to initiate the applet - type in the correct path and filename in the textbox and press Init.

Init

During the Init phase the Applet gets the graph configuration from the configuration file and sets up the graph nodes and edges.
All of the Applets' control buttons are set active:

  • Step - Runs the simulation the number of step written in the textbox underneath it.
  • Round - Runs the simulation one Belief-Propagation round.
  • Go! - Runs the simulation until it finishes or until another button is pressed.
  • Pause - Pauses the simulation after the current round.

In addition, the Applet has a few other usefull buttons:

  • Scale - Zoom in or out.
  • Edge Type - Selects how to draw the edges.
  • Picture - Enables to capture a snapshot of the simulation.
  • Mouse Mode - Switches between two mouse modes - Picking and Moving

Run

During rhe run phase, the simulation colors each two communicating nodes in red, while the information transfered between them is written on the edge connecting them.
When a node has reached a decision regarding it's final value it is painted with the appropriate color.
The counter at the top of the applet counts the Belief-Propagation rounds until the simulation finishes.
At the end of the run, all the nodes are colored and the head of the applet header states the time it took to run the proccess.

For final screenshots refer to the screenshots page.

 

Original site design by Pegasus Web Design Resources, modified by Ophir Bear