Moved Account class out of Exchange to sesim
This commit is contained in:
parent
4aacac8d76
commit
f7731c2381
@ -3,15 +3,37 @@
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/ChartDef.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/painter/ChartCrossPainter.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/OHLCData.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/AutoTraderInterface.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/ManTrader/AccountBalance.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/IDGenerator.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/ManTrader/CreateOrderDialog.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Quote.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/orderbook/OrderBooksHorizontal.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/ChartPanel.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/AutoTraderBase.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/OpenOrdersList.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/ManTrader/ManTraderConsole.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/painter/ChartPainter.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/MainChart.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/BidBook.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/RandomTraderB.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Order.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/AskBook.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/ChartDef.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/TraderListPanel.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/orderbook/OrderBook.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/OHLCData.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Stock.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Exchange.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/RandomTraderA.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/ManTrader/ManTrader.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/painter/ChartCrossPainter.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/MinMax.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/OHLCDataItem.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/Chart.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/gui/MainChart.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/ChartPanel.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/traders/ManTrader/ManTraderConsoleDialog.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Account.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/sesim/Locker.java</file>
|
||||
<file>file:/home/tobias/v/SeSim/src/chart/painter/OHLCChartPainter.java</file>
|
||||
</group>
|
||||
</open-files>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#Mon, 09 Oct 2017 16:27:25 +0200
|
||||
#Mon, 09 Oct 2017 17:19:53 +0200
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
|
@ -40,6 +40,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
protected AutoTraderInterface owner;
|
||||
|
||||
protected final ConcurrentHashMap<Long, Order> orders;
|
||||
protected ConcurrentHashMap<String,Integer> sharesm;
|
||||
|
||||
@Override
|
||||
public int compareTo(Object a) {
|
||||
@ -62,6 +63,10 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
public double getShares() {
|
||||
return shares;
|
||||
}
|
||||
|
||||
public double getShares(String symbol){
|
||||
return sharesm.get(symbol);
|
||||
}
|
||||
|
||||
public double getMoney() {
|
||||
return money;
|
||||
|
Loading…
Reference in New Issue
Block a user