Package org.data2semantics.platform.core.data

Examples of org.data2semantics.platform.core.data.MultiInput


      {
        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


               
                // we are only coupling multi 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 ");
           
                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

         
          // we are only coupling multi inputs
          if(!(input(ciName) instanceof MultiInput))
            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()));
        }
       
        instantiateInputRec(nextUniverse,  depth+1);
View Full Code Here

      {
        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

            RawInput newInput = new RawInput(value, inputName, description,  inputType, this);
            multiInputRefs.add(newInput);
          }
        }
       
        inputs.put(inputName, new MultiInput(inputName, description, inputType, this, multiInputRefs));
      }
View Full Code Here

       
        List<RawInput> rawInputs = new ArrayList<RawInput>(values.size());
        for(Object value : values)
          rawInputs.add(new RawInput(value, name, description,  type, this));
       
        inputs.put(name, new MultiInput(name, description, type, this, rawInputs));
      }
View Full Code Here

TOP

Related Classes of org.data2semantics.platform.core.data.MultiInput

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.