test_class.file: jtss/src/test/java/ec/demetra/xml/sa/tramoseats/TramoSeatsXmlProcessorTest.java
test_class.identifier: TramoSeatsXmlProcessorTest
test_case.body: @Test
      public void testTramoRequests() {
  //        long t0 = System.currentTimeMillis();
          int N = 10;
          XmlTramoRequests requests = new XmlTramoRequests();
          for (int i = 0; i < N; ++i) {
              XmlTramoAtomicRequest cur = new XmlTramoAtomicRequest();
              cur.defaultSpecification = "TRfull";
              cur.series = new XmlTs();
              XmlTsData.MARSHALLER.marshal(Data.P, cur.series);
              cur.series.setName("P"+i);
              requests.getItems().add(cur);
          }
          //requests.getOutputFilter().add("arima.*");
          requests.getOutputFilter().add("likelihood.*");
          //requests.getOutputFilter().add("residuals.*");
          //requests.getOutputFilter().add("*_f");
          TramoSeatsXmlProcessor processor = new TramoSeatsXmlProcessor();
          XmlInformationSet rslt = processor.process(requests);
  //        long t1 = System.currentTimeMillis();
  //        System.out.println(t1 - t0);
  
          InformationSet all = rslt.create();
          for (int i = 0; i < N; ++i) {
              assertTrue(null != all.search("P" + i + ".likelihood.aic", Double.class));
          }
      }
test_case.class_method_signature: TramoSeatsXmlProcessorTest.testTramoRequests()
test_case.full_signature: @Test public void testTramoRequests()
test_case.identifier: testTramoRequests
test_case.invocations: marshal setName add getItems add getOutputFilter process create assertTrue search
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTramoRequests()
focal_class.declarator: DEF_SA = new String[]{"final.y", "final.t", "final.s", "final.i", "final.sa", "final.ycal", "final.y_f", "final.t_f", "final.s_f", "final.i_f", "final.sa_f"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] DEF_SA = new String[]{"final.y", "final.t", "final.s", "final.i", "final.sa", "final.ycal", "final.y_f", "final.t_f", "final.s_f", "final.i_f", "final.sa_f"};
focal_class.type: String[]
focal_class.var_name: DEF_SA
focal_class.file: jtss/src/main/java/ec/demetra/xml/sa/tramoseats/TramoSeatsXmlProcessor.java
focal_class.identifier: TramoSeatsXmlProcessor
focal_class.class_method_signature: TramoSeatsXmlProcessor.process(XmlTramoRequest request)
focal_class.full_signature: public XmlInformationSet process(XmlTramoRequest request)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (XmlTramoRequest request)
focal_class.return: XmlInformationSet
focal_class.signature: XmlInformationSet process(XmlTramoRequest request)
focal_class.class_method_signature: TramoSeatsXmlProcessor.process(XmlTramoSeatsRequest request)
focal_class.full_signature: public XmlInformationSet process(XmlTramoSeatsRequest request)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (XmlTramoSeatsRequest request)
focal_class.return: XmlInformationSet
focal_class.signature: XmlInformationSet process(XmlTramoSeatsRequest request)
focal_class.class_method_signature: TramoSeatsXmlProcessor.process(final XmlTramoRequests request)
focal_class.full_signature: public XmlInformationSet process(final XmlTramoRequests request)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (final XmlTramoRequests request)
focal_class.return: XmlInformationSet
focal_class.signature: XmlInformationSet process(final XmlTramoRequests request)
focal_class.class_method_signature: TramoSeatsXmlProcessor.process(XmlTramoSeatsRequests request)
focal_class.full_signature: public XmlInformationSet process(XmlTramoSeatsRequests request)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (XmlTramoSeatsRequests request)
focal_class.return: XmlInformationSet
focal_class.signature: XmlInformationSet process(XmlTramoSeatsRequests request)
focal_class.class_method_signature: TramoSeatsXmlProcessor.specification(XmlTramoAtomicRequest request)
focal_class.full_signature: public static TramoSpecification specification(XmlTramoAtomicRequest request)
focal_class.identifier: specification
focal_class.modifiers: public static
focal_class.parameters: (XmlTramoAtomicRequest request)
focal_class.return: TramoSpecification
focal_class.signature: TramoSpecification specification(XmlTramoAtomicRequest request)
focal_class.class_method_signature: TramoSeatsXmlProcessor.context(XmlProcessingContext ctx)
focal_class.full_signature: public static ProcessingContext context(XmlProcessingContext ctx)
focal_class.identifier: context
focal_class.modifiers: public static
focal_class.parameters: (XmlProcessingContext ctx)
focal_class.return: ProcessingContext
focal_class.signature: ProcessingContext context(XmlProcessingContext ctx)
focal_class.class_method_signature: TramoSeatsXmlProcessor.specification(XmlTramoSeatsAtomicRequest request)
focal_class.full_signature: public static TramoSeatsSpecification specification(XmlTramoSeatsAtomicRequest request)
focal_class.identifier: specification
focal_class.modifiers: public static
focal_class.parameters: (XmlTramoSeatsAtomicRequest request)
focal_class.return: TramoSeatsSpecification
focal_class.signature: TramoSeatsSpecification specification(XmlTramoSeatsAtomicRequest request)
focal_method.body: public XmlInformationSet process(XmlTramoRequest request) {
          // specification
          TramoSpecification spec = specification(request);
          Ts s = XmlTs.TS_UNMARSHALLER.unmarshal(request.series);
          if (s == null) {
              return null;
          }
          if (s.hasData() == TsStatus.Undefined) {
              s.load(TsInformationType.Data);
          }
          if (spec == null || s.getTsData() == null) {
              return null;
          }
          ProcessingContext ctx = context(request.context);
          IProcessing<TsData, PreprocessingModel> processing = TramoProcessingFactory.instance.generateProcessing(spec, ctx);
          PreprocessingModel model = processing.process(s.getTsData());
          TreeSet<String> set = new TreeSet<>();
          List<String> items = request.getOutputFilter();
          set.addAll(items);
          InformationSet info = InformationSetHelper.fromProcResults(model, set);
          XmlInformationSet xinfo = new XmlInformationSet();
          if (request.getFlat()) {
              xinfo.flatCopy(info);
          } else {
              xinfo.copy(info);
          }
          return xinfo;
      }
focal_method.class_method_signature: TramoSeatsXmlProcessor.process(XmlTramoRequest request)
focal_method.full_signature: public XmlInformationSet process(XmlTramoRequest request)
focal_method.identifier: process
focal_method.invocations: specification unmarshal hasData load getTsData context generateProcessing process getTsData getOutputFilter addAll fromProcResults getFlat flatCopy copy
focal_method.modifiers: public
focal_method.parameters: (XmlTramoRequest request)
focal_method.return: XmlInformationSet
focal_method.signature: XmlInformationSet process(XmlTramoRequest request)