Package org.data2semantics.platform.core.data

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


              }
                multiInputRefs.add(newInput);
               
          } else {
           
            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


        if(inputs.containsKey(name))
          throw new IllegalArgumentException("Module ("+name()+") already contains input with the given name ("+name+")");
       
        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

      public void addInput(String name, String description, Object value, DataType type, boolean print)
      {
        if(inputs.containsKey(name))
          throw new IllegalArgumentException("Module ("+name()+") already contains input with the given name ("+name+")");
       
        inputs.put(name, new RawInput(value,  name, description,  type, this, print));
      }
View Full Code Here

         
          // 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

TOP

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

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.