Package naming
This commit is contained in:
parent
d6b975eea2
commit
4241ef391f
@ -23,10 +23,10 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Exchange.*;
|
import sesim.Exchange.*;
|
||||||
import SeSim.Order.*;
|
import sesim.Order.*;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
@ -23,10 +23,10 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Exchange.*;
|
import sesim.Exchange.*;
|
||||||
import SeSim.Order.*;
|
import sesim.Order.*;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import org.jfree.chart.*;
|
import org.jfree.chart.*;
|
||||||
import org.jfree.chart.axis.*;
|
import org.jfree.chart.axis.*;
|
@ -23,10 +23,10 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Exchange.*;
|
import sesim.Exchange;
|
||||||
import SeSim.*;
|
import sesim.Exchange.*;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
@ -53,7 +53,7 @@ import org.jfree.data.xy.DefaultOHLCDataset;
|
|||||||
import org.jfree.data.xy.OHLCDataItem;
|
import org.jfree.data.xy.OHLCDataItem;
|
||||||
import org.jfree.data.xy.XYDataset;
|
import org.jfree.data.xy.XYDataset;
|
||||||
|
|
||||||
import SeSim.Quote;
|
import sesim.Quote;
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -80,21 +80,21 @@
|
|||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="Gui.ControlPanel" name="controlPanel2">
|
<Component class="gui.ControlPanel" name="controlPanel2">
|
||||||
<Constraints>
|
<Constraints>
|
||||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
<BorderConstraints direction="After"/>
|
<BorderConstraints direction="After"/>
|
||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="Gui.OrderBookPanel" name="orderBookPanel1">
|
<Component class="gui.OrderBookPanel" name="orderBookPanel1">
|
||||||
<Constraints>
|
<Constraints>
|
||||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
<BorderConstraints direction="Before"/>
|
<BorderConstraints direction="Before"/>
|
||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="Gui.Chart" name="zZChart1">
|
<Component class="gui.Chart" name="zZChart1">
|
||||||
<Constraints>
|
<Constraints>
|
||||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||||
<BorderConstraints direction="Center"/>
|
<BorderConstraints direction="Center"/>
|
@ -23,14 +23,15 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Exchange;
|
import traders.RandomTraderConfig;
|
||||||
import SeSim.BuyOrder;
|
import sesim.Account;
|
||||||
|
import sesim.AutoTraderLIst;
|
||||||
|
import sesim.Exchange;
|
||||||
|
import sesim.BuyOrder;
|
||||||
import javax.swing.UIManager;
|
import javax.swing.UIManager;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import SeSim.*;
|
|
||||||
import Traders.*;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,9 +40,9 @@ import Traders.*;
|
|||||||
*/
|
*/
|
||||||
public class MainWin extends javax.swing.JFrame {
|
public class MainWin extends javax.swing.JFrame {
|
||||||
|
|
||||||
static SeSim.Exchange se;
|
static sesim.Exchange se;
|
||||||
static SeSim.Account myAccount;
|
static sesim.Account myAccount;
|
||||||
static Traders.ManTrader myTrader;
|
static traders.ManTrader myTrader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new form MainWin
|
* Creates new form MainWin
|
||||||
@ -65,9 +66,9 @@ public class MainWin extends javax.swing.JFrame {
|
|||||||
|
|
||||||
jButton1 = new javax.swing.JButton();
|
jButton1 = new javax.swing.JButton();
|
||||||
jMenuItem1 = new javax.swing.JMenuItem();
|
jMenuItem1 = new javax.swing.JMenuItem();
|
||||||
controlPanel2 = new Gui.ControlPanel();
|
controlPanel2 = new gui.ControlPanel();
|
||||||
orderBookPanel1 = new Gui.OrderBookPanel();
|
orderBookPanel1 = new gui.OrderBookPanel();
|
||||||
zZChart1 = new Gui.Chart();
|
zZChart1 = new gui.Chart();
|
||||||
MainMenu = new javax.swing.JMenuBar();
|
MainMenu = new javax.swing.JMenuBar();
|
||||||
FileMenu = new javax.swing.JMenu();
|
FileMenu = new javax.swing.JMenu();
|
||||||
FileNew = new javax.swing.JMenuItem();
|
FileNew = new javax.swing.JMenuItem();
|
||||||
@ -139,7 +140,7 @@ public class MainWin extends javax.swing.JFrame {
|
|||||||
|
|
||||||
se = new Exchange();
|
se = new Exchange();
|
||||||
myAccount = new Account(se,1000,100000000.0);
|
myAccount = new Account(se,1000,100000000.0);
|
||||||
myTrader = new Traders.ManTrader(myAccount,null);
|
myTrader = new traders.ManTrader(myAccount,null);
|
||||||
|
|
||||||
/* Account otherAccount = new Account(se,1000,1000);
|
/* Account otherAccount = new Account(se,1000,1000);
|
||||||
Traders.ManTrader otherTrader = new Traders.ManTrader(otherAccount);
|
Traders.ManTrader otherTrader = new Traders.ManTrader(otherAccount);
|
||||||
@ -209,11 +210,11 @@ public class MainWin extends javax.swing.JFrame {
|
|||||||
private javax.swing.JMenuItem FileNew;
|
private javax.swing.JMenuItem FileNew;
|
||||||
private javax.swing.JMenuItem FileRun;
|
private javax.swing.JMenuItem FileRun;
|
||||||
private javax.swing.JMenuBar MainMenu;
|
private javax.swing.JMenuBar MainMenu;
|
||||||
private Gui.ControlPanel controlPanel2;
|
private gui.ControlPanel controlPanel2;
|
||||||
private javax.swing.JButton jButton1;
|
private javax.swing.JButton jButton1;
|
||||||
private javax.swing.JMenu jMenu2;
|
private javax.swing.JMenu jMenu2;
|
||||||
private javax.swing.JMenuItem jMenuItem1;
|
private javax.swing.JMenuItem jMenuItem1;
|
||||||
private Gui.OrderBookPanel orderBookPanel1;
|
private gui.OrderBookPanel orderBookPanel1;
|
||||||
private Gui.Chart zZChart1;
|
private gui.Chart zZChart1;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<Form version="1.2" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.PanelFormInfo">
|
<Form version="1.2" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
//import static Gui.SimpleJFreeDemo.createDemoPanel;
|
//import static Gui.SimpleJFreeDemo.createDemoPanel;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
@ -23,9 +23,9 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Exchange;
|
import sesim.Exchange;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Formatter;
|
import java.util.Formatter;
|
||||||
import javax.swing.table.AbstractTableModel;
|
import javax.swing.table.AbstractTableModel;
|
||||||
@ -145,15 +145,15 @@ public abstract class OrderBook extends javax.swing.JPanel implements Exchange.B
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getValueAt(int r, int c) {
|
public Object getValueAt(int r, int c) {
|
||||||
SeSim.Order o;
|
sesim.Order o;
|
||||||
|
|
||||||
int s = list.size();
|
int s = list.size();
|
||||||
//System.out.print("Looking for Value at" + r + ":" + c + " w size:" + s + "\n");
|
//System.out.print("Looking for Value at" + r + ":" + c + " w size:" + s + "\n");
|
||||||
|
|
||||||
if (!getDesc()) {
|
if (!getDesc()) {
|
||||||
o = (SeSim.Order) list.get(r);
|
o = (sesim.Order) list.get(r);
|
||||||
} else {
|
} else {
|
||||||
o = (SeSim.Order) list.get(list.size() - r - 1);
|
o = (sesim.Order) list.get(list.size() - r - 1);
|
||||||
}
|
}
|
||||||
Formatter f = new Formatter();
|
Formatter f = new Formatter();
|
||||||
switch (c) {
|
switch (c) {
|
@ -19,7 +19,7 @@
|
|||||||
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,41,0,0,2,75"/>
|
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,41,0,0,2,75"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="Gui.AskBook" name="askBook1">
|
<Component class="gui.AskBook" name="askBook1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[200, 200]"/>
|
<Dimension value="[200, 200]"/>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="Gui.BidBook" name="bidBook1">
|
<Component class="gui.BidBook" name="bidBook1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[200, 200]"/>
|
<Dimension value="[200, 200]"/>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Container class="Gui.QuotePanel" name="quotePanel2">
|
<Container class="gui.QuotePanel" name="quotePanel2">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="opaque" type="boolean" value="false"/>
|
<Property name="opaque" type="boolean" value="false"/>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
@ -101,7 +101,7 @@
|
|||||||
</CodeStatement>
|
</CodeStatement>
|
||||||
<CodeStatement>
|
<CodeStatement>
|
||||||
<CodeExpression id="4_quotePanel2">
|
<CodeExpression id="4_quotePanel2">
|
||||||
<CodeVariable name="quotePanel2" type="8194" declaredType="Gui.QuotePanel"/>
|
<CodeVariable name="quotePanel2" type="8194" declaredType="gui.QuotePanel"/>
|
||||||
<ExpressionOrigin>
|
<ExpressionOrigin>
|
||||||
<ExpressionProvider type="ComponentRef">
|
<ExpressionProvider type="ComponentRef">
|
||||||
<ComponentRef name="quotePanel2"/>
|
<ComponentRef name="quotePanel2"/>
|
||||||
@ -262,7 +262,7 @@
|
|||||||
</StatementProvider>
|
</StatementProvider>
|
||||||
<Parameters>
|
<Parameters>
|
||||||
<CodeExpression id="15_askBook1">
|
<CodeExpression id="15_askBook1">
|
||||||
<CodeVariable name="askBook1" type="8194" declaredType="Gui.AskBook"/>
|
<CodeVariable name="askBook1" type="8194" declaredType="gui.AskBook"/>
|
||||||
<ExpressionOrigin>
|
<ExpressionOrigin>
|
||||||
<ExpressionProvider type="ComponentRef">
|
<ExpressionProvider type="ComponentRef">
|
||||||
<ComponentRef name="askBook1"/>
|
<ComponentRef name="askBook1"/>
|
||||||
@ -357,7 +357,7 @@
|
|||||||
</StatementProvider>
|
</StatementProvider>
|
||||||
<Parameters>
|
<Parameters>
|
||||||
<CodeExpression id="22_bidBook1">
|
<CodeExpression id="22_bidBook1">
|
||||||
<CodeVariable name="bidBook1" type="8194" declaredType="Gui.BidBook"/>
|
<CodeVariable name="bidBook1" type="8194" declaredType="gui.BidBook"/>
|
||||||
<ExpressionOrigin>
|
<ExpressionOrigin>
|
||||||
<ExpressionProvider type="ComponentRef">
|
<ExpressionProvider type="ComponentRef">
|
||||||
<ComponentRef name="bidBook1"/>
|
<ComponentRef name="bidBook1"/>
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
//import SeSim.*;
|
//import SeSim.*;
|
||||||
import static java.lang.Thread.sleep;
|
import static java.lang.Thread.sleep;
|
||||||
@ -39,7 +39,7 @@ import static java.lang.Thread.sleep;
|
|||||||
*/
|
*/
|
||||||
public class OrderBookPanel extends javax.swing.JPanel {
|
public class OrderBookPanel extends javax.swing.JPanel {
|
||||||
|
|
||||||
SeSim.Exchange se;
|
sesim.Exchange se;
|
||||||
|
|
||||||
public OrderBookPanel() {
|
public OrderBookPanel() {
|
||||||
this.se = MainWin.se;
|
this.se = MainWin.se;
|
||||||
@ -63,9 +63,9 @@ public class OrderBookPanel extends javax.swing.JPanel {
|
|||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
java.awt.GridBagConstraints gridBagConstraints;
|
java.awt.GridBagConstraints gridBagConstraints;
|
||||||
|
|
||||||
askBook1 = new Gui.AskBook();
|
askBook1 = new gui.AskBook();
|
||||||
bidBook1 = new Gui.BidBook();
|
bidBook1 = new gui.BidBook();
|
||||||
quotePanel2 = new Gui.QuotePanel();
|
quotePanel2 = new gui.QuotePanel();
|
||||||
|
|
||||||
setPreferredSize(new java.awt.Dimension(220, 262));
|
setPreferredSize(new java.awt.Dimension(220, 262));
|
||||||
java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
|
java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
|
||||||
@ -104,8 +104,8 @@ public class OrderBookPanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private Gui.AskBook askBook1;
|
private gui.AskBook askBook1;
|
||||||
private Gui.BidBook bidBook1;
|
private gui.BidBook bidBook1;
|
||||||
private Gui.QuotePanel quotePanel2;
|
private gui.QuotePanel quotePanel2;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
@ -23,9 +23,9 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import SeSim.Quote;
|
import sesim.Quote;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import javax.swing.SwingUtilities;
|
import javax.swing.SwingUtilities;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@ -34,7 +34,7 @@ import java.util.*;
|
|||||||
*
|
*
|
||||||
* @author 7u83 <7u83@mail.ru>
|
* @author 7u83 <7u83@mail.ru>
|
||||||
*/
|
*/
|
||||||
public class QuotePanel extends javax.swing.JPanel implements SeSim.Exchange.QuoteReceiver{
|
public class QuotePanel extends javax.swing.JPanel implements sesim.Exchange.QuoteReceiver{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new form QuotePanel
|
* Creates new form QuotePanel
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Gui;
|
package gui;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
import static java.lang.Thread.sleep;
|
import static java.lang.Thread.sleep;
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -1,4 +1,4 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
public class BuyOrder extends Order implements Comparable<Order> {
|
public class BuyOrder extends Order implements Comparable<Order> {
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
|
|
||||||
import SeSim.Order.OrderStatus;
|
import sesim.Order.OrderStatus;
|
||||||
import SeSim.Order.OrderType;
|
import sesim.Order.OrderType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
import java.util.concurrent.Semaphore;
|
import java.util.concurrent.Semaphore;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
public class Logger {
|
public class Logger {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
public abstract class Order implements Comparable<Order> {
|
public abstract class Order implements Comparable<Order> {
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -1,4 +1,4 @@
|
|||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
public class SellOrder extends Order {
|
public class SellOrder extends Order {
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
import static java.lang.Thread.sleep;
|
import static java.lang.Thread.sleep;
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package SeSim;
|
package sesim;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -23,12 +23,12 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Traders;
|
package traders;
|
||||||
|
|
||||||
import SeSim.Account;
|
import sesim.Account;
|
||||||
import SeSim.Trader;
|
import sesim.Trader;
|
||||||
import SeSim.TraderConfig;
|
import sesim.TraderConfig;
|
||||||
import SeSim.BuyOrder;
|
import sesim.BuyOrder;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,13 +23,13 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Traders;
|
package traders;
|
||||||
|
|
||||||
import SeSim.Account;
|
import sesim.Account;
|
||||||
import SeSim.Order;
|
import sesim.Order;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import SeSim.AutoTrader;
|
import sesim.AutoTrader;
|
||||||
import SeSim.TraderConfig;
|
import sesim.TraderConfig;
|
||||||
|
|
||||||
public class RandomTrader extends AutoTrader {
|
public class RandomTrader extends AutoTrader {
|
||||||
|
|
@ -23,9 +23,12 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Traders;
|
package traders;
|
||||||
|
|
||||||
import SeSim.*;
|
import sesim.Account;
|
||||||
|
import sesim.TraderConfig;
|
||||||
|
import sesim.Exchange;
|
||||||
|
import sesim.AutoTrader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -23,10 +23,10 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Traders;
|
package traders;
|
||||||
|
|
||||||
import SeSim.Account;
|
import sesim.Account;
|
||||||
import SeSim.TraderConfig;
|
import sesim.TraderConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
@ -23,11 +23,11 @@
|
|||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package Traders;
|
package traders;
|
||||||
|
|
||||||
import SeSim.Account;
|
import sesim.Account;
|
||||||
import SeSim.AutoTrader;
|
import sesim.AutoTrader;
|
||||||
import SeSim.Exchange;
|
import sesim.Exchange;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
Loading…
Reference in New Issue
Block a user