Examples of SetValue


Examples of cascading.operation.function.SetValue

    Pipe pipe = new Pipe( "setvalue" );

    pipe = new Each( pipe, new Fields( "line" ), new RegexSplitter( new Fields( "num", "char" ), "\\s" ) );

    pipe = new Each( pipe, new SetValue( new Fields( "result" ), new RegexFilter( "[A-C]" ) ) );

    Flow flow = getPlatform().getFlowConnector().connect( source, sink, pipe );

    flow.complete();
View Full Code Here

Examples of com.asakusafw.testdriver.testing.operator.DependencyOperatorFactory.SetValue

    }

    @Override
    protected void describe() {
        DependencyOperatorFactory factory = new DependencyOperatorFactory();
        SetValue operator = factory.setValue(in);
        out.add(operator.out);
    }
View Full Code Here

Examples of com.asakusafw.testdriver.testing.operator.SimpleOperatorFactory.SetValue

    }

    @Override
    protected void describe() {
        SimpleOperatorFactory factory = new SimpleOperatorFactory();
        SetValue operator = factory.setValue(in, "?");
        out.add(operator.out);
    }
View Full Code Here

Examples of com.cxy.redisclient.integration.list.SetValue

    InsertList command = new InsertList(id, db, key, beforeAfter, pivot, value);
    command.execute();
  }
 
  public void setValue(int id, int db, String key, int index, String value) {
    SetValue command = new SetValue(id, db, key, index, value);
    command.execute();
  }
View Full Code Here

Examples of com.j256.ormlite.stmt.query.SetValue

  public StatementBuilder<T, ID> updateColumnValue(String columnName, Object value) throws SQLException {
    FieldType fieldType = verifyColumnName(columnName);
    if (fieldType.isForeignCollection()) {
      throw new SQLException("Can't update foreign colletion field: " + columnName);
    }
    addUpdateColumnToList(columnName, new SetValue(columnName, fieldType, value));
    return this;
  }
View Full Code Here

Examples of com.j256.ormlite.stmt.query.SetValue

  public UpdateBuilder<T, ID> updateColumnValue(String columnName, Object value) throws SQLException {
    FieldType fieldType = verifyColumnName(columnName);
    if (fieldType.isForeignCollection()) {
      throw new SQLException("Can't update foreign colletion field: " + columnName);
    }
    addUpdateColumnToList(columnName, new SetValue(columnName, fieldType, value));
    return this;
  }
View Full Code Here

Examples of com.volantis.shared.metadata.value.SetValue

    public boolean equals(Object obj) {
        if (!(obj instanceof SetValue)) {
            return false;
        }

        SetValue other = (SetValue) obj;

        return contents.equals(other.getContentsAsSet());
    }
View Full Code Here

Examples of heart.alsvfd.SetValue

      weatherE.setAttributeName("weather");
      Value rainy = new SimpleSymbolic("rainy", null, 0.6f);
      weatherE.setValue(rainy);
     
      userProfileE.setAttributeName("user_profile");
      SetValue profile = new SetValue();
      Value[] prifleElements  = {
          new SimpleSymbolic("eating",null,0.6f),
          new SimpleSymbolic("culture",null,0.2f),
          new SimpleSymbolic("entertainment", null, 0.8f),
          new SimpleSymbolic("sightseeing",null,0.2f)
          };
      profile.setValues(Arrays.asList(prifleElements));
      userProfileE.setValue(profile);
     
      activityE.setAttributeName("activity");
      SimpleSymbolic walking = new SimpleSymbolic("walking",null,0.8f);
      activityE.setValue(walking);
View Full Code Here

Examples of heart.alsvfd.SetValue

        }else if(op.equals(Formulae.OP_EQ)){
          if(logicalValue == true){
            formulaCertainty = getMinCF(((SetValue)attributeValue).getValues());
          }
          else{
            SetValue diff = getDifference(at, v, wm);
            formulaCertainty = -sim(at,diff, wm);
          }
       
        }else if(op.equals(Formulae.OP_NEQ)){
          if(logicalValue == true){
            SetValue diff = getDifference(at, v, wm);
            formulaCertainty = sim(at,diff, wm);
          }
          else{
            formulaCertainty = -getMinCF(((SetValue)attributeValue).getValues());
          }
        }else if(op.equals(Formulae.OP_SUPSET)){
          if(logicalValue == true){
            //return the weakest chain element that makes it superset
            SetValue intersection = (SetValue) attributeValue.intersect( v,at.getType());
            formulaCertainty = getMinCF(intersection.getValues());
          }else{
            SetValue comp = getComplement(at, v, wm);
            SetValue intersect = (SetValue) attributeValue.intersect( comp,at.getType());
            // return  how the {Domain\value} is similar to the attribute value
            formulaCertainty = -sim(at,intersect, wm);
          }
        }else if(op.equals(Formulae.OP_SUBSET)){
          if(logicalValue == true){
            formulaCertainty = getMinCF(((SetValue)attributeValue).getValues());
          }else{
            SetValue comp = getComplement(at, v, wm);
            SetValue intersect = (SetValue) attributeValue.intersect( comp,at.getType());
            // return  how the {Domain\value} is similar to the attribute value
            formulaCertainty = -sim(at,intersect, wm);
          }
       
        }
View Full Code Here

Examples of heart.alsvfd.SetValue

 
  private static float sim(Attribute at, Value v, WorkingMemory wm) throws UnsupportedOperationException, NotInTheDomainException {
    Value attributeValue = wm.getAttributeValue(at);
    float formulaCertainty = 0;

      SetValue intersection = (SetValue) attributeValue.intersect(v, at.getType());
      if(!intersection.getValues().isEmpty()){
        List<Value> vals = intersection.getValues();
        float ci=intersection.getValues().get(0).getCertaintyFactor();
        for(int j=1; j < vals.size();j++){
          float cj = vals.get(j).getCertaintyFactor();
          if(ci >= 0 && cj >= 0){
            ci = ci+cj-ci*cj;
          }else if(ci < 0 && cj < 0){
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.