|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.quote.IDQuoteSync
public class IDQuoteSync
This class controls the periodic downloading, or synchronisation, of new intra-day quotes. This class will only sync quotes if all the following conditions are met:
Field Summary | |
---|---|
static int |
DEFAULT_PERIOD
The default time period inbetween quote downloads. |
static TradingTime |
DEFAULT_START_TIME
The default start time. |
static TradingTime |
DEFAULT_STOP_TIME
The default stop time. |
Method Summary | |
---|---|
void |
addSymbols(java.util.List symbols)
Add the a list of symbols to the list of symbols for the intra-day quotes to download. |
static IDQuoteSync |
getInstance()
Create or return the singleton instance of the intra-day quote synchronisation object. |
java.util.List |
getSymbols(java.util.List symbols)
Return the list of symbols of the intra-day quotes to download. |
boolean |
isEnabled()
Return whether the automatic downloading of intra-day quotes is enabled. |
boolean |
isRunning()
Return whether the automatic downloading of intra-day quotes is running. |
void |
setEnabled(boolean isEnabled)
Set whether the automatic downloading of intra-day quotes is enabled. |
void |
setPeriod(int period)
Set the time period inbetween quote downloads |
void |
setTimeRange(TradingTime startTime,
TradingTime stopTime)
Set the time range to sync quotes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PERIOD
public static final TradingTime DEFAULT_START_TIME
public static final TradingTime DEFAULT_STOP_TIME
Method Detail |
---|
public static IDQuoteSync getInstance()
public void setEnabled(boolean isEnabled)
isEnabled
- enabled statuspublic boolean isEnabled()
true
if enabled.public boolean isRunning()
true
if running.public java.util.List getSymbols(java.util.List symbols)
public void addSymbols(java.util.List symbols)
symbols
- new symbols to downloadpublic void setPeriod(int period)
period
- the period in seconds.public void setTimeRange(TradingTime startTime, TradingTime stopTime)
startTime
- start quote syncstopTime
- stop quote sync
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |