Swiftvis Template Creation

The essential thing to link your simulation to SwiftVis is a template. A template can be looked at as the set of instructions that SwiftVis follows to execute its visualization process.

When you first select to construct a template, you will see that on the left of the window it has a blank white field with a little box in it with the word "Socket". The right part of the window contains all the information for the respective fields that will be added to the template. (This will become clearer as the process is further explained)

SCREENSHOT HERE!!!!!

The first thing you want to add to the template are the links to the classes that are going to be accessed to aid SwiftVis. These appear in the left field as little boxes that allow you to edit the text in them; and in the right field you will see all the information about the box.

SCREENSHOT HERE!!!!!

The next object you want to add to the template will be the filters for the data. These will help you to filter out the data that you want to analyze. This filtered data will be printed out in the right field as the simulation is running and will be updated at the pace that was fixed by the programmer.

SCREENSHOT HERE!!!!!!!

Next, in order to visualize you data, you can add a graph/plot to it. This will collect the data generated by your simulation and put it onto a graph or draw a visual representation of the environment you are working in. This is a useful feature because it will be easier to track your simulation's progress instead of trying to sift through data.

SCREENSHOT HERE!!!!!!

The last thing that is necessary for the template to be complete is to connect everything. If you press Ctrl-N, you will have the ability to draw an arrow between two boxes. You want to start by drawing an arrow from your Socket box to the class boxes. Next, you want to connect those class boxes to the filter boxes. Lastly, you want to connect those filter boxes to the graph/plot box.

SCREEENSHOt HERE!!!!!

You are done creating the template for your simulation! Be sure to save it as a template to somewhere you can access it because everytime you run a new simulation you will have to paste it in again.

When you are ready to test your template's functionality, remember to click the box in the right field to start the socket and connect the socket box's arrow and then just run your simulation like normal.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License