Examples of Variable


Examples of fr.norsys.mapper.console.mapping.Variable

    application.setConnectionName(connection.getName());
  }

  private void fillVariables(Application application, Vector variables) {
    for (Iterator it = variables.iterator(); it.hasNext();) {
      Variable v = (Variable) it.next();
      application
          .addVariable(new fr.norsys.mapper.console.model.Variable(v
              .getName(), v.getValue()));
    }
  }
View Full Code Here

Examples of fr.norsys.mapper.console.model.Variable

   * @param variable
   * @param variables
   * @return
   */
  private void add(Variable variable, Collection variables) {
    Variable v = null;
    try {
      v = (Variable) BeanUtils.cloneBean(variable);
    } catch (Exception e) {
    }
    v.setId(UIDGenerator.generateId());
    variables.add(v);
  }
View Full Code Here

Examples of httl.ast.Variable

        beforeOperator = false;
      } else if (msg.length() > 1 && msg.startsWith("@")) {
        parameterStack.push(new Constant(ClassUtils.forName(importPackages, msg.substring(1).trim()), false, token.getOffset()));
        beforeOperator = false;
      } else if (StringUtils.isNamed(msg) && ! "instanceof".equals(msg)) {
        parameterStack.push(new Variable(msg, getTokenOffset(token) ));
        beforeOperator = false;
      } else if ("(".equals(msg)) {
        operatorStack.push(Bracket.ROUND);
        beforeOperator = true;
      } else if (")".equals(msg)) {
View Full Code Here

Examples of javaff.data.strips.Variable

    a.name = this.name;

    Iterator pit = params.iterator();
    while (pit.hasNext())
    {
      Variable v = (Variable) pit.next();
      PDDLObject o = (PDDLObject) varMap.get(v);
      a.params.add(o);
    }
   
    varMap.put(duration, a.duration);
View Full Code Here

Examples of javassist.compiler.ast.Variable

/* 1232 */       String name = this.lex.getString();
/* 1233 */       Declarator decl = tbl.lookup(name);
/* 1234 */       if (decl == null) {
/* 1235 */         return new Member(name);
/*      */       }
/* 1237 */       return new Variable(name, decl);
/*      */     case 406:
/* 1239 */       return new StringL(this.lex.getString());
/*      */     case 328:
/* 1241 */       return parseNew(tbl);
/*      */     case 40:
View Full Code Here

Examples of jmathexpr.Variable

    }

    @Test
    public void linear() throws EquationSolveException {
        Equation abs = (Equation) new ExpressionParser().parse("|2x - 1| = 5");
        Variable x = abs.variable();
        System.out.printf("%s : %s = ?%n", abs, x);
       
        Set roots = abs.solve();
        System.out.printf("  %s = %s%n", x, roots);
       
View Full Code Here

Examples of jnr.ffi.Variable

        jnr.ffi.mapper.FromNativeType fromNativeType = typeMapper.getFromNativeType(signatureType, context);
        FromNativeConverter fromNativeConverter = fromNativeType != null ? fromNativeType.getFromNativeConverter() : null;
        jnr.ffi.mapper.ToNativeType toNativeType = typeMapper.getToNativeType(signatureType, context);
        ToNativeConverter toNativeConverter = toNativeType != null ? toNativeType.getToNativeConverter() : null;

        Variable variableAccessor = buildVariableAccessor(builder.getRuntime(), address, interfaceClass, javaType, annotations,
                toNativeConverter, fromNativeConverter, classLoader);
        SkinnyMethodAdapter mv = new SkinnyMethodAdapter(builder.getClassVisitor(), ACC_PUBLIC | ACC_FINAL,
                variableName, sig(Variable.class), null, null);
        mv.start();
        mv.aload(0);
View Full Code Here

Examples of jpl.Variable

import jpl.Variable;

public class TestSwiplJpl {
 
  public static boolean testExternalCallAst () {
    Variable N = new Variable("N");
    jpl.Integer One = new jpl.Integer(1);
    jpl.Integer Thirteen = new jpl.Integer(13);
    Query q = new Query(
        new Compound(";", new Term[]{
            new Compound("succ", new Term[] { Thirteen, N}),
View Full Code Here

Examples of juju.reattore.perfcap.var.Variable

    public void add(List ind, Results res)
        throws Exception {

        if (names.size() == 0) {
            for (Iterator i = ind.iterator(); i.hasNext();) {
                Variable var = (Variable)i.next();

                values.add(new ArrayList());
                names.add(var.getName());
            }
        }

        for (int i = 0; i < ind.size(); i++) {
            Variable var = (Variable)ind.get(i);
            List row = (List)values.get(i);

            Object value = var.getValue();
            if (row.contains(value) == false) {
                row.add(value);
            }
        }

        Map m = root;

        for (Iterator i = ind.iterator(); i.hasNext();) {
            Variable var = (Variable)i.next();

            if (i.hasNext()) {
                Map next = (Map)m.get(var.getValue());

                if (next == null) {
                    next = new LinkedHashMap();

                    m.put(var.getValue(), next);
                }
                m = next;
            }
            else {
                if (filter != null) {
                    m.put(var.getValue(), BeanUtils.getProperty(res, filter));
                }
                else {
                    m.put(var.getValue(), res);
                }
            }
        }
    }
View Full Code Here

Examples of kodkod.ast.Variable

        Formula f = exact ? Formula.TRUE : null;
        Decls d = null;
        Expression sum = null;
        while(n>0) {
           n--;
           Variable v = Variable.unary("");
           kodkod.ast.Decl dd = v.oneOf(a);
           if (d==null) d=dd; else d=dd.and(d);
           if (sum==null) sum=v; else { if (f!=null) f=v.intersection(sum).no().and(f); sum=v.union(sum); }
        }
        if (f!=null) return sum.eq(a).and(f).forSome(d); else return a.no().or(sum.eq(a).forSome(d));
    }
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.