Coding Tools

Revision for “Coding Tools” created on May 31, 2017 @ 08:21:50

TitleContentExcerptRevision Note
Coding Tools
To set up the coding environment for a new AlgoQuant project, please follow the following steps.
SuanShu and AlgoQuant are Java based code. Before we can code using the libraries, we need to install the latest <a href="">Java Development Kit (JDK)</a>. If you skip this step, you can download it together with NetBeans in the next step.

<a href=""><img class="alignnone size-full wp-image-5754" src="" alt="" width="1470" height="922" /></a>
NetBeans is our preferred IDE for Java programming. You may download and install JDK and then NetBeans. Or you can download "NetBeans with JDK" directly.


NetBeans can be downloaded from this <a href="">link</a>. If you have no Java programming experience, choose the one labeled "Java SE".

<a href=""><img class="alignnone size-full wp-image-5753" src="" alt="" width="1276" height="872" /></a>

Run the installer.
Download <a href="">TortoiseSVN</a>.

<a href=""><img class="alignnone size-full wp-image-5755" src="" alt="" width="1320" height="897" /></a>

Run the installer. More information on svn can be found in this <a href="">wiki</a>.

After installing TortoiseSVN, right click in Explorer in the empty space in the folder you want to put your project in. Click "SVN checkout" to check out project.

<a href=""><img class="alignnone size-full wp-image-5744" src="" alt="" width="801" height="869" /></a>

The following example checks out AlgoQuant. You will use the URL given to you instead. In most cases, you do NOT need to check out AlgoQuant as it will be automatically downloaded by <a href="">Maven</a> when you build your project.

<a href=""><img class="alignnone size-full wp-image-5745" src="" alt="" width="529" height="469" /></a>
<h2>Coding in NetBeans</h2>
Launch NetBeans. Open your project. You can right click on a package/folder to create a new Java class to start coding. If you are asked to modify AlgoQuant code, copy and paste the code in your project and do the editing there. Do NOT modify source code in AlgoQuant directly.

<a href=""><img class="alignnone size-full wp-image-5750" src="" alt="" width="808" height="694" /></a>

To build your project, right click on the project and hit "Clean and Build". Alternatively, you can hit this button on the top bar.

<a href=""><img class="alignnone size-full wp-image-5765" src="" alt="" width="399" height="96" /></a>

To run your project, you need to create JUNIT test cases. We run our project by running the test cases. To create a JUNIT test case file, hit "CTRL+SHIRT+U". This will create a test file for you where you will put your test cases. You can right click on the test file and run it – either in normal or debug mode.

<a href=""><img class="alignnone size-full wp-image-5767" src="" alt="" width="535" height="269" /></a>
<a href=""></a>

<a href=""></a>
<h2>Commit Code</h2>
When you are done with coding a milestone, you can submit your code by committing code. Right click the project folder. Select "SVN Commit".

<a href=""><img class="alignnone size-full wp-image-5748" src="" alt="" width="896" height="788" /></a>

Type in some meaningful message to let people know what changes and files you make and add. Click "OK" to commit.

<a href=""><img class="alignnone size-full wp-image-5757" src="" alt="" width="704" height="635" /></a>

Old New Date Created Author Actions
May 31, 2017 @ 08:21:50 Haksun Li
May 31, 2017 @ 08:20:37 Haksun Li
May 31, 2017 @ 08:20:08 [Autosave] Haksun Li
May 31, 2017 @ 08:14:03 Haksun Li
May 31, 2017 @ 08:02:09 Haksun Li
May 31, 2017 @ 02:47:53 zhengxiong
May 31, 2017 @ 02:47:07 zhengxiong
May 31, 2017 @ 02:42:26 zhengxiong
May 26, 2017 @ 02:00:59 zhengxiong
May 26, 2017 @ 01:56:55 zhengxiong
May 26, 2017 @ 01:53:33 zhengxiong
May 26, 2017 @ 01:52:34 zhengxiong
May 26, 2017 @ 01:34:00 zhengxiong