Class OutOfSample

  • All Implemented Interfaces:
    com.strategyquant.lib.settings.IXMLAble, java.io.Serializable

    public class OutOfSample
    extends java.lang.Object
    implements com.strategyquant.lib.settings.IXMLAble, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • OutOfSample

        public OutOfSample()
    • Method Detail

      • addRange

        public void addRange​(org.jdom2.Element eRange)
      • addRange

        public void addRange​(long dateFrom,
                             long dateTo,
                             byte type)
      • getXML

        public org.jdom2.Element getXML()
        Specified by:
        getXML in interface com.strategyquant.lib.settings.IXMLAble
      • setFromXML

        public void setFromXML​(org.jdom2.Element element)
                        throws java.text.ParseException
        Specified by:
        setFromXML in interface com.strategyquant.lib.settings.IXMLAble
        Throws:
        java.text.ParseException
      • clear

        public void clear()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isEmpty

        public boolean isEmpty()
      • getDateFrom

        public long getDateFrom​(int index)
      • getDateTo

        public long getDateTo​(int index)
      • getSampleType

        public byte getSampleType​(int index)
      • setDateFrom

        public void setDateFrom​(int index,
                                long dateFrom)
      • setDateTo

        public void setDateTo​(int index,
                              long dateTo)
      • getRangesCount

        public int getRangesCount()
      • getSampleType

        public byte getSampleType​(Order order)
      • getISVPart

        public static byte getISVPart​(int i)
      • getOOSPart

        public static byte getOOSPart​(int i)
      • hasNoTrade

        public boolean hasNoTrade()
      • isNoTrade

        public boolean isNoTrade​(long time)
      • getPartType

        public byte getPartType​(int index)
      • getPartsCount

        public int getPartsCount​(byte sampleType)