Package org.sbml.jsbml.ext.fbc

Examples of org.sbml.jsbml.ext.fbc.FBCSpeciesPlugin


  {
    logger.debug("processAttribute -> " + prefix + ":" + attributeName + " = " + value + " (" + contextObject.getClass().getName() + ")");

    if (contextObject instanceof Species) {
      Species species = (Species) contextObject;
      FBCSpeciesPlugin fbcSpecies = null;

      if (species.getExtension(FBCConstants.namespaceURI) != null) {
        fbcSpecies = (FBCSpeciesPlugin) species.getExtension(FBCConstants.namespaceURI);
      } else {
        fbcSpecies = new FBCSpeciesPlugin(species);
        species.addExtension(FBCConstants.namespaceURI, fbcSpecies);
      }

      contextObject = fbcSpecies;
    }
View Full Code Here


    if (sbase != null) {
      if (sbase instanceof Model) {
        return new FBCModelPlugin((Model) sbase);
      } else if (sbase instanceof Species) {
        return new FBCSpeciesPlugin((Species) sbase);
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.ext.fbc.FBCSpeciesPlugin

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.