Package edu.isi.karma.modeling.alignment

Examples of edu.isi.karma.modeling.alignment.Alignment


  private void writeLinks(Workspace workspace, Worksheet worksheet, PrintWriter pw) {
   
    pw.println("| From | Property | To |");
    pw.println("|  --- | -------- | ---|");
   
    Alignment alignment = AlignmentManager.Instance().getAlignment(workspace.getId(), worksheet.getId());
    if(alignment != null) {
      DirectedWeightedMultigraph<Node, LabeledLink> alignmentGraph = alignment.getSteinerTree();
      if(alignmentGraph != null) {
        List<LabeledLink> links = Arrays.asList(alignmentGraph.edgeSet().toArray(new LabeledLink[0]));
        Collections.sort(links, new Comparator<LabeledLink>() {
          @Override
          public int compare(LabeledLink l1, LabeledLink l2) {
View Full Code Here


      final ArrayList<HashMap<String, String>> columnList, final String graphUrl) {
 
    HashMap<String, String> retVal = new HashMap<String, String>();
    Worksheet worksheet = workspace.getWorksheet(worksheetId);
    // Get the alignment for this Worksheet
    Alignment alignment = AlignmentManager.Instance().getAlignment(AlignmentManager.
        Instance().constructAlignmentId(workspace.getId(), worksheetId));

    if (alignment == null) {
      logger.info("Alignment is NULL for " + worksheetId);
      retVal.put("Error", "Please align the worksheet before generating CSV!");
View Full Code Here

      UpdateContainer update = executeCommand(commObject, saveToHistory);
      if(update != null)
        uc.append(update);
    }
   
    Alignment alignment = AlignmentManager.Instance().getAlignment(workspace.getId(), worksheetId);
    if(alignment != null)
      alignment.align();
   
    return uc;
  }
View Full Code Here

TOP

Related Classes of edu.isi.karma.modeling.alignment.Alignment

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.