Package org.data2semantics.platform.core.data

Examples of org.data2semantics.platform.core.data.ReferenceInput.reference()


            for (Input i : ((MultiInput) inp).inputs())
            {
              if (i instanceof ReferenceInput)
              {
                ReferenceInput ri = (ReferenceInput) i;
                result.append("\""+ri.reference().module().name()
                    + "\" ->" + module.name() + "[label=\""
                    + ri.reference().name() + "\"]");
              }
            }
          }
View Full Code Here


              if (i instanceof ReferenceInput)
              {
                ReferenceInput ri = (ReferenceInput) i;
                result.append("\""+ri.reference().module().name()
                    + "\" ->" + module.name() + "[label=\""
                    + ri.reference().name() + "\"]");
              }
            }
          }
        }
View Full Code Here

                // 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());
                nextValue = refIO.value();
View Full Code Here

                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());
                nextValue = refIO.value();
                //System.out.println("Assigning "+ri.reference().module().name()+"."+ri.reference().name()+" into "+name()+"."+coupledMi.name());
                nextUniverse.put(coupledMi, new InstanceInput(this, coupledMi, nextValue, refIO));
              }
            }
View Full Code Here

  private void handleReferenceInput(Map<Input, InstanceInput> universe, int depth,
      Input curInput, Input origin) {
   
    ReferenceInput ri = (ReferenceInput) curInput;
    List<ModuleInstance> parentInstances = ri.reference().module().instances();
   
     
    for(ModuleInstance mi : parentInstances){
   
      if(mi.withinUniverse(universe) ){
View Full Code Here

        for (Input inp : module.inputs())
        {
          if (inp instanceof ReferenceInput)
          {
            ReferenceInput ri = (ReferenceInput) inp;
            result.append("\""+ri.reference().module().name() + "\" -> \""
                + module.name() + "\" [label=\""
                + ri.reference().name() + "\"]");
          } else if (inp instanceof MultiInput)
          {
            for (Input i : ((MultiInput) inp).inputs())
View Full Code Here

          if (inp instanceof ReferenceInput)
          {
            ReferenceInput ri = (ReferenceInput) inp;
            result.append("\""+ri.reference().module().name() + "\" -> \""
                + module.name() + "\" [label=\""
                + ri.reference().name() + "\"]");
          } else if (inp instanceof MultiInput)
          {
            for (Input i : ((MultiInput) inp).inputs())
            {
              if (i instanceof ReferenceInput)
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.