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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Exchange.*;
|
||||
import SeSim.Order.*;
|
||||
import sesim.Exchange.*;
|
||||
import sesim.Order.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
@ -23,10 +23,10 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Exchange.*;
|
||||
import SeSim.Order.*;
|
||||
import sesim.Exchange.*;
|
||||
import sesim.Order.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
@ -1,4 +1,4 @@
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import org.jfree.chart.*;
|
||||
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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Exchange.*;
|
||||
import SeSim.*;
|
||||
import sesim.Exchange;
|
||||
import sesim.Exchange.*;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
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.XYDataset;
|
||||
|
||||
import SeSim.Quote;
|
||||
import sesim.Quote;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
/**
|
||||
*
|
@ -80,21 +80,21 @@
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||
<SubComponents>
|
||||
<Component class="Gui.ControlPanel" name="controlPanel2">
|
||||
<Component class="gui.ControlPanel" name="controlPanel2">
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||
<BorderConstraints direction="After"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="Gui.OrderBookPanel" name="orderBookPanel1">
|
||||
<Component class="gui.OrderBookPanel" name="orderBookPanel1">
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||
<BorderConstraints direction="Before"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="Gui.Chart" name="zZChart1">
|
||||
<Component class="gui.Chart" name="zZChart1">
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||
<BorderConstraints direction="Center"/>
|
||||
@ -102,4 +102,4 @@
|
||||
</Constraints>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
</Form>
|
@ -23,14 +23,15 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Exchange;
|
||||
import SeSim.BuyOrder;
|
||||
import traders.RandomTraderConfig;
|
||||
import sesim.Account;
|
||||
import sesim.AutoTraderLIst;
|
||||
import sesim.Exchange;
|
||||
import sesim.BuyOrder;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.*;
|
||||
import SeSim.*;
|
||||
import Traders.*;
|
||||
|
||||
|
||||
/**
|
||||
@ -39,9 +40,9 @@ import Traders.*;
|
||||
*/
|
||||
public class MainWin extends javax.swing.JFrame {
|
||||
|
||||
static SeSim.Exchange se;
|
||||
static SeSim.Account myAccount;
|
||||
static Traders.ManTrader myTrader;
|
||||
static sesim.Exchange se;
|
||||
static sesim.Account myAccount;
|
||||
static traders.ManTrader myTrader;
|
||||
|
||||
/**
|
||||
* Creates new form MainWin
|
||||
@ -65,9 +66,9 @@ public class MainWin extends javax.swing.JFrame {
|
||||
|
||||
jButton1 = new javax.swing.JButton();
|
||||
jMenuItem1 = new javax.swing.JMenuItem();
|
||||
controlPanel2 = new Gui.ControlPanel();
|
||||
orderBookPanel1 = new Gui.OrderBookPanel();
|
||||
zZChart1 = new Gui.Chart();
|
||||
controlPanel2 = new gui.ControlPanel();
|
||||
orderBookPanel1 = new gui.OrderBookPanel();
|
||||
zZChart1 = new gui.Chart();
|
||||
MainMenu = new javax.swing.JMenuBar();
|
||||
FileMenu = new javax.swing.JMenu();
|
||||
FileNew = new javax.swing.JMenuItem();
|
||||
@ -139,7 +140,7 @@ public class MainWin extends javax.swing.JFrame {
|
||||
|
||||
se = new Exchange();
|
||||
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);
|
||||
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 FileRun;
|
||||
private javax.swing.JMenuBar MainMenu;
|
||||
private Gui.ControlPanel controlPanel2;
|
||||
private gui.ControlPanel controlPanel2;
|
||||
private javax.swing.JButton jButton1;
|
||||
private javax.swing.JMenu jMenu2;
|
||||
private javax.swing.JMenuItem jMenuItem1;
|
||||
private Gui.OrderBookPanel orderBookPanel1;
|
||||
private Gui.Chart zZChart1;
|
||||
private gui.OrderBookPanel orderBookPanel1;
|
||||
private gui.Chart zZChart1;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?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>
|
||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||
<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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
//import static Gui.SimpleJFreeDemo.createDemoPanel;
|
||||
import javax.swing.JPanel;
|
@ -23,9 +23,9 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Exchange;
|
||||
import sesim.Exchange;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Formatter;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
@ -145,15 +145,15 @@ public abstract class OrderBook extends javax.swing.JPanel implements Exchange.B
|
||||
|
||||
@Override
|
||||
public Object getValueAt(int r, int c) {
|
||||
SeSim.Order o;
|
||||
sesim.Order o;
|
||||
|
||||
int s = list.size();
|
||||
//System.out.print("Looking for Value at" + r + ":" + c + " w size:" + s + "\n");
|
||||
|
||||
if (!getDesc()) {
|
||||
o = (SeSim.Order) list.get(r);
|
||||
o = (sesim.Order) list.get(r);
|
||||
} else {
|
||||
o = (SeSim.Order) list.get(list.size() - r - 1);
|
||||
o = (sesim.Order) list.get(list.size() - r - 1);
|
||||
}
|
||||
Formatter f = new Formatter();
|
||||
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"/>
|
||||
</AuxValues>
|
||||
<SubComponents>
|
||||
<Component class="Gui.AskBook" name="askBook1">
|
||||
<Component class="gui.AskBook" name="askBook1">
|
||||
<Properties>
|
||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[200, 200]"/>
|
||||
@ -31,7 +31,7 @@
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="Gui.BidBook" name="bidBook1">
|
||||
<Component class="gui.BidBook" name="bidBook1">
|
||||
<Properties>
|
||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[200, 200]"/>
|
||||
@ -43,7 +43,7 @@
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Container class="Gui.QuotePanel" name="quotePanel2">
|
||||
<Container class="gui.QuotePanel" name="quotePanel2">
|
||||
<Properties>
|
||||
<Property name="opaque" type="boolean" value="false"/>
|
||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
@ -101,7 +101,7 @@
|
||||
</CodeStatement>
|
||||
<CodeStatement>
|
||||
<CodeExpression id="4_quotePanel2">
|
||||
<CodeVariable name="quotePanel2" type="8194" declaredType="Gui.QuotePanel"/>
|
||||
<CodeVariable name="quotePanel2" type="8194" declaredType="gui.QuotePanel"/>
|
||||
<ExpressionOrigin>
|
||||
<ExpressionProvider type="ComponentRef">
|
||||
<ComponentRef name="quotePanel2"/>
|
||||
@ -262,7 +262,7 @@
|
||||
</StatementProvider>
|
||||
<Parameters>
|
||||
<CodeExpression id="15_askBook1">
|
||||
<CodeVariable name="askBook1" type="8194" declaredType="Gui.AskBook"/>
|
||||
<CodeVariable name="askBook1" type="8194" declaredType="gui.AskBook"/>
|
||||
<ExpressionOrigin>
|
||||
<ExpressionProvider type="ComponentRef">
|
||||
<ComponentRef name="askBook1"/>
|
||||
@ -357,7 +357,7 @@
|
||||
</StatementProvider>
|
||||
<Parameters>
|
||||
<CodeExpression id="22_bidBook1">
|
||||
<CodeVariable name="bidBook1" type="8194" declaredType="Gui.BidBook"/>
|
||||
<CodeVariable name="bidBook1" type="8194" declaredType="gui.BidBook"/>
|
||||
<ExpressionOrigin>
|
||||
<ExpressionProvider type="ComponentRef">
|
||||
<ComponentRef name="bidBook1"/>
|
||||
@ -456,4 +456,4 @@
|
||||
</Parameters>
|
||||
</CodeStatement>
|
||||
</LayoutCode>
|
||||
</Form>
|
||||
</Form>
|
@ -23,7 +23,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
//import SeSim.*;
|
||||
import static java.lang.Thread.sleep;
|
||||
@ -39,7 +39,7 @@ import static java.lang.Thread.sleep;
|
||||
*/
|
||||
public class OrderBookPanel extends javax.swing.JPanel {
|
||||
|
||||
SeSim.Exchange se;
|
||||
sesim.Exchange se;
|
||||
|
||||
public OrderBookPanel() {
|
||||
this.se = MainWin.se;
|
||||
@ -63,9 +63,9 @@ public class OrderBookPanel extends javax.swing.JPanel {
|
||||
private void initComponents() {
|
||||
java.awt.GridBagConstraints gridBagConstraints;
|
||||
|
||||
askBook1 = new Gui.AskBook();
|
||||
bidBook1 = new Gui.BidBook();
|
||||
quotePanel2 = new Gui.QuotePanel();
|
||||
askBook1 = new gui.AskBook();
|
||||
bidBook1 = new gui.BidBook();
|
||||
quotePanel2 = new gui.QuotePanel();
|
||||
|
||||
setPreferredSize(new java.awt.Dimension(220, 262));
|
||||
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
|
||||
private Gui.AskBook askBook1;
|
||||
private Gui.BidBook bidBook1;
|
||||
private Gui.QuotePanel quotePanel2;
|
||||
private gui.AskBook askBook1;
|
||||
private gui.BidBook bidBook1;
|
||||
private gui.QuotePanel quotePanel2;
|
||||
// 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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import SeSim.Quote;
|
||||
import sesim.Quote;
|
||||
import java.awt.Color;
|
||||
import javax.swing.SwingUtilities;
|
||||
import java.util.*;
|
||||
@ -34,7 +34,7 @@ import java.util.*;
|
||||
*
|
||||
* @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
|
@ -23,7 +23,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Gui;
|
||||
package gui;
|
||||
|
||||
import java.util.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
import java.util.*;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
public class BuyOrder extends Order implements Comparable<Order> {
|
||||
|
@ -1,10 +1,10 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.*;
|
||||
|
||||
import SeSim.Order.OrderStatus;
|
||||
import SeSim.Order.OrderType;
|
||||
import sesim.Order.OrderStatus;
|
||||
import sesim.Order.OrderType;
|
||||
|
||||
/**
|
||||
*
|
@ -23,7 +23,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
import java.util.concurrent.Semaphore;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
public class Logger {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package SeSim;
|
||||
package sesim;
|
||||
|
||||
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
|
||||
* 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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Traders;
|
||||
package traders;
|
||||
|
||||
import SeSim.Account;
|
||||
import SeSim.Trader;
|
||||
import SeSim.TraderConfig;
|
||||
import SeSim.BuyOrder;
|
||||
import sesim.Account;
|
||||
import sesim.Trader;
|
||||
import sesim.TraderConfig;
|
||||
import sesim.BuyOrder;
|
||||
|
||||
|
||||
|
@ -23,13 +23,13 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Traders;
|
||||
package traders;
|
||||
|
||||
import SeSim.Account;
|
||||
import SeSim.Order;
|
||||
import sesim.Account;
|
||||
import sesim.Order;
|
||||
import java.util.Random;
|
||||
import SeSim.AutoTrader;
|
||||
import SeSim.TraderConfig;
|
||||
import sesim.AutoTrader;
|
||||
import sesim.TraderConfig;
|
||||
|
||||
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
|
||||
* 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
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Traders;
|
||||
package traders;
|
||||
|
||||
import SeSim.Account;
|
||||
import SeSim.TraderConfig;
|
||||
import sesim.Account;
|
||||
import sesim.TraderConfig;
|
||||
|
||||
/**
|
||||
*
|
@ -23,11 +23,11 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package Traders;
|
||||
package traders;
|
||||
|
||||
import SeSim.Account;
|
||||
import SeSim.AutoTrader;
|
||||
import SeSim.Exchange;
|
||||
import sesim.Account;
|
||||
import sesim.AutoTrader;
|
||||
import sesim.Exchange;
|
||||
|
||||
/**
|
||||
*
|
Loading…
Reference in New Issue
Block a user