Package cysbml.mapping

Examples of cysbml.mapping.OneToManyMapping


  ///   MAPPINGS    ///
  public void createGlyphMappings(){
    if (layout.isSetListOfReactionGlyphs()){
      reactionToReactionGlyphMapping = createReactionGlyphMapping(layout.getListOfReactionGlyphs());
    } else {
      reactionToReactionGlyphMapping = new OneToManyMapping();
    }
   
    if (layout.isSetListOfSpeciesGlyphs()){
      speciesToSpeciesGlyphMapping = createSpeciesGlyphMapping(layout.getListOfSpeciesGlyphs());
    } else {
      speciesToSpeciesGlyphMapping = new OneToManyMapping();
    }
  }
View Full Code Here


      speciesToSpeciesGlyphMapping = new OneToManyMapping();
    }
  }
 
  public static OneToManyMapping createReactionGlyphMapping(ListOf<ReactionGlyph> listOfGlyphs){
    OneToManyMapping map = new OneToManyMapping();
    for (ReactionGlyph glyph : listOfGlyphs){
      if (glyph.isSetReaction()){
        map.put(glyph.getReaction(), glyph.getId());
      }
    }
    return map;
  }
View Full Code Here

    }
    return map;
  }
 
  public static OneToManyMapping createSpeciesGlyphMapping(ListOf<SpeciesGlyph> listOfGlyphs){
    OneToManyMapping map = new OneToManyMapping();
    for (SpeciesGlyph glyph : listOfGlyphs){
      if (glyph.isSetSpecies()){
        map.put(glyph.getSpecies(), glyph.getId());
      }
    }
    return map;
  }
View Full Code Here

      makeNetworkAndTreeChanges(selectedNodeIds, selectedNamedSBaseIds);
    }
  } 
 
  private List<String> getNodeIdsFromNamedSBaseIds(List<String> nsbIds){
    OneToManyMapping mapping = sbmlDocuments.getCurrentNSBToNodeMapping();
    return mapping.getValues(nsbIds);
  }
View Full Code Here

  private List<String> getNodeIdsFromNamedSBaseIds(List<String> nsbIds){
    OneToManyMapping mapping = sbmlDocuments.getCurrentNSBToNodeMapping();
    return mapping.getValues(nsbIds);
  }
  private List<String> getNamedSBaseIdsFromNodeIds(List<String> nodeIds){
    OneToManyMapping mapping = sbmlDocuments.getCurrentNodeToNSBMapping();
    return mapping.getValues(nodeIds);
  }
View Full Code Here

TOP

Related Classes of cysbml.mapping.OneToManyMapping

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.