|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.analyser.OrderCache
public class OrderCache
Caches the order of stock quotes in a quote bundle. The GP allows the user to order the evaluation of stock quotes, by several criteria such as unordered, alphabetically by symbol, volume decreasing etc. This gives priority to certain stocks. For example the user might prefer the GP to concentrate on high volume stocks, so ordering the stocks by volume will give high volume stocks a priority. Since sorting is a slow operation, and the GP traverses over the same day many times, it makes sense to cache the order. Profiling results showed this provides a significant speed increase.
OrderComparator
,
QuoteRangePage
Constructor Summary | |
---|---|
OrderCache(EODQuoteBundle quoteBundle,
OrderComparator orderComparator)
Create a new order cache. |
Method Summary | |
---|---|
java.util.List |
getTodaySymbols(int dateOffset)
Return a list of the given date's ordered symbols. |
boolean |
isOrdered()
Return whether the input order comparator is actually ordered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderCache(EODQuoteBundle quoteBundle, OrderComparator orderComparator)
quoteBundle
- the quotes to orderorderComparator
- the method of orderingMethod Detail |
---|
public java.util.List getTodaySymbols(int dateOffset)
dateOffset
- fast access date offset
public boolean isOrdered()
true
if the order comparator is ordered
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |