Examples of Variable


Examples of LONI.tree.workflow.Variable

    String varName="GALAXY_DIR";
    String varDescription="directory of galaxy installation. Used to find galaxy scripts.";
    boolean secret = false;
    int order = 0;
    boolean required=true;
    mgroup.getVariables().addVariable(new Variable(varName, varDescription, required,
        secret, order, ConverterConfig.GALAXY_INPUT_DIR) );
   
    varName="OUTPUT_FILE_DIR";
    varDescription="directory of galaxy installation. Used to find galaxy scripts.";
    mgroup.getVariables().addVariable(new Variable(varName, varDescription, required,
        secret, order, ConverterConfig.GALAXY_OUTPUT_DIR) );
   
    /* Record environmental variable in context for future use*/
    /*TODO: Migrate these globals to some sort of configuration file*/
   
 
View Full Code Here

Examples of ai.domain.Variable

    Map<Variable, DI> result = new HashMap<Variable, DI>();
    // Map<Variable, DI> result = new HashMap<Variable, DI>();
    while (itemDescription.length() > 0) {
      Pair<Pair<String, DI>, String> res = getNextValue(itemDescription);
      String variableName = res.left.left;
      Variable var = match.getVariable(variableName);
      if (var == null)
        throw new RuntimeException("Unknown variable '" + variableName + "'");
      if (result.containsKey(var))
        throw new CommentParserException("Duplicate variable '%s'", variableName);
      DI value = res.left.right;
View Full Code Here

Examples of aima.core.logic.fol.parsing.ast.Variable

    }

    // Ensure reflexivity axiom is added to usable if using paramodulation.
    if (isUseParamodulation()) {
      // Reflexivity Axiom: x = x
      TermEquality reflexivityAxiom = new TermEquality(new Variable("x"),
          new Variable("x"));
      Clause reflexivityClause = new Clause();
      reflexivityClause.addLiteral(new Literal(reflexivityAxiom));
      reflexivityClause = KB.standardizeApart(reflexivityClause);
      reflexivityClause.setStandardizedApartCheckNotRequired();
      usable.add(reflexivityClause);
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.rrobot.model.task.Variable

          String _key = e.getKey();
          boolean _equals = _key.equals("groupId");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst = IterableExtensions.<Variable>findFirst(_variables, _function);
    final String groupId = _findFirst.getDefaultValue();
    EList<Variable> _variables_1 = file.getVariables();
    final Function1<Variable,Boolean> _function_1 = new Function1<Variable,Boolean>() {
        public Boolean apply(final Variable e) {
          String _key = e.getKey();
          boolean _equals = _key.equals("artifactId");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst_1 = IterableExtensions.<Variable>findFirst(_variables_1, _function_1);
    final String artifactId = _findFirst_1.getDefaultValue();
    EList<Variable> _variables_2 = file.getVariables();
    final Function1<Variable,Boolean> _function_2 = new Function1<Variable,Boolean>() {
        public Boolean apply(final Variable e) {
          String _key = e.getKey();
          boolean _equals = _key.equals("baseVersion");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst_2 = IterableExtensions.<Variable>findFirst(_variables_2, _function_2);
    String _defaultValue = _findFirst_2.getDefaultValue();
    final String version = MavenUtils.toPomVersion(_defaultValue);
    EList<Variable> _variables_3 = file.getVariables();
    final Function1<Variable,Boolean> _function_3 = new Function1<Variable,Boolean>() {
        public Boolean apply(final Variable e) {
          String _key = e.getKey();
          boolean _equals = _key.equals("name");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst_3 = IterableExtensions.<Variable>findFirst(_variables_3, _function_3);
    final String name = _findFirst_3.getDefaultValue();
    ArrayList<String> _arrayList = new ArrayList<String>();
    final ArrayList<String> modules = _arrayList;
    EList<Variable> _variables_4 = file.getVariables();
    final Function1<Variable,Boolean> _function_4 = new Function1<Variable,Boolean>() {
        public Boolean apply(final Variable e) {
          String _key = e.getKey();
          boolean _equals = _key.equals("modules");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst_4 = IterableExtensions.<Variable>findFirst(_variables_4, _function_4);
    String _defaultValue_1 = _findFirst_4.getDefaultValue();
    String[] _split = _defaultValue_1.split(";");
    final Procedure1<String> _function_5 = new Procedure1<String>() {
        public void apply(final String it) {
          modules.add(it);
        }
      };
    IterableExtensions.<String>forEach(((Iterable<String>)Conversions.doWrapArray(_split)), _function_5);
    ArrayList<Repository> _arrayList_1 = new ArrayList<Repository>();
    final ArrayList<Repository> repos = _arrayList_1;
    EList<Variable> _variables_5 = file.getVariables();
    final Function1<Variable,Boolean> _function_6 = new Function1<Variable,Boolean>() {
        public Boolean apply(final Variable e) {
          String _key = e.getKey();
          boolean _equals = _key.equals("repos");
          return Boolean.valueOf(_equals);
        }
      };
    Variable _findFirst_5 = IterableExtensions.<Variable>findFirst(_variables_5, _function_6);
    String _defaultValue_2 = _findFirst_5.getDefaultValue();
    String[] _split_1 = _defaultValue_2.split(";");
    final Function1<String,Repository> _function_7 = new Function1<String,Repository>() {
        public Repository apply(final String it) {
          int _indexOf = it.indexOf("@");
          String _substring = it.substring(0, _indexOf);
View Full Code Here

Examples of bsh.Variable

      //We cannot override getVariable because BeanShell use
      //getVariableImpl to resolve a variable recusrivly
      //
      //setVariable will callback this method,
      //so use _inGet to prevent dead loop
      Variable var = super.getVariableImpl(name, false);
      if (!_inGet && var == null) {
        _firstGet = true;
        Object v = getFromScope(name);
        if (v != UNDEFINED) {
      //Variable has no public/protected contructor, so we have to
View Full Code Here

Examples of ca.ucalgary.ispia.rebac.Variable

      return false;
    }
    if (!(obj instanceof Variable)){
      return false;
    }
    Variable other = (Variable) obj;
    if (variable == null){
      if (other.getVariable() != null){
        return false;    // False if contained proposition is null, and obj's proposition is not null
      }
    } else if (!(variable.equals(other.getVariable()))) {
      return false;      // False if proposition does not match
    }
    return true;
  }
View Full Code Here

Examples of captureplugin.drivers.defaultdriver.Variable

        return columnIndex != 0;
    }
   
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {

      Variable var;
     
      if (rowIndex >= mData.getVariables().size()) {
        var = new Variable();
        mData.getVariables().add(var);
        fireTableRowsInserted(mData.getVariables().size(), mData.getVariables().size());
      } else {
        var = (Variable) mData.getVariables().toArray()[rowIndex];
      }
     
      if (columnIndex == 1) {
        var.setDescription(aValue.toString());
      } else if (columnIndex == 2) {
        var.setValue(aValue.toString());
      }
     
      super.setValueAt(aValue, rowIndex, columnIndex);
    }
View Full Code Here

Examples of cc.mallet.grmm.types.Variable

  public static UndirectedGraph mdlToGraph (FactorGraph fg)
  {
    UndirectedGraph g = new SimpleGraph ();

    for (Iterator it = fg.variablesIterator (); it.hasNext ();) {
      Variable var = (Variable) it.next ();
      g.addVertex (var);
    }

    for (Iterator it = fg.factorsIterator (); it.hasNext ();) {
      Factor factor = (Factor) it.next ();
View Full Code Here

Examples of com.bazaarvoice.snitch.Variable

        assertEquals("{}", _output.toString());
    }

    @Test
    public void testIntegerVariable() throws IOException, ServletException {
        Variable v = defineVariable("integer", 1);

        _servlet.doGet(_request, _response);
        assertVariablesInJson(_output.toString(), v);
    }
View Full Code Here

Examples of com.codingcrayons.aspectfaces.annotation.registration.pointCut.properties.Variable

    double sevenPointTwo = 7.2;
    TestObject testObject = new TestObject();
    boolean bool = true;

    List<Variable> vars = new ArrayList<Variable>(7);
    vars.add(new Variable("person", person));
    vars.add(new Variable("test", test));
    vars.add(new Variable("instance", instance));
    vars.add(new Variable("six", six));
    vars.add(new Variable("sevenPointTwo", sevenPointTwo));
    vars.add(new Variable("testObject", testObject));
    vars.add(new Variable("bool", bool));

    AFContext variableContext = ELUtil.makeVariableContext(vars);
    AFContext extendedVariableContext = ELUtil.makeExtendedVariableContext(vars);

    return new Object[][]{
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.