Package org.data2semantics.platform.core

Examples of org.data2semantics.platform.core.Workflow$ModuleComparator


  @Test
  public void testAdjacencyWorkflow() throws Exception {
   
    WorkflowParser parser = new WorkflowParser();
   
    Workflow workflow = parser.parseYAML("src/main/resources/adjacency.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
View Full Code Here


  }
 
  @Test
  public void testPairing() throws Exception {
   
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/Pairing.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    ExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    for(Module m : workflow.modules()){

      for(ModuleInstance mi :  m.instances()){
        System.out.println("Instance Input");
        for(InstanceInput io : mi.inputs())
          System.out.print("   " +io.name()+":"+io.value()+ " ");
        System.out.println("Instance Output");
        for(InstanceOutput io : mi.outputs())
            System.out.print("   " +io.name()+":"+io.value()+ " ");
      }
    }
   
       
   
    assertEquals(2, workflow.getModuleByName("A").instances().size());
    assertEquals(3, workflow.getModuleByName("B").instances().size());
    assertEquals(5, workflow.getModuleByName("C").instances().size());


         
  }
View Full Code Here

  @Test
  public void testFirstWorkflowWithRS() throws Exception {
    WorkflowParser parser = new WorkflowParser();
   
    Workflow workflowContainer = parser.parseYAML("src/test/resources/multi-modules.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
    Orchestrator platformOrchestrator = new Orchestrator(workflowContainer, localExecutionProfile, resourceSpace);
   
View Full Code Here


  @Test
  public void testIterators() throws Exception {
   
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/iterator-test.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    ExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    for(Module m : workflow.modules()){
      System.out.println("\nModule " + m.name());
     
      for(ModuleInstance mi :  m.instances()){
          for(InstanceOutput io : mi.outputs())
          System.out.print(io.name()+":"+io.value()+ " ");
View Full Code Here

  }
 
  @Test
  public void testAnAdder() throws Exception {
   
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/AnAdder.yaml");
   
   
    System.out.println("Check Workflow " +workflow);
   
    ResourceSpace resourceSpace = new ResourceSpace();
View Full Code Here

  }
 
  @Test
  public void testAMultiplier() throws Exception {
   
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/AMultiplier.yaml");
   
   
    System.out.println("Check Workflow " +workflow);
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
   
    platformOrchestrator.orchestrate();
   
    for(ModuleInstance mi :  workflow.modules().get(0).instances())
    for(InstanceOutput io : mi.outputs())
      System.out.print(io.value()+ " ");
   
   
  }
View Full Code Here

  }
 
  @Test
  public void testAList() throws Exception {
   
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/AListSum.yaml");
   
   
    System.out.println("Check Workflow " +workflow);
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
   
    platformOrchestrator.orchestrate();
   
    System.out.println(workflow.modules().get(0).instances().get(0).outputs().get(0).value());
   
   
  }
View Full Code Here

     
  }
 
  @Test
  public void testArithWorkflow() throws IOException{
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/commandLine/CLIAdder.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    ExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    for(Module m : workflow.modules()){
      System.out.println("\nModule " + m.name());
     
      for(ModuleInstance mi :  m.instances()){
          for(InstanceOutput io : mi.outputs())
          System.out.print(io.name()+":"+io.value()+ " ");
View Full Code Here

   
  }
 
  @Test
  public void testTemplateWorkflow() throws IOException{
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/commandLine/template.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    ExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    for(Module m : workflow.modules()){
      System.out.println("\nModule " + m.name());
     
      for(ModuleInstance mi :  m.instances()){
          for(InstanceOutput io : mi.outputs())
          System.out.print(io.name()+":"+io.value()+ " ");
View Full Code Here

    }
  }
 
  @Test
  public void testExtractExcel() throws IOException{
    Workflow workflow = WorkflowParser.parseYAML("src/test/resources/commandLine/excel.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
   
    ExecutionProfile localExecutionProfile = new LocalExecutionProfile();
   
    Orchestrator platformOrchestrator = new Orchestrator(workflow, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    for(Module m : workflow.modules()){
      System.out.println("\nModule " + m.name());
     
      for(ModuleInstance mi :  m.instances()){
          for(InstanceOutput io : mi.outputs())
          System.out.print(io.name()+":"+io.value()+ " ");
View Full Code Here

TOP

Related Classes of org.data2semantics.platform.core.Workflow$ModuleComparator

Copyright © 2018 www.massapicom. 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.