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 Details

    • id

      public int id
      The id.
    • sourceDataId

      public int sourceDataId
      The source data id.
    • connection

      public String connection
      The connection.
    • symbol

      public String symbol
      The symbol.
    • originalSymbol

      public String originalSymbol
      The original symbol.
    • instrument

      public String instrument
      The instrument.
    • timeframe

      public String timeframe
      The timeframe.
    • filename

      public String filename
      The filename.
    • dateFrom

      public long dateFrom
      The date from.
    • dateTo

      public long dateTo
      The date to.
    • rows

      public int rows
      The rows.
    • secondsRecords

      public long secondsRecords
      The seconds records.
    • totalDays

      public int totalDays
      The total days.
    • barTimeType

      public int barTimeType
      The bar time type.
    • symbolInfo

      public InstrumentInfo symbolInfo
      The symbol info.
    • decimals

      public int decimals
      The decimals.
    • timezone

      public String timezone
      The timezone.
    • source

      public int source
      The source.
    • uSymbol

      public String uSymbol
      The u symbol.
    • uSymbolName

      public String uSymbolName
      The u symbol name.
    • removeWeekends

      public boolean removeWeekends
      The remove weekends.
    • show

      public boolean show
      The show.
    • dateFromStr

      public String dateFromStr
      The date from str.
    • dateToStr

      public String dateToStr
      The date to str.
    • basketId

      public int basketId
      The 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 interface com.strategyquant.lib.settings.IXMLAble
      Returns:
      the xml
    • setFromXML

      public void setFromXML(org.jdom2.Element element)
      Sets the from XML.
      Specified by:
      setFromXML in interface com.strategyquant.lib.settings.IXMLAble
      Parameters:
      element - the new from XML
    • clone

      public DataInfo clone()
      Clone.
      Returns:
      the data info
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string