Package com.strategyquant.datalib
Class DataInfo
java.lang.Object
com.strategyquant.datalib.DataInfo
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble,Serializable
public class DataInfo
extends Object
implements com.strategyquant.lib.settings.IXMLAble, Serializable
Data definition - holds settings of underlying data for a chart, for example data file name, number of records, etc.
It can be used to obtain InstrumentInfo (settings of an instrument) for given symbol.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe bar time type.intThe basket id.The connection.longThe date from.The date from str.longThe date to.The date to str.intThe decimals.longThe filename.intThe id.The instrument.The original symbol.booleanThe remove weekends.intThe rows.longThe seconds records.booleanThe show.intThe source.intThe source data id.The symbol.The symbol info.The timeframe.The timezone.intThe total days.The u symbol.The u symbol name. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
public int idThe id. -
sourceDataId
public int sourceDataIdThe source data id. -
connection
The connection. -
symbol
The symbol. -
originalSymbol
The original symbol. -
instrument
The instrument. -
timeframe
The timeframe. -
filename
The filename. -
dateFrom
public long dateFromThe date from. -
dateTo
public long dateToThe date to. -
rows
public int rowsThe rows. -
secondsRecords
public long secondsRecordsThe seconds records. -
totalDays
public int totalDaysThe total days. -
barTimeType
public int barTimeTypeThe bar time type. -
symbolInfo
The symbol info. -
decimals
public int decimalsThe decimals. -
timezone
The timezone. -
source
public int sourceThe source. -
uSymbol
The u symbol. -
uSymbolName
The u symbol name. -
removeWeekends
public boolean removeWeekendsThe remove weekends. -
show
public boolean showThe show. -
dateFromStr
The date from str. -
dateToStr
The date to str. -
basketId
public int basketIdThe basket id. -
fileHash
public long fileHash
-
-
Constructor Details
-
DataInfo
public DataInfo()
-
-
Method Details
-
getXML
public org.jdom2.Element getXML()Gets the xml.- Specified by:
getXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Returns:
- the xml
-
setFromXML
public void setFromXML(org.jdom2.Element element)Sets the from XML.- Specified by:
setFromXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Parameters:
element- the new from XML
-
clone
Clone.- Returns:
- the data info
-
toString
To string.
-