Package gri.tasks

Examples of gri.tasks.TaskDef.addOutput()


   
    public TaskDef getTaskDef() {
      TaskDef taskDef = new TaskDef();
      taskDef.addInput(new ParameterDef("x", Types.INTEGER));
      taskDef.addInput(new ParameterDef("y", Types.INTEGER));
      taskDef.addOutput(new ParameterDef("result", Types.INTEGER));
      return taskDef;
    }
   
  }
 
View Full Code Here


            for (int i=0; i<inputs.length; i++)
                def.addInput(inputs[i]);
           
            ParameterDef [] outputs = propertyDef.listOutputDefinitions();
            for (int i=0; i<outputs.length; i++)
                def.addOutput(outputs[i]);
        }
       
        //method
        ParameterDef [] params = targetMethodDef.getParameterDefs();
        for(int i=0; i<params.length; i++)
View Full Code Here

        for(int i=0; i<params.length; i++)
            def.addInput(params[i]);
           
        ParameterDef returnType = targetMethodDef.getReturnType();
        if (returnType != null)
            def.addOutput(returnType);
       
        return def;
    }
   
    // ----------------------------------------------------- Parameters
View Full Code Here

        TaskDef def = new TaskDef();
       
        for(int i=0; i<params.length; i++)
            def.addInput(params[i]);
        if (this.returnType != null)
            def.addOutput(returnType);
       
        return def;
    }
}
View Full Code Here

        Output output;
        for (int i=0; i<outputs.size(); i++) {
            output = (Output)outputs.get(i);
           
            ParameterDef taskOutput = convertOutput(output);
            def.addOutput(taskOutput);
        }
       
        return def;
    }
   
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.