Package org.sbml.jsbml

Examples of org.sbml.jsbml.Parameter


  @SuppressWarnings("deprecation")
  public static void main(String[] args) throws ParseException,
      XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(3, 1);
    Model model = doc.createModel("test_model");
    Parameter p = model.createParameter("p1");
    p.setValue(1d);
    Event e = model.createEvent("e1");
    Priority prior = e.createPriority();
    prior.setMath(new ASTNode(1));
    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
View Full Code Here


          }
        }
      }
      if (model.isSetListOfParameters()) {
        for (int i = 0; i < model.getNumParameters(); i++) {
          Parameter parameter = model.getParameter(i);
          if (parameter.isSetUnits()
              && !parameter.isSetUnitsInstance()) {
            log4jLogger.warn("No UnitDefinition matches the unitsID of parameter.");
          }
        }
      }
View Full Code Here

              return species;
            } else if (elementName.equals("parameter")
                && list.getSBaseListType().equals(
                    ListOf.Type.listOfParameters)) {
              Parameter parameter = (Parameter) newContextObject;
              parameter.initDefaults();
              model.addParameter(parameter);

              return parameter;
            } else if (elementName.equals("initialAssignment")
                && list.getSBaseListType().equals(
View Full Code Here

   
    //Model libsbmlAdapterModel = libSBMLAdapterReader.readModel(libsbmlDoc.getModel());
   
    // System.out.println("nb global parameters = " + libsbmlDoc.getModel().getNumParameters());
   
    Parameter J18 = model.getParameter("J18");
   
    assertTrue(J18 != null);
    assertTrue(J18.getValue() == 0.6);
   
    Reaction pRB_synthesis = model.getReaction("pRB_synthesis");
   
    assertTrue(pRB_synthesis != null);
    System.out.println("pRB_synthesis additional annotation : " + pRB_synthesis.getAnnotation().getNonRDFannotation());
View Full Code Here

          setSpeciesCompartment(species, model);
        }
      }
      if (model.isSetListOfParameters()) {
        for (int i = 0; i < model.getNumParameters(); i++) {
          Parameter parameter = model.getParameter(i);

          setParameterUnits(parameter, model);
        }
      }
View Full Code Here

              return species;
            } else if (elementName.equals("parameter")
                && list.getSBaseListType().equals(
                    ListOf.Type.listOfParameters)) {
              Parameter parameter = (Parameter) newContextObject;
              model.addParameter(parameter);

              return parameter;
            } else if (elementName.equals("algebraicRule")
                && list.getSBaseListType().equals(
View Full Code Here

      String variableID = rule.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
View Full Code Here

      String variableID = eventAssignment.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
View Full Code Here

      String variableID = initialAssignment.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
View Full Code Here

      String variableID = rule.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.Parameter

Copyright © 2018 www.massapicom. 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.