test_class.declarator: DATE_2001_01_10 = new GregorianCalendar(2001, Calendar.JANUARY, 10).getTime()
test_class.modifier: static final
test_class.original_string: static final Date DATE_2001_01_10 = new GregorianCalendar(2001, Calendar.JANUARY, 10).getTime();
test_class.type: Date
test_class.var_name: DATE_2001_01_10
test_class.declarator: DATE_2001_03_10 = new GregorianCalendar(2001, Calendar.MARCH, 10).getTime()
test_class.modifier: static final
test_class.original_string: static final Date DATE_2001_03_10 = new GregorianCalendar(2001, Calendar.MARCH, 10).getTime();
test_class.type: Date
test_class.var_name: DATE_2001_03_10
test_class.declarator: DAY_2001_01_10 = new Day(DATE_2001_01_10)
test_class.modifier: static final
test_class.original_string: static final Day DAY_2001_01_10 = new Day(DATE_2001_01_10);
test_class.type: Day
test_class.var_name: DAY_2001_01_10
test_class.declarator: DAY_2001_03_10 = new Day(DATE_2001_03_10)
test_class.modifier: static final
test_class.original_string: static final Day DAY_2001_03_10 = new Day(DATE_2001_03_10);
test_class.type: Day
test_class.var_name: DAY_2001_03_10
test_class.declarator: period_2001_03
test_class.original_string: TsPeriod period_2001_03;
test_class.type: TsPeriod
test_class.var_name: period_2001_03
test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/timeseries/simplets/TsPeriodTest.java
test_class.identifier: TsPeriodTest
test_case.body: @Test
      public void testMiddle() {
          Calendar cal = Calendar.getInstance();
  
          cal.setTime(period_2001_03.middle());
          assertEquals(2001, cal.get(Calendar.YEAR));
          assertEquals(Calendar.MARCH, cal.get(Calendar.MONTH));
          assertEquals(16, cal.get(Calendar.DAY_OF_MONTH));
          assertEquals(0, cal.get(Calendar.HOUR_OF_DAY));
          assertEquals(0, cal.get(Calendar.MINUTE));
          assertEquals(0, cal.get(Calendar.SECOND));
          assertEquals(0, cal.get(Calendar.MILLISECOND));
  
          cal.setTime(period_2001_03.plus(1).middle());
          assertEquals(2001, cal.get(Calendar.YEAR));
          assertEquals(Calendar.APRIL, cal.get(Calendar.MONTH));
          assertEquals(15, cal.get(Calendar.DAY_OF_MONTH));
          assertEquals(0, cal.get(Calendar.HOUR_OF_DAY));
          assertEquals(0, cal.get(Calendar.MINUTE));
          assertEquals(0, cal.get(Calendar.SECOND));
          assertEquals(0, cal.get(Calendar.MILLISECOND));
      }
test_case.class_method_signature: TsPeriodTest.testMiddle()
test_case.full_signature: @Test public void testMiddle()
test_case.identifier: testMiddle
test_case.invocations: getInstance setTime middle assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get setTime middle plus assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMiddle()
focal_class.declarator: serialVersionUID = 7847770315060071968L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 7847770315060071968L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: g_sm = {"jan", "feb", "mar", "apr", "may", "jun",
          "jul", "aug", "sep", "oct", "nov", "dec"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] g_sm = {"jan", "feb", "mar", "apr", "may", "jun",
          "jul", "aug", "sep", "oct", "nov", "dec"};
focal_class.type: String[]
focal_class.var_name: g_sm
focal_class.declarator: m_freq
focal_class.modifier: private final
focal_class.original_string: private final TsFrequency m_freq;
focal_class.type: TsFrequency
focal_class.var_name: m_freq
focal_class.declarator: m_id
focal_class.modifier: private
focal_class.original_string: private int m_id;
focal_class.type: int
focal_class.var_name: m_id
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/timeseries/simplets/TsPeriod.java
focal_class.identifier: TsPeriod
focal_class.interfaces: implements Serializable, Cloneable, IPeriod,
          Comparable<TsPeriod>
focal_class.class_method_signature: TsPeriod.formatPeriod(TsFrequency freq, int pos)
focal_class.full_signature: public static String formatPeriod(TsFrequency freq, int pos)
focal_class.identifier: formatPeriod
focal_class.modifiers: public static
focal_class.parameters: (TsFrequency freq, int pos)
focal_class.return: String
focal_class.signature: String formatPeriod(TsFrequency freq, int pos)
focal_class.class_method_signature: TsPeriod.formatShortPeriod(TsFrequency freq, int pos)
focal_class.full_signature: public static String formatShortPeriod(TsFrequency freq, int pos)
focal_class.identifier: formatShortPeriod
focal_class.modifiers: public static
focal_class.parameters: (TsFrequency freq, int pos)
focal_class.return: String
focal_class.signature: String formatShortPeriod(TsFrequency freq, int pos)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency)
focal_class.full_signature: public  TsPeriod(final TsFrequency frequency)
focal_class.identifier: TsPeriod
focal_class.modifiers: public
focal_class.parameters: (final TsFrequency frequency)
focal_class.signature:  TsPeriod(final TsFrequency frequency)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency, final Date date)
focal_class.full_signature: public  TsPeriod(final TsFrequency frequency, final Date date)
focal_class.identifier: TsPeriod
focal_class.modifiers: public
focal_class.parameters: (final TsFrequency frequency, final Date date)
focal_class.signature:  TsPeriod(final TsFrequency frequency, final Date date)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency, final Day day)
focal_class.full_signature: public  TsPeriod(final TsFrequency frequency, final Day day)
focal_class.identifier: TsPeriod
focal_class.modifiers: public
focal_class.parameters: (final TsFrequency frequency, final Day day)
focal_class.signature:  TsPeriod(final TsFrequency frequency, final Day day)
focal_class.class_method_signature: TsPeriod.year(int y)
focal_class.full_signature: public static TsPeriod year(int y)
focal_class.identifier: year
focal_class.modifiers: public static
focal_class.parameters: (int y)
focal_class.return: TsPeriod
focal_class.signature: TsPeriod year(int y)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency, final int id)
focal_class.full_signature:   TsPeriod(final TsFrequency frequency, final int id)
focal_class.identifier: TsPeriod
focal_class.parameters: (final TsFrequency frequency, final int id)
focal_class.signature:  TsPeriod(final TsFrequency frequency, final int id)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency, final int year,
              final int position)
focal_class.full_signature: public  TsPeriod(final TsFrequency frequency, final int year,
              final int position)
focal_class.identifier: TsPeriod
focal_class.modifiers: public
focal_class.parameters: (final TsFrequency frequency, final int year,
              final int position)
focal_class.signature:  TsPeriod(final TsFrequency frequency, final int year,
              final int position)
focal_class.class_method_signature: TsPeriod.TsPeriod(final TsFrequency frequency, final TsPeriod p)
focal_class.full_signature: public  TsPeriod(final TsFrequency frequency, final TsPeriod p)
focal_class.identifier: TsPeriod
focal_class.modifiers: public
focal_class.parameters: (final TsFrequency frequency, final TsPeriod p)
focal_class.signature:  TsPeriod(final TsFrequency frequency, final TsPeriod p)
focal_class.class_method_signature: TsPeriod.clone()
focal_class.full_signature: @Override public TsPeriod clone()
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TsPeriod
focal_class.signature: TsPeriod clone()
focal_class.class_method_signature: TsPeriod.compareTo(final TsPeriod other)
focal_class.full_signature: @Override public int compareTo(final TsPeriod other)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (final TsPeriod other)
focal_class.return: int
focal_class.signature: int compareTo(final TsPeriod other)
focal_class.class_method_signature: TsPeriod.contains(long timeInMillis)
focal_class.full_signature: private boolean contains(long timeInMillis)
focal_class.identifier: contains
focal_class.modifiers: private
focal_class.parameters: (long timeInMillis)
focal_class.return: boolean
focal_class.signature: boolean contains(long timeInMillis)
focal_class.class_method_signature: TsPeriod.contains(final Date dt)
focal_class.full_signature: @Override public boolean contains(final Date dt)
focal_class.identifier: contains
focal_class.modifiers: @Override public
focal_class.parameters: (final Date dt)
focal_class.return: boolean
focal_class.signature: boolean contains(final Date dt)
focal_class.class_method_signature: TsPeriod.contains(final Day day)
focal_class.full_signature: public boolean contains(final Day day)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (final Day day)
focal_class.return: boolean
focal_class.signature: boolean contains(final Day day)
focal_class.class_method_signature: TsPeriod.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: TsPeriod.equals(TsPeriod other)
focal_class.full_signature: public boolean equals(TsPeriod other)
focal_class.identifier: equals
focal_class.modifiers: public
focal_class.parameters: (TsPeriod other)
focal_class.return: boolean
focal_class.signature: boolean equals(TsPeriod other)
focal_class.class_method_signature: TsPeriod.firstday()
focal_class.full_signature: @Override public Day firstday()
focal_class.identifier: firstday
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Day
focal_class.signature: Day firstday()
focal_class.class_method_signature: TsPeriod.getFrequency()
focal_class.full_signature: public TsFrequency getFrequency()
focal_class.identifier: getFrequency
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TsFrequency
focal_class.signature: TsFrequency getFrequency()
focal_class.class_method_signature: TsPeriod.lastPeriod(TsFrequency freq)
focal_class.full_signature: public TsPeriod lastPeriod(TsFrequency freq)
focal_class.identifier: lastPeriod
focal_class.modifiers: public
focal_class.parameters: (TsFrequency freq)
focal_class.return: TsPeriod
focal_class.signature: TsPeriod lastPeriod(TsFrequency freq)
focal_class.class_method_signature: TsPeriod.firstPeriod(TsFrequency freq)
focal_class.full_signature: public TsPeriod firstPeriod(TsFrequency freq)
focal_class.identifier: firstPeriod
focal_class.modifiers: public
focal_class.parameters: (TsFrequency freq)
focal_class.return: TsPeriod
focal_class.signature: TsPeriod firstPeriod(TsFrequency freq)
focal_class.class_method_signature: TsPeriod.getPeriodString()
focal_class.full_signature: public String getPeriodString()
focal_class.identifier: getPeriodString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPeriodString()
focal_class.class_method_signature: TsPeriod.getPosition()
focal_class.full_signature: public int getPosition()
focal_class.identifier: getPosition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPosition()
focal_class.class_method_signature: TsPeriod.getYear()
focal_class.full_signature: public int getYear()
focal_class.identifier: getYear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getYear()
focal_class.class_method_signature: TsPeriod.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: TsPeriod.id()
focal_class.full_signature: public int id()
focal_class.identifier: id
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int id()
focal_class.class_method_signature: TsPeriod.calcId(final int freq, final int year, final int placeinyear)
focal_class.full_signature: static int calcId(final int freq, final int year, final int placeinyear)
focal_class.identifier: calcId
focal_class.modifiers: static
focal_class.parameters: (final int freq, final int year, final int placeinyear)
focal_class.return: int
focal_class.signature: int calcId(final int freq, final int year, final int placeinyear)
focal_class.class_method_signature: TsPeriod.isAfter(final Date date)
focal_class.full_signature: public boolean isAfter(final Date date)
focal_class.identifier: isAfter
focal_class.modifiers: public
focal_class.parameters: (final Date date)
focal_class.return: boolean
focal_class.signature: boolean isAfter(final Date date)
focal_class.class_method_signature: TsPeriod.isAfter(final Day day)
focal_class.full_signature: public boolean isAfter(final Day day)
focal_class.identifier: isAfter
focal_class.modifiers: public
focal_class.parameters: (final Day day)
focal_class.return: boolean
focal_class.signature: boolean isAfter(final Day day)
focal_class.class_method_signature: TsPeriod.isAfter(final TsPeriod rp)
focal_class.full_signature: public boolean isAfter(final TsPeriod rp)
focal_class.identifier: isAfter
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod rp)
focal_class.return: boolean
focal_class.signature: boolean isAfter(final TsPeriod rp)
focal_class.class_method_signature: TsPeriod.isBefore(final Date date)
focal_class.full_signature: public boolean isBefore(final Date date)
focal_class.identifier: isBefore
focal_class.modifiers: public
focal_class.parameters: (final Date date)
focal_class.return: boolean
focal_class.signature: boolean isBefore(final Date date)
focal_class.class_method_signature: TsPeriod.isBefore(final Day day)
focal_class.full_signature: public boolean isBefore(final Day day)
focal_class.identifier: isBefore
focal_class.modifiers: public
focal_class.parameters: (final Day day)
focal_class.return: boolean
focal_class.signature: boolean isBefore(final Day day)
focal_class.class_method_signature: TsPeriod.isBefore(final TsPeriod rp)
focal_class.full_signature: public boolean isBefore(final TsPeriod rp)
focal_class.identifier: isBefore
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod rp)
focal_class.return: boolean
focal_class.signature: boolean isBefore(final TsPeriod rp)
focal_class.class_method_signature: TsPeriod.isInside(final TsPeriod p)
focal_class.full_signature: public boolean isInside(final TsPeriod p)
focal_class.identifier: isInside
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod p)
focal_class.return: boolean
focal_class.signature: boolean isInside(final TsPeriod p)
focal_class.class_method_signature: TsPeriod.isNotAfter(final TsPeriod rp)
focal_class.full_signature: public boolean isNotAfter(final TsPeriod rp)
focal_class.identifier: isNotAfter
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod rp)
focal_class.return: boolean
focal_class.signature: boolean isNotAfter(final TsPeriod rp)
focal_class.class_method_signature: TsPeriod.isNotBefore(final TsPeriod rp)
focal_class.full_signature: public boolean isNotBefore(final TsPeriod rp)
focal_class.identifier: isNotBefore
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod rp)
focal_class.return: boolean
focal_class.signature: boolean isNotBefore(final TsPeriod rp)
focal_class.class_method_signature: TsPeriod.lastday()
focal_class.full_signature: @Override public Day lastday()
focal_class.identifier: lastday
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Day
focal_class.signature: Day lastday()
focal_class.class_method_signature: TsPeriod.middle()
focal_class.full_signature: public Date middle()
focal_class.identifier: middle
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date middle()
focal_class.class_method_signature: TsPeriod.minus(int nperiods)
focal_class.full_signature: public TsPeriod minus(int nperiods)
focal_class.identifier: minus
focal_class.modifiers: public
focal_class.parameters: (int nperiods)
focal_class.return: TsPeriod
focal_class.signature: TsPeriod minus(int nperiods)
focal_class.class_method_signature: TsPeriod.minus(final TsPeriod p)
focal_class.full_signature: public int minus(final TsPeriod p)
focal_class.identifier: minus
focal_class.modifiers: public
focal_class.parameters: (final TsPeriod p)
focal_class.return: int
focal_class.signature: int minus(final TsPeriod p)
focal_class.class_method_signature: TsPeriod.move(final int nperiods)
focal_class.full_signature: public void move(final int nperiods)
focal_class.identifier: move
focal_class.modifiers: public
focal_class.parameters: (final int nperiods)
focal_class.return: void
focal_class.signature: void move(final int nperiods)
focal_class.class_method_signature: TsPeriod.plus(int nperiods)
focal_class.full_signature: public TsPeriod plus(int nperiods)
focal_class.identifier: plus
focal_class.modifiers: public
focal_class.parameters: (int nperiods)
focal_class.return: TsPeriod
focal_class.signature: TsPeriod plus(int nperiods)
focal_class.class_method_signature: TsPeriod.set(long timeInMillis)
focal_class.full_signature: private void set(long timeInMillis)
focal_class.identifier: set
focal_class.modifiers: private
focal_class.parameters: (long timeInMillis)
focal_class.return: void
focal_class.signature: void set(long timeInMillis)
focal_class.class_method_signature: TsPeriod.set(final Date date)
focal_class.full_signature: public final void set(final Date date)
focal_class.identifier: set
focal_class.modifiers: public final
focal_class.parameters: (final Date date)
focal_class.return: void
focal_class.signature: void set(final Date date)
focal_class.class_method_signature: TsPeriod.set(final Day day)
focal_class.full_signature: public final void set(final Day day)
focal_class.identifier: set
focal_class.modifiers: public final
focal_class.parameters: (final Day day)
focal_class.return: void
focal_class.signature: void set(final Day day)
focal_class.class_method_signature: TsPeriod.set(int year, final int position)
focal_class.full_signature: public final void set(int year, final int position)
focal_class.identifier: set
focal_class.modifiers: public final
focal_class.parameters: (int year, final int position)
focal_class.return: void
focal_class.signature: void set(int year, final int position)
focal_class.class_method_signature: TsPeriod.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public Date middle() {
          int ifreq = m_freq.intValue();
          int c = 12 / ifreq;
          int y = getYear(), p = getPosition();
          return new Date(CalendarUtil.getInstance().calcMiddleInMillis(c, y, p));
      }
focal_method.class_method_signature: TsPeriod.middle()
focal_method.full_signature: public Date middle()
focal_method.identifier: middle
focal_method.invocations: intValue getYear getPosition calcMiddleInMillis getInstance
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Date
focal_method.signature: Date middle()