Examples of Value


Examples of org.destecs.core.simulationengine.script.values.Value

    if(val == null)
    {
      return null;
    }
   
    Value newValue = Value.valueOf(val);
    if (newValue == null)
    {
      interpreter.scriptError("Could not find variable: " + simulator
          + " " + node.getName());
    }
View Full Code Here

Examples of org.dmg.pmml31.ValueDocument.Value

        {
            OPTYPE.Enum optype = dataFields[i].getOptype();
            if (optype == OPTYPE.CATEGORICAL)
            {
                int countValue = histogram_values[i].size();
                Value value = dataFields[i].addNewValue();
                for(int j=0; j<countValue; j++)
                {
                    value.setValue(histogram_values[i].get(j).toString());
                    Extension ext = value.addNewExtension();
                    ext.setName("count");
                    ext.setValue(String.valueOf(histogram_frequency[i][j]));
                }
            }
        }       
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.Value

        if ( sfc.getConstraintValueType() == BaseSingleFieldConstraint.TYPE_LITERAL ) {
            final String operator = sfc.getOperator();
            final boolean isValueRequired = OperatorsOracle.isValueRequired( operator );
            if ( isValueRequired ) {
                final Value value = getValue( className,
                                              fieldName,
                                              model,
                                              dmo,
                                              messages,
                                              sfc.getValue() );
                if ( value != null ) {
                    node = new ConstraintNodeImpl( className,
                                                   fieldName,
                                                   operator,
                                                   value );
                }
            } else {
                node = new ConstraintNodeImpl( className,
                                               fieldName );
            }

        } else if ( sfc.getConstraintValueType() == BaseSingleFieldConstraint.TYPE_ENUM ) {
            final String operator = sfc.getOperator();
            final boolean isValueRequired = OperatorsOracle.isValueRequired( operator );
            if ( isValueRequired ) {
                final Value value = getValue( className,
                                              fieldName,
                                              model,
                                              dmo,
                                              messages,
                                              sfc.getValue() );
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Value

                            boolean isAuth = MetadataAuthorityManager.getManager().isAuthorityControlled(fieldKey);
                            if (isAuth)
                            {
                                mdValue.setAuthorityControlled();
                                mdValue.setAuthorityRequired(MetadataAuthorityManager.getManager().isAuthorityRequired(fieldKey));
                                Value authValue =  mdValue.setAuthorityValue((value.authority == null)?"":value.authority, Choices.getConfidenceText(value.confidence));
                                // add the "unlock" button to auth field
                                Button unlock = authValue.addButton("authority_unlock_"+index,"ds-authority-lock");
                                unlock.setHelp(T_unlock);
                            }
                            if (ChoiceAuthorityManager.getManager().isChoicesConfigured(fieldKey))
                            {
                                mdValue.setChoices(fieldKey);
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.ast.instructions.Value

        setHasError(true);
        addErrorMessage(EvaluationEngineMessages.ASTInstructionCompiler_unrecognized_postfix_operator____15
            + opToken);
        return false;
      }
      push(new Value(fCounter));
      push(new Dup());
      storeInstruction(); // dupe
      storeInstruction(); // value
      push(new DupX1());
      storeInstruction(); // dup_x1
View Full Code Here

Examples of org.ethereum.util.Value

      }
    }
  }

  private void getNode(byte[] node) {
    Value currentNode = this.trie.getCache().get(node);
    this.workNode(currentNode);
  }
View Full Code Here

Examples of org.exist.storage.btree.Value

                                            try {
                                                final long p = domDb.findValue( nodeRef );

                                                if( p != reader.getCurrentPosition() ) {
                                                    final Value v = domDb.get( p );

                                                    if( v == null ) {
                                                        return( new ErrorReport.IndexError( ErrorReport.DOM_INDEX, "Failed to access node " + nodeId + " through dom.dbx index. Wrong storage address. Expected: " + p + "; got: " + reader.getCurrentPosition() + " - ", doc.getDocId() ) );
                                                    }
                                                }
View Full Code Here

Examples of org.exolab.castor.tests.framework.testDescriptor.Value

        //-- the value object represents the arguments of the method if any
        if (values != null && values.length > 0) {
            argumentsClass = new Class[values.length];
            for (int i = 0; i < values.length; i++) {
                Value value = values[i];
                argumentsClass[i] = CTFUtils.getClass(value.getType(), _test.getClassLoader());
            }
        }
        return dataBinder.getMethod(methodName, argumentsClass);
    }
View Full Code Here

Examples of org.freehep.util.Value

        this.ros = os;
        initProperties(getDefaultProperties());

        this.filename = null;

        this.clipNumber = new Value().set(0);
    }
View Full Code Here

Examples of org.gdbms.engine.values.Value

   *
   * @throws SemanticException Si se produce un error sem�ntico
   * @throws DriverException Si se produce un error de I/O
   */
  public Value evaluate(long row) throws EvaluationException {
    Value ret = null;

    Adapter[] expr = (Adapter[]) getChilds();

    if (expr.length > 0) {
      ret = ((Expression) expr[0]).evaluateExpression(row);

      for (int i = 1; i < expr.length; i++) {
        try {
                    ret = ret.or(((Expression) expr[i]).evaluateExpression(row));
                } catch (IncompatibleTypesException e) {
                    throw new EvaluationException(e);
                }
      }
    }
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.