|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jasa.report.AbstractAuctionReport
net.sourceforge.jasa.report.HistoricalDataReport
@Deprecated public class HistoricalDataReport
A historicalDataReport that keeps a historical record of the shouts in the market that lead to the last N transactions. This report is used to keep historical data that is used by various different trading strategies.
Since GDStrategy uses this historicalDataReport to compute the number of shouts above or below a certain price, which leads to slow simulation, SortedView and IncreasingQueryAccelerator are introduced to speed up GDStrategy's queries based on the pattern of prices of concern.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Nested Class Summary | |
---|---|
class |
HistoricalDataReport.IncreasingQueryAccelerator
Deprecated. a class to speed up queries from GDStrategy regarding the number of shouts above or below a certain price. |
class |
HistoricalDataReport.SortedView
Deprecated. a class providing sorted lists of shouts. |
Field Summary | |
---|---|
protected HistoricalDataReport.IncreasingQueryAccelerator |
accelerator
Deprecated. |
protected java.util.HashSet<Order> |
acceptedShouts
Deprecated. |
protected java.util.LinkedList<Order> |
asks
Deprecated. |
protected java.util.LinkedList<Order> |
bids
Deprecated. |
protected int |
currentMemoryCell
Deprecated. |
protected double |
highestBidPrice
Deprecated. |
protected Order |
highestUnacceptedBid
Deprecated. |
protected double |
lowestAskPrice
Deprecated. |
protected Order |
lowestUnacceptedAsk
Deprecated. |
protected int[] |
memoryAsks
Deprecated. |
protected int[] |
memoryBids
Deprecated. |
protected int |
memorySize
Deprecated. |
protected java.util.Observable |
observableProxy
Deprecated. |
protected java.util.TreeSet<Order> |
sortedShouts
Deprecated. |
protected HistoricalDataReport.SortedView |
view
Deprecated. |
Fields inherited from class net.sourceforge.jasa.report.AbstractAuctionReport |
---|
auction |
Constructor Summary | |
---|---|
HistoricalDataReport()
Deprecated. |
Method Summary | |
---|---|
boolean |
accepted(Order shout)
Deprecated. |
void |
addObserver(java.util.Observer o)
Deprecated. |
void |
addToSortedShouts(Order shout)
Deprecated. |
void |
checkConsistency()
Deprecated. |
void |
deleteObserver(java.util.Observer o)
Deprecated. |
void |
disableIncreasingQueryAccelerator()
Deprecated. |
void |
disableSortedView()
Deprecated. |
void |
eventOccurred(SimEvent event)
Deprecated. |
void |
finalReport()
Deprecated. |
java.util.List<Order> |
getAsks()
Deprecated. |
java.util.List<Order> |
getBids()
Deprecated. |
double |
getHighestAcceptedAskPrice()
Deprecated. |
double |
getHighestBidPrice()
Deprecated. |
double |
getHighestUnacceptedBidPrice()
Deprecated. |
HistoricalDataReport.IncreasingQueryAccelerator |
getIncreasingQueryAccelerator()
Deprecated. |
double |
getLowestAcceptedBidPrice()
Deprecated. |
double |
getLowestAskPrice()
Deprecated. |
double |
getLowestUnacceptedAskPrice()
Deprecated. |
int |
getNumberOfAsks(double price,
boolean accepted)
Deprecated. |
int |
getNumberOfBids(double price,
boolean accepted)
Deprecated. |
int |
getNumberOfShouts(java.util.List<Order> shouts,
double price,
boolean accepted)
Deprecated. |
int |
getNumberOfTrades()
Deprecated. |
HistoricalDataReport.SortedView |
getSortedView()
Deprecated. |
void |
initialise()
Deprecated. |
protected void |
initialisePriceRanges()
Deprecated. |
protected void |
markMatched(java.util.List<Order> shouts)
Deprecated. |
void |
produceUserOutput()
Deprecated. |
protected void |
removeNShouts(int n,
java.util.LinkedList<Order> shouts)
Deprecated. |
void |
reset()
Deprecated. |
void |
roundClosed(RoundFinishedEvent event)
Deprecated. |
java.util.Iterator |
sortedShoutIterator()
Deprecated. |
java.lang.String |
toString()
Deprecated. |
void |
updateShoutLog(OrderPlacedEvent event)
Deprecated. |
void |
updateTransPriceLog(TransactionExecutedEvent event)
Deprecated. |
Methods inherited from class net.sourceforge.jasa.report.AbstractAuctionReport |
---|
getAuction, getName, getVariableBindings, setAuction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.LinkedList<Order> asks
protected java.util.LinkedList<Order> bids
protected java.util.TreeSet<Order> sortedShouts
protected java.util.HashSet<Order> acceptedShouts
protected int memorySize
protected int currentMemoryCell
protected int[] memoryBids
protected int[] memoryAsks
protected double lowestAskPrice
protected double highestBidPrice
protected Order highestUnacceptedBid
protected Order lowestUnacceptedAsk
protected HistoricalDataReport.IncreasingQueryAccelerator accelerator
protected HistoricalDataReport.SortedView view
protected java.util.Observable observableProxy
Constructor Detail |
---|
public HistoricalDataReport()
Method Detail |
---|
public void addObserver(java.util.Observer o)
public void deleteObserver(java.util.Observer o)
public void checkConsistency()
protected void removeNShouts(int n, java.util.LinkedList<Order> shouts)
public void updateTransPriceLog(TransactionExecutedEvent event)
public void initialise()
public void reset()
public void updateShoutLog(OrderPlacedEvent event)
public void roundClosed(RoundFinishedEvent event)
public void eventOccurred(SimEvent event)
eventOccurred
in class AbstractAuctionReport
public int getNumberOfTrades()
public double getHighestBidPrice()
public double getLowestAskPrice()
public double getHighestUnacceptedBidPrice()
public double getLowestAcceptedBidPrice()
public double getLowestUnacceptedAskPrice()
public double getHighestAcceptedAskPrice()
public java.util.List<Order> getBids()
public java.util.List<Order> getAsks()
public boolean accepted(Order shout)
public int getNumberOfAsks(double price, boolean accepted)
public int getNumberOfBids(double price, boolean accepted)
public java.util.Iterator sortedShoutIterator()
public void addToSortedShouts(Order shout)
public int getNumberOfShouts(java.util.List<Order> shouts, double price, boolean accepted)
shouts
- price
- the sign of price controls whether higher shouts or lower shouts
are neededaccepted
-
public void produceUserOutput()
produceUserOutput
in class AbstractAuctionReport
protected void initialisePriceRanges()
protected void markMatched(java.util.List<Order> shouts)
public void finalReport()
public java.lang.String toString()
toString
in class java.lang.Object
public HistoricalDataReport.SortedView getSortedView()
public void disableSortedView()
public HistoricalDataReport.IncreasingQueryAccelerator getIncreasingQueryAccelerator()
public void disableIncreasingQueryAccelerator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |