Examples of inputs()


Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

        int dependencyRank = ((ReferenceInput)input).reference().module().rank();
        rank = Math.max(rank, dependencyRank);
      }else
        if(input instanceof MultiInput){
          MultiInput mi = (MultiInput) input;
          for(Input i : mi.inputs()){
            if(i instanceof ReferenceInput){
              int dependencyRank = ((ReferenceInput)i).reference().module().rank();
              rank = Math.max(rank, dependencyRank);
            }
          }
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

                if(!(input(ciName) instanceof MultiInput))
                  throw new IllegalStateException(" can't couple non multiple inputs");
             
                MultiInput coupledMi = (MultiInput) input(ciName);
               
                if(coupledMi.inputs().size() != ((MultiInput)originInput).inputs().size())
                  throw new IllegalStateException("These multiple inputs have different length and can't be coupled");
               
                // Raw inputs can only be coupled with another reference input
                if(!(coupledMi.inputs().get(idx) instanceof ReferenceInput))
                  throw new IllegalStateException(" Reference can only be paired with another reference ");
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

               
                if(coupledMi.inputs().size() != ((MultiInput)originInput).inputs().size())
                  throw new IllegalStateException("These multiple inputs have different length and can't be coupled");
               
                // Raw inputs can only be coupled with another reference input
                if(!(coupledMi.inputs().get(idx) instanceof ReferenceInput))
                  throw new IllegalStateException(" Reference can only be paired with another reference ");
           
                ReferenceInput ri = (ReferenceInput) coupledMi.inputs().get(idx);
                if(!(ri.reference().module().equals(curMultiRefInput.reference().module())))
                  throw new IllegalStateException(" Reference can only be paired with another reference from the same module");
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

               
                // Raw inputs can only be coupled with another reference input
                if(!(coupledMi.inputs().get(idx) instanceof ReferenceInput))
                  throw new IllegalStateException(" Reference can only be paired with another reference ");
           
                ReferenceInput ri = (ReferenceInput) coupledMi.inputs().get(idx);
                if(!(ri.reference().module().equals(curMultiRefInput.reference().module())))
                  throw new IllegalStateException(" Reference can only be paired with another reference from the same module");
           
                // We are selecting next avlue from the same module instance
                InstanceOutput refIO = curModuleInstance.output(ri.reference().name());
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

            throw new IllegalStateException("Can't pair non multiple inputs");
         
          MultiInput mi = (MultiInput) input(ciName);
         
          // Raw inputs can only be coupled with another raw input
          if(!(mi.inputs().get(idx) instanceof RawInput))
            throw new IllegalStateException("Raw inputs can only be paired with another raw inputs ");
         
          RawInput ri = (RawInput) mi.inputs().get(idx);
         
          nextUniverse.put(mi, new InstanceInput(this, mi, ri.value()));
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

         
          // Raw inputs can only be coupled with another raw input
          if(!(mi.inputs().get(idx) instanceof RawInput))
            throw new IllegalStateException("Raw inputs can only be paired with another raw inputs ");
         
          RawInput ri = (RawInput) mi.inputs().get(idx);
         
          nextUniverse.put(mi, new InstanceInput(this, mi, ri.value()));
        }
       
        instantiateInputRec(nextUniverse,  depth+1);
View Full Code Here

Examples of org.data2semantics.platform.core.data.MultiInput.inputs()

        if(!((ReferenceInput)input).reference().module().finished())
          return false;
      } else
      if(input instanceof MultiInput){
        MultiInput mi = (MultiInput) input;
        for(Input i : mi.inputs()){
          if(i instanceof ReferenceInput){
            if(!((ReferenceInput)i).reference().module().finished())
              return false;
          }
        }
View Full Code Here

Examples of org.data2semantics.platform.domain.CommandLineDomain.inputs()

      final String expectedFirstDescription = "this is the first input";
      final String expectedProductDescription = "this is the product of the inputs";
      final String expectedCommandLine ="src/test/resources/commandLine/arith.bat";
     
      assertEquals(Arrays.asList(expectedOutputs), domain.outputs(SOURCE));
      assertEquals(Arrays.asList(expectedInputs), domain.inputs(SOURCE));
     
      assertEquals(expectedFirstDescription, domain.inputDescription(SOURCE, "first"));
      assertEquals(expectedProductDescription, domain.outputDescription(SOURCE, "product"));
     
      assertEquals( expectedCommandLine, domain.getCommand(SOURCE));
View Full Code Here

Examples of org.formulacompiler.spreadsheet.SpreadsheetByNameBinder.inputs()

    if (!areAnyNamesDefined()) {
      createCellNamesFromRowTitles();
    }
    SpreadsheetByNameBinder bn = getByNameBinder();
    bn.outputs().bindAllMethodsToNamedCells();
    bn.inputs().bindAllNamedCellsToMethods();
    // ---- bindAllByName
  }

  public void failIfByNameBindingLeftNamedCellsUnbound() throws CompilerException
  {
View Full Code Here

Examples of org.formulacompiler.spreadsheet.SpreadsheetByNameBinder.inputs()

    if (!areAnyNamesDefined()) {
      createCellNamesFromRowTitles();
    }
    SpreadsheetByNameBinder bn = getByNameBinder();
    bn.outputs().bindAllMethodsToPrefixedNamedCells( _outputPrefix );
    bn.inputs().bindAllPrefixedNamedCellsToMethods( _inputPrefix );
    // ---- bindAllByNamePrefixed
  }

  public void failIfByNameBindingLeftNamedCellsUnbound( String _inputPrefix, String _outputPrefix )
      throws CompilerException
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.