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 TypeFieldDescriptionint
The bar time type.int
The basket id.The connection.long
The date from.The date from str.long
The date to.The date to str.int
The decimals.long
The filename.int
The id.The instrument.The original symbol.boolean
The remove weekends.int
The rows.long
The seconds records.boolean
The show.int
The source.int
The source data id.The symbol.The symbol info.The timeframe.The timezone.int
The 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:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Returns:
- the xml
-
setFromXML
public void setFromXML(org.jdom2.Element element)Sets the from XML.- Specified by:
setFromXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Parameters:
element
- the new from XML
-
clone
Clone.- Returns:
- the data info
-
toString
To string.
-