Moved OrderType from Exchnage class to Order class
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
package gui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import sesim.Exchange.OrderType;
|
||||
import sesim.Order.OrderType;
|
||||
import sesim.Order;
|
||||
|
||||
|
||||
|
@ -26,8 +26,9 @@
|
||||
package gui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import sesim.Exchange.*;
|
||||
|
||||
import sesim.Order;
|
||||
import sesim.Order.OrderType;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -109,4 +109,4 @@
|
||||
</SubComponents>
|
||||
</Container>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
</Form>
|
||||
|
@ -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){
|
||||
|
Reference in New Issue
Block a user