Examples of Parameter


Examples of com.thinkgem.jeesite.common.persistence.Parameter

*/
@Repository
public class AreaDao extends BaseDao<Area> {
 
  public List<Area> findByParentIdsLike(String parentIds){
    return find("from Area where parentIds like :p1", new Parameter(parentIds));
  }
View Full Code Here

Examples of com.tinkerpop.blueprints.Parameter

    }

    public void testIndexParameters() throws Exception {
        final String directory = this.getWorkingDirectory();
        final Neo4jBatchGraph batch = new Neo4jBatchGraph(directory);
        Index<Vertex> index = batch.createIndex("testIdx", Vertex.class, new Parameter("analyzer", LowerCaseKeywordAnalyzer.class.getName()));
        Vertex a = batch.addVertex(null);
        a.setProperty("name", "marko");
        index.put("name", "marko", a);
        batch.flushIndices();
        batch.shutdown();
View Full Code Here

Examples of com.uic.ase.proj.xbn.jdlcode.Parameter

    int iCommas = 0;
    while(st.hasMoreTokens())  {
      String s = st.nextToken();
      if(!s.equals(","))  {
        Parameter p = new Parameter();
        if(s.endsWith("[]"))  {
          p.bArray = true;
          s = s.substring(0, (s.length() - 2));

          if(s.length() < 1)  {
View Full Code Here

Examples of com.vst.model.Parameter

                request.setAttribute("errormessage", bundle.getString("commonMistake"));
            }
        }


        Parameter parameter = new Parameter();
        // populate object with request parameters
        BeanUtils.populate(parameter, request.getParameterMap());

        List parameters = parameterManager.getParameters(parameter);
View Full Code Here

Examples of com.wordnik.swagger.model.Parameter

        commandExecutor.execute(commandList, parameterContext);

        Map<String, Object> result = parameterContext.getResult();

        if (!shouldExpand(methodParameter)) {
          Parameter parameter = new Parameter(
                  (String) result.get("name"),
                  toOption(result.get("description")),
                  toOption(result.get("defaultValue")),
                  (Boolean) result.get("required"),
                  (Boolean) result.get("allowMultiple"),
View Full Code Here

Examples of com.xmlcalabash.model.Parameter

        if (value == null && runtime.getAllowGeneralExpressions()) {
            parseParameterValueNode(impl, pnode);
            return;
        }

        Parameter p = new Parameter(step.getXProc(),pnode);
        String port = p.getPort();
        String name = pnode.getAttributeValue(_name);
        String ns = pnode.getAttributeValue(_namespace);

        QName pname = null;
        if (ns == null) {
            pname = new QName(name,pnode);
        } else {
            int pos = name.indexOf(":");
            if (pos > 0) {
                name = name.substring(pos);

                QName testNode = new QName(name,pnode);
                if (!ns.equals(testNode.getNamespaceURI())) {
                    throw XProcException.dynamicError(25);
                }

            }
            pname = new QName(ns,name);
        }

        if (XProcConstants.NS_XPROC.equals(pname.getNamespaceURI())) {
            throw XProcException.dynamicError(31);
        }

        p.setName(pname);

        for (XdmNode attr : new AxisNodes(pnode, Axis.ATTRIBUTE)) {
            QName aname = attr.getNodeName();
            if ("".equals(aname.getNamespaceURI())) {
                if (!aname.equals(_name) && !aname.equals(_namespace) && !aname.equals(_value)) {
View Full Code Here

Examples of de.bwaldvogel.liblinear.Parameter

      throw new LiblinearException("The liblinear bias value is not numerical value. ", e);
    }
  }

  public Parameter getLiblinearParameters() throws MaltChainedException {
    Parameter param = new Parameter(SolverType.MCSVM_CS, 0.1, 0.1);
    String type = liblinearOptions.get("s");
   
    if (type.equals("0")) {
      param.setSolverType(SolverType.L2R_LR);
    } else if (type.equals("1")) {
      param.setSolverType(SolverType.L2R_L2LOSS_SVC_DUAL);
    } else if (type.equals("2")) {
      param.setSolverType(SolverType.L2R_L2LOSS_SVC);
    } else if (type.equals("3")) {
      param.setSolverType(SolverType.L2R_L1LOSS_SVC_DUAL);
    } else if (type.equals("4")) {
      param.setSolverType(SolverType.MCSVM_CS);
    } else if (type.equals("5")) {
      param.setSolverType(SolverType.L1R_L2LOSS_SVC)
    } else if (type.equals("6")) {
      param.setSolverType(SolverType.L1R_LR)
    } else {
      throw new LiblinearException("The liblinear type (-s) is not an integer value between 0 and 4. ");
    }
    try {
      param.setC(Double.valueOf(liblinearOptions.get("c")).doubleValue());
    } catch (NumberFormatException e) {
      throw new LiblinearException("The liblinear cost (-c) value is not numerical value. ", e);
    }
    try {
      param.setEps(Double.valueOf(liblinearOptions.get("e")).doubleValue());
    } catch (NumberFormatException e) {
      throw new LiblinearException("The liblinear epsilon (-e) value is not numerical value. ", e);
    }
    return param;
  }
View Full Code Here

Examples of de.hwrberlin.it11.tsp.model.Parameter

  /**
   * Testet die einzelnen set-Methoden, indem ung�ltige Werte versucht werden zu setzen.
   */
  public void testParameter() {
    Parameter parameter = new Parameter();
    parameter.setAntCount(0);
    assertFalse(parameter.getAntCount() == 0);
    parameter.setEvaporationParameter(0);
    assertFalse(parameter.getEvaporationParameter() == 0);
    parameter.setInitialPheromonParameter(0);
    assertFalse(parameter.getInitialPheromonParameter() == 0);
    parameter.setIterationCount(0);
    assertFalse(parameter.getIterationCount() == 0);
    parameter.setLocalInformation(0);
    assertFalse(parameter.getLocalInformation() == 0);
    parameter.setMaximumTourLength(0);
    assertFalse(parameter.getMaximumTourLength() == 0);
    parameter.setPheromonParameter(0);
    assertFalse(parameter.getPheromonParameter() == 0);
    parameter.setPheromonUpdateParameter(0);
    assertFalse(parameter.getPheromonUpdateParameter() == 0);
    parameter.setZoomFactor(0);
    assertFalse(parameter.getZoomFactor() == 0);
  }
View Full Code Here

Examples of de.maramuse.soundcomp.process.StandardParameters.Parameter

    throw new IllegalArgumentException("Process "+name+" contains repeated parameter name "
      +val.getText());
    // TODO check for the right input type. We need a grammar definition for this!
    destinationTypes.put(nameCount, ValueType.STREAM);
    usedNames.add(val.getText());
    namedInputs.put(val.getText(), new Parameter(val.getText(), inputCount++));
    nameCount++;
  }
  // make all variables known to the rest of the process, and to the internal accounting
  if(variables!=null)
  for(ParserVal val:variables.inner){
    if(usedNames.contains(val.getText()))
    throw new IllegalArgumentException("Process "+name+" contains repeated variable name "
      +val.getText());
    Variable v=new Variable();
    v.setAbstractName(val.getText());
    containedVariables.put(val.getText(), v);
    subs.put(val.getText(), v);
    usedNames.add(val.getText());
    SourceStore sst=getAsSource(val.inner.get(0));
    v.setSource(0, sst.source, sst.sourceIndex);
  }
  /*
   * make all internal elements known to the internal accounting these may be process references and in the future
   * also inner process definitions
   */
  if(subprocesses!=null)
  for(ParserVal val:subprocesses.inner){
    NamedSource el;
    if(usedNames.contains(val.getText()))
    throw new IllegalArgumentException("Process "+name+" contains repeated element name "
      +val.getText());
    if(val instanceof ProcessRef){
    ProcessRef r=((ProcessRef)val);
    // TODO find the corresponding process, if it is not a primitive. Should be done during parsing?
    if(r.process==null){
      if(r.localName==null)
        throw new IllegalStateException("no process set for anonymous reference");
      throw new IllegalStateException("no process set for reference "+r.localName);
    }
    el=r.process.createTemplate();
    usedNames.add(r.localName);
    subprocessMap.put(val.getText(), (Process)el);
    subrefMap.put(val.getText(), r);
    subs.put(val.getText(), el);
    break; // do not insert it into subprocess map
    }
    // TODO: allow inner process definitions
    throw new IllegalArgumentException("Element "+val.getText()+" contained in element "
      +getText()
      +" is not of suitable type (must be process reference) in "+filename+", line "+line);
  }
  // TODO: now that we know all sub elements, iterate once again over them, and connect
  // their inputs. All connection counterparts, except for formulas, must be available now.
  // For formulas, anonymous subprocesses must be created on the fly and
  // get their inputs directly fed.
  for(String ename:subs.keySet()){
    // iterate over all subprocesses and subprocess references and connect their inputs
    NamedSource val=subs.get(ename);
    if(val instanceof ProcessRef){
     ProcessRef r=(ProcessRef)val;
     Process p=subprocessMap.get(r.localName);
     if(r.getInputAssignments()!=null)
        for(InputAssignment i:r.getInputAssignments().getAssignments()){
      // now for each input of the subprocess, check if there is an assignment
        if(i.getInputName()==null||i.getInputName().length()==0)
        continue;
      // first, get the destination index to which to connect to
      Parameter dest=p.namedInputs.get(i.getInputName());
      // then for each assignment, check if there is an input, and set the connection
      if(i.getFormula()==null){
        // this input of the sub element stays open, so ignore it
      }else{
        SourceStore sst=getAsSource(i.getFormula());
        p.setSource(dest.i, sst.source, sst.sourceIndex);
      }
        }
     }else if(val instanceof Process){
     throw new IllegalArgumentException("Found process "+val.getAbstractName()+" where a processreference was expected - nested process definitions not yet implemented");
     }else
    // don't expect that here.
     throw new IllegalArgumentException("Found symbol "+val.getAbstractName()+" where a processreference was expected");
   }
  // connect all variables to their value sources
  if(variables!=null)
  for(ParserVal val:variables.inner){
    Variable v=containedVariables.get(val.getText());
    SourceStore sst=getAsSource(val.inner.get(0));
    v.setSource(0, sst.source, sst.sourceIndex);
  }
  // after all internal elements are connected, fix the connections of the outputs.
  // here also, create anonymous subprocesses if applicable.
  for(ParserVal val:outputs.inner){
    if(usedNames.contains(val.getText()))
    throw new IllegalArgumentException("Process "+name+" contains repeated output name "
      +val.getText());
    namedOutputs.put(val.getText(), new Parameter(val.getText(), nameCount));
    // TODO will we ever have process definitions with outputs other than STREAM?
    sourceTypes.put(nameCount, ValueType.STREAM);
    sourceMap.put(nameCount, getAsSource(val));
    usedNames.add(val.getText());
    nameCount++;
View Full Code Here

Examples of descent.core.ddoc.DdocSection.Parameter

          }
          continue;
        }
       
        if (currentParameterName != null) {
          parameters.add(new Parameter(currentParameterName, currentParameterText.toString()));
          currentParameterText.setLength(0);
        }
       
        currentParameterName = line.substring(0, equalsIndex).trim();
        currentParameterText.append(line.substring(equalsIndex + 1).trim());
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.