test_class.file: jtstoolkit/src/test/java/ec/satoolkit/x11/CopyYearEndPointsTest.java
test_class.identifier: CopyYearEndPointsTest
test_case.body: @Test
      public void testProcess() {
          int N = 100, FREQ = 12;
          //int P=5;
          DataBlock in = new DataBlock(N);
          in.set(1);
          in.cumul();
          for (int P = 0; P < (N - FREQ) / 2; ++P) {
              DataBlock out = in.deepClone();
              CopyYearEndPoints cnp = new CopyYearEndPoints(P, FREQ);
              cnp.process(in, out);
              DataBlock beg = out.range(0, P + FREQ);
              DataBlock end = out.range(N - P - FREQ, N);
              for (int i = 0; i < P; ++i) {
                  assertTrue(beg.extract(i, -1, FREQ).isConstant());
                  assertTrue(end.extract(i, -1, FREQ).isConstant());
              }
          }
      }
test_case.class_method_signature: CopyYearEndPointsTest.testProcess()
test_case.full_signature: @Test public void testProcess()
test_case.identifier: testProcess
test_case.invocations: set cumul deepClone process range range assertTrue isConstant extract assertTrue isConstant extract
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcess()
focal_class.declarator: npoints
focal_class.modifier: private
focal_class.original_string: private int npoints, frequency;
focal_class.type: int
focal_class.var_name: npoints
focal_class.file: jtstoolkit/src/main/java/ec/satoolkit/x11/CopyYearEndPoints.java
focal_class.identifier: CopyYearEndPoints
focal_class.interfaces: implements IEndPointsProcessor
focal_class.class_method_signature: CopyYearEndPoints.CopyYearEndPoints(int npoints, int freq)
focal_class.full_signature: public  CopyYearEndPoints(int npoints, int freq)
focal_class.identifier: CopyYearEndPoints
focal_class.modifiers: public
focal_class.parameters: (int npoints, int freq)
focal_class.signature:  CopyYearEndPoints(int npoints, int freq)
focal_class.class_method_signature: CopyYearEndPoints.process(DataBlock in, DataBlock out)
focal_class.full_signature: @Override public void process(DataBlock in, DataBlock out)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (DataBlock in, DataBlock out)
focal_class.return: void
focal_class.signature: void process(DataBlock in, DataBlock out)
focal_method.body: @Override
      public void process(DataBlock in, DataBlock out) {
  	for (int i = npoints - 1, j = out.getLength() - npoints; i >= 0; --i, ++j) {
  	    out.set(i, out.get(i + frequency));
  	    out.set(j, out.get(j - frequency));
  	}
      }
focal_method.class_method_signature: CopyYearEndPoints.process(DataBlock in, DataBlock out)
focal_method.full_signature: @Override public void process(DataBlock in, DataBlock out)
focal_method.identifier: process
focal_method.invocations: getLength set get set get
focal_method.modifiers: @Override public
focal_method.parameters: (DataBlock in, DataBlock out)
focal_method.return: void
focal_method.signature: void process(DataBlock in, DataBlock out)