Examples of Recorder


Examples of cnslab.cnsnetwork.Recorder

        -1,
        stimulus1.getChannel ( ) );
     
      // TODO:  For prefix and suffix parsing, see Stimulus.background()
     
      final Recorder  recorder = experiment.recorder;
     
      assertNotNull ( recorder );
     
      assertFalse ( recorder.plot );
     
View Full Code Here

Examples of com.carma.swagger.doclet.Recorder

  }

  private void writeApis(Collection<ApiDeclaration> apis) throws IOException {
    List<ResourceListingAPI> resources = new LinkedList<ResourceListingAPI>();
    File outputDirectory = this.options.getOutputDirectory();
    Recorder recorder = this.options.getRecorder();
    for (ApiDeclaration api : apis) {
      String resourcePath = api.getResourcePath();
      if (!Strings.isNullOrEmpty(resourcePath)) {
        String resourceName = resourcePath.replaceFirst("/", "").replaceAll("/", "_").replaceAll("[\\{\\}]", "");
        resources.add(new ResourceListingAPI("/" + resourceName + ".{format}", api.getDescription()));
        File apiFile = new File(outputDirectory, resourceName + ".json");
        recorder.record(apiFile, api);
      }
    }

    // write out json for api
    ResourceListing listing = new ResourceListing(SWAGGER_VERSION, this.options.getApiVersion(), this.options.getDocBasePath(), resources,
        this.options.getApiAuthorizations(), this.options.getApiInfo());
    File docFile = new File(outputDirectory, "service.json");
    recorder.record(docFile, listing);

  }
View Full Code Here

Examples of com.carma.swagger.doclet.Recorder

  private void copyUi() throws IOException {
    File outputDirectory = this.options.getOutputDirectory();
    if (outputDirectory == null) {
      outputDirectory = new File(".");
    }
    Recorder recorder = this.options.getRecorder();
    String uiPath = this.options.getSwaggerUiPath();

    if (uiPath == null) {
      // default inbuilt zip
      copyZip(recorder, null, outputDirectory);
View Full Code Here

Examples of com.hypnoticocelot.jaxrs.doclet.Recorder

    private void writeApis(Collection<ApiDeclaration> apis) throws IOException {
        List<ResourceListingAPI> resources = new LinkedList<ResourceListingAPI>();
        File outputDirectory = options.getOutputDirectory();
        String swaggerUiZipPath = options.getSwaggerUiZipPath();
        Recorder recorder = options.getRecorder();
        for (ApiDeclaration api : apis) {
            String resourcePath = api.getResourcePath();
            if (!Strings.isNullOrEmpty(resourcePath)) {
                String resourceName = resourcePath.replaceFirst("/", "").replaceAll("/", "_").replaceAll("[\\{\\}]", "");
                resources.add(new ResourceListingAPI("/" + resourceName + ".{format}", ""));
                File apiFile = new File(outputDirectory, resourceName + ".json");
                recorder.record(apiFile, api);
            }
        }

        //write out json for api
        ResourceListing listing = new ResourceListing(options.getApiVersion(), options.getDocBasePath(), resources);
        File docFile = new File(outputDirectory, "service.json");
        recorder.record(docFile, listing);

        // Copy swagger-ui into the output directory.
        ZipInputStream swaggerZip;
        if (DocletOptions.DEFAULT_SWAGGER_UI_ZIP_PATH.equals(swaggerUiZipPath)) {
            swaggerZip = new ZipInputStream(ServiceDoclet.class.getResourceAsStream("/swagger-ui.zip"));
            System.out.println("Using default swagger-ui.zip file from SwaggerDoclet jar file");
        } else {
            if (new File(swaggerUiZipPath).exists()) {
                swaggerZip = new ZipInputStream(new FileInputStream(swaggerUiZipPath));
                System.out.println("Using swagger-ui.zip file from: " + swaggerUiZipPath);
            } else {
                File f = new File(".");
                System.out.println("SwaggerDoclet working directory: " + f.getAbsolutePath());
                System.out.println("-swaggerUiZipPath not set correct: " + swaggerUiZipPath);

                throw new RuntimeException("-swaggerUiZipPath not set correct, file not found: " + swaggerUiZipPath);
            }
        }
       
        ZipEntry entry = swaggerZip.getNextEntry();
        while (entry != null) {
            final File swaggerFile = new File(outputDirectory, entry.getName());
            if (entry.isDirectory()) {
                if (!swaggerFile.isDirectory() && !swaggerFile.mkdirs()) {
                    throw new RuntimeException("Unable to create directory: " + swaggerFile);
                }
            } else {
                recorder.record(swaggerFile, swaggerZip);
            }

            entry = swaggerZip.getNextEntry();
        }
        swaggerZip.close();
View Full Code Here

Examples of com.topologi.diffx.load.Recorder

      File xml1 = new File(args[args.length - 2]);
      File xml2 = new File(args[args.length - 1]);

      // loading
      long t0 = System.currentTimeMillis();
      Recorder recorder = getRecorder(args);
      EventSequence seq1 = recorder.process(xml1);
      EventSequence seq2 = recorder.process(xml2);
      long t1 = System.currentTimeMillis();
      if (profile) {
        System.err.println("Loaded files in "+(t1 - t0)+"ms");
      }
View Full Code Here

Examples of com.topologi.diffx.load.Recorder

   * @throws DiffXException Should a Diff-X exception occur.
   * @throws IOException    Should an I/O exception occur.
   */
  public static boolean equivalent(File xml1, File xml2)
      throws DiffXException, IOException {
    Recorder recorder = new SAXRecorder();
    EventSequence seq0 = recorder.process(xml1);
    EventSequence seq1 = recorder.process(xml2);
    return seq0.equals(seq1);
  }
View Full Code Here

Examples of de.fzi.herakles.commons.log.Recorder

    }
   
  }
 
  private void setTimeRecorder(){
    timeRecorder = new Recorder(timeLogFile);
    if(logger.isDebugEnabled()){
      logger.debug("time recorder is created!");
    }
    taskRecord = new Record();
    t1Record = new Record();
View Full Code Here

Examples of de.fzi.herakles.commons.log.Recorder

  private void setTimeRecorder() throws RemoteException{
    if(logger.isDebugEnabled()){
      logger.debug("creating time recorder!");
    }
    String name = this.getReasonerProperties().getProperty("name");
    timeRecorder = new Recorder("Herakles_Remote_" + name +"_"+owlReasoner.hashCode()+".csv");
    taskRecord = new Record();
    t3Record = new Record();
    t4Record = new Record();
    t5Record = new Record();
    t6Record = new Record();
View Full Code Here

Examples of games.stendhal.client.sound.system.processors.Recorder

            decoder.connectTo(mPropagator, true);
            mGenerator = decoder;
        }
        else
        {
            mRecorder = new Recorder();
            mRecorder.connectTo(decoder, false);

            while(mRecorder.request()) {
                /* pass */
            }
View Full Code Here

Examples of ij.plugin.frame.Recorder

    if (cal.calibrated())
      ip.setCalibrationTable(cal.getCTable());
    else
      ip.setCalibrationTable(null);
    if (Recorder.record) {
      Recorder recorder = Recorder.getInstance();
      if (recorder!=null) recorder.imageUpdated(this);
    }
    return ip;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.