Examples of Output


Examples of LONI.tree.module.Output

    String sinkPort = "";
    String sinkProcessor = "";
    Link source;
    Link sink;
    Parameter parameter = null;
    Output output = null;
    Format format;
    FileTypes fileTypes;
   

    for(DataLink d : datalinks){
      source = d.getSource();
      sourceLinkType = source.getLinkType();
      sourcePort = source.getPort();
      sourceProcessor = source.getProcessor();
     
      sink = d.getSink();
      sinkLinkType = sink.getLinkType();
      sinkPort = sink.getPort();
      sinkProcessor = sink.getProcessor();
     
     
      // Even if the Taverna port is a SOURCE, that will correspond to Output.class in LONI. It's weird, but you have to be careful. In side the Input of LONI, the dataModule actually contains <output>, not <input>!
      if(sinkPort == inputPortName){
        parameter = new Parameter();
        parameter.setId(dataModule.getId() +".Input");
        parameter.setName(inputPortName);
        parameter.setDescription("Input description");
        parameter.setRequired(true);
        parameter.setEnabled(true);
        parameter.setOrder(tavernaContext.getNextOrder());
        parameter.setLink("");
        parameter.setValues(new Values());
        // Create a new Format for parameter
        format = new Format();
        format.setType("File");
        format.setCardinality(1);
        format.setCardinalityBase("");
          format.setTransformationBase("");
         
        // Create and fill in file types for format
        fileTypes = new FileTypes();
        fileTypes.addFileType(new FileType(TavernaType, "", ""));
        format.setFileTypes(fileTypes);
       
        // Give parameter the newly created Format object
        parameter.setFileFormat(format);
       
        dataModule.addInput(parameter);
        break;
      }
      else if(sourcePort == inputPortName){
        output = new Output();
        output.setId(dataModule.getId() +".Output");
        output.setName(inputPortName);
        output.setDescription("Output description");
        output.setRequired(true);
        output.setEnabled(true);
        output.setOrder(tavernaContext.getNextOrder());
        output.setLink("");
        output.setValues(new Values());
        // Create a new Format for output
        output.setFormat(new Format());
        output.getFormat().setType("File");
        output.getFormat().setCardinality(1);
        output.getFormat().setCardinalityBase("");
        output.getFormat().setTransformationBase("");
       
        // Create and fill in file types for format
        output.getFormat().getFileTypes().addFileType(new FileType(TavernaType, "", ""))
       
        output.getValues().addValue(new Value("hi", "there"));
        dataModule.addOutput(output);
        break;
      }
    }
    return dataModule;
View Full Code Here

Examples of com.asakusafw.compiler.flow.ExternalIoDescriptionProcessor.Output

        for (Export model : exportGroup) {
            List<SourceInfo> sources = Lists.create();
            for (Source source : model.getResolvedSources()) {
                sources.add(source.getInputInfo());
            }
            outputs.add(new Output(model.getDescription(), sources));
        }
        IoContext context = new IoContext(inputs, outputs);
        return context;
    }
View Full Code Here

Examples of com.cfinkel.reports.wrappers.Output

        this.setCachedParameterMap(parameterMap);
        Map<String, List> reportData = this.report.runNewSearch(this);
        this.cachedData = new HashMap<String,List>();

        for (String outputName : this.report.getOutputs().keySet()) {
            Output output = this.report.getOutputs().get(outputName);
            OutputElement outputElement = output.getOutputElement();

            if (!outputElement.isValueList()) {
                // remove any adapter that may have been present from before:
                this.valueListAdapters.remove(outputName);
View Full Code Here

Examples of com.datasalt.pangool.tuplemr.NamedOutputsInterface.Output

    addNamedOutput(namedOutput, outputFormat, keyClass, valueClass, null);
  }

  public void addNamedOutput(String namedOutput, OutputFormat outputFormat, Class keyClass,
      Class valueClass, Map<String, String> specificContext) throws TupleMRException {
    namedOutputs.add(new Output(namedOutput, outputFormat, keyClass, valueClass, specificContext));
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Output

  public void write (Kryo kryo, Output output, Object object) {
    Deflater deflater = new Deflater(compressionLevel, noHeaders);
    OutputChunked outputChunked = new OutputChunked(output, 256);
    DeflaterOutputStream deflaterStream = new DeflaterOutputStream(outputChunked, deflater);
    Output deflaterOutput = new Output(deflaterStream, 256);
    kryo.writeObject(deflaterOutput, object, serializer);
    deflaterOutput.flush();
    try {
      deflaterStream.finish();
    } catch (IOException ex) {
      throw new KryoException(ex);
    }
View Full Code Here

Examples of com.google.api.services.prediction.model.Output

      throws IOException {
    Input input = new Input();
    InputInput inputInput = new InputInput();
    inputInput.setCsvInstance(Collections.<Object> singletonList(text));
    input.setInput(inputInput);
    Output output = prediction.trainedmodels().predict(MODEL_ID, input)
        .execute();
    System.out.println("Text: " + text);
    System.out.println("Predicted language: " + output.getOutputLabel());
  }
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.Output

    // Reducer<K,V,O>, Reducer<String, String, ReadingHistory>, so K=String, V=String,
    // O=ReadingHistory
    Reducer<String, String, ReadingHistory> reducer = new ReadingReducer();

    // Output<O,R>, Output<ReadingHistory>, so O=ReadingHistory, R=Void
    Output output = new DatastoreOutput();

    MapReduceSpecification<Entity, String, String, ReadingHistory, Object> mrspecs =
        new MapReduceSpecification.Builder<>(input, mapper, reducer, output)
            .setKeyMarshaller(Marshallers.getStringMarshaller())
            .setValueMarshaller(Marshallers.getStringMarshaller()).setNumReducers(reduceShardCount)
View Full Code Here

Examples of com.google.protobuf.ByteString.Output

            Builder _strat = ProtobufMessages.Header.StrategyIndex.newBuilder()
                                     .setId( entry.getValue().intValue() )
                                     .setName( entry.getKey().getClass().getName() );
            Context ctx = context.strategyContext.get( entry.getKey() );
            if( ctx != null ) {
                Output os = ByteString.newOutput();
                ctx.write( new DroolsObjectOutputStream( os ) );
                _strat.setData( os.toByteString() );
                os.close();
            }
            _header.addStrategy( _strat.build() );
        }
    }
View Full Code Here

Examples of com.neophob.sematrix.core.output.Output

   * @param applicationConfig
   * @throws IllegalArgumentException
   */
  public static Output getOutputDevice(Collector collector, ApplicationConfigurationHelper applicationConfig) throws IllegalArgumentException {
    OutputDeviceEnum outputDeviceEnum = applicationConfig.getOutputDevice();
    Output output = null;
    try {
      switch (outputDeviceEnum) {
      case PIXELINVADERS:
        output = new PixelInvadersSerialDevice(applicationConfig, collector.getNrOfScreens());
        break;
View Full Code Here

Examples of com.nr.ode.Output

    // Test StepperRoss
    System.out.println("Testing StepperRoss");

    y[0]=1.0; y[1]=1.0; y[2]=0.0;
    Output out=new Output(20);
    rhs_StepperRoss d = new rhs_StepperRoss();
    StepperRoss s = new StepperRoss();
    Odeint ode = new Odeint(y,x1,x2,atol,rtol,h1,hmin,out,d,s);
    ode.integrate();
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.