Examples of addTreeNodeChangeListener()


Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

*/
public class ListenerTest implements TreeNodeChangeListener {

  public ListenerTest() {
    SBMLDocument doc = new SBMLDocument(2, 2);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("test_model");
    Parameter p1 = model.createParameter("p1");
    p1.setId("p2");
    model.removeParameter(p1);

View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

*/
public class SpeciesAnnotationTest extends SimpleTreeNodeChangeListener {

  public SpeciesAnnotationTest() throws XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("model_test");
    Species s1 = model.createSpecies("s1", model.createCompartment("c1"));
    s1.setMetaId("meta_" + s1.getId());
    // Not necessary anymore.
    // s1.getAnnotation().addRDFAnnotationNamespace("bqbiol", "",
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

   * @throws XMLStreamException
   * @throws SBMLException
   */
  public EventTest() throws ParseException, XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(3, 1);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("event_model");
    Compartment c = model.createCompartment("compartment");
    model.createSpecies("s1", c);
    model.createSpecies("s2", c);
    Event ev = model.createEvent();
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

        if (currentNode.getLocalPart().equals("sbml")) {

          SBMLDocument sbmlDocument = new SBMLDocument();

          // the output of the change listener is activated or not via log4j.properties
          sbmlDocument.addTreeNodeChangeListener(listener == null
              ? new SimpleTreeNodeChangeListener() : listener);

          for (@SuppressWarnings("unchecked")
              Iterator<Attribute> iterator = startElement.getAttributes(); iterator.hasNext();)
          {
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

   */
  public static void main(String[] args) throws XMLStreamException,
      SBMLException, ParseException {
       
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
    Model model = doc.createModel("test_model");
   
    Creator c = new Creator("Hans", "Wurst",
      "Institute for Interesting Biology", "ovidiu.radulescu@univ-rennes1.fr");
    History h = new History();
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

   * @throws XMLStreamException
   */
  public static void main(String[] args) throws XMLStreamException,
      SBMLException {
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
    Model model = doc.createModel("test_model");
   
    Parameter k1 = model.createParameter("k1");
    Parameter k2 = model.createParameter("k2");

View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

*/
public class SpeciesAnnotationTest extends SimpleTreeNodeChangeListener {

  public SpeciesAnnotationTest() throws XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("model_test");
    Species s1 = model.createSpecies("s1", model.createCompartment("c1"));
    s1.setMetaId("meta_" + s1.getId());
    // Not necessary anymore.
    // s1.getAnnotation().addRDFAnnotationNamespace("bqbiol", "",
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

        if (currentNode.getLocalPart().equals("sbml")) {

          SBMLDocument sbmlDocument = new SBMLDocument();

          // the output of the change listener is activated or not via log4j.properties
          sbmlDocument.addTreeNodeChangeListener(listener == null
            ? new SimpleTreeNodeChangeListener() : listener);

          for (@SuppressWarnings("unchecked")
              Iterator<Attribute> iterator = startElement.getAttributes(); iterator.hasNext();)
          {
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

   * @throws XMLStreamException
   * @throws SBMLException
   */
  public EventTest() throws ParseException, XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(3, 1);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("event_model");
    Compartment c = model.createCompartment("compartment");
    model.createSpecies("s1", c);
    model.createSpecies("s2", c);
    Event ev = model.createEvent();
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addTreeNodeChangeListener()

   * @throws XMLStreamException
   */
  public static void main(String[] args) throws XMLStreamException,
      SBMLException {
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
    Model model = doc.createModel("test_model");
   
    Parameter k1 = model.createParameter("k1");
    Parameter k2 = model.createParameter("k2");

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.