Moved OrderType from Exchnage class to Order class

This commit is contained in:
2017-10-09 14:15:39 +02:00
parent 08c4c5e91d
commit 201709b053
15 changed files with 48 additions and 76 deletions

View File

@ -26,7 +26,7 @@
package gui;
import java.util.ArrayList;
import sesim.Exchange.OrderType;
import sesim.Order.OrderType;
import sesim.Order;

View File

@ -26,8 +26,9 @@
package gui;
import java.util.ArrayList;
import sesim.Exchange.*;
import sesim.Order;
import sesim.Order.OrderType;
/**
*

View File

@ -25,18 +25,18 @@
*/
package gui;
import java.awt.Frame;
import java.awt.MouseInfo;
import java.awt.Point;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import javax.swing.table.DefaultTableModel;
import sesim.Exchange;
import sesim.Exchange.Account;
import sesim.Order;
import sesim.Exchange.OrderType;
import sesim.Order.OrderType;
import traders.ManTrader.CreateOrderDialog;
/**

View File

@ -42,7 +42,7 @@ import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
import sesim.Exchange;
import sesim.Order;
import sesim.Exchange.OrderType;
import sesim.Order.OrderType;
/**
*

View File

@ -109,4 +109,4 @@
</SubComponents>
</Container>
</SubComponents>
</Form>
</Form>

View File

@ -27,6 +27,7 @@ package gui.orderbook;
import gui.Globals;
import sesim.Exchange;
import sesim.Order.OrderType;
/**
*
@ -42,8 +43,8 @@ public class OrderBooksHorizontal extends javax.swing.JPanel {
if (Globals.se==null)
return;
bidBook.setType(Exchange.OrderType.BUYLIMIT);
askBook.setType(Exchange.OrderType.SELLLIMIT);
bidBook.setType(OrderType.BUYLIMIT);
askBook.setType(OrderType.SELLLIMIT);
}
public void setDepth(int depth){