Examples of PairRelationActiveTO


Examples of org.ontospread.gui.to.PairRelationActiveTO

        }
        i=0;
        for (TableItem entry : relationsWeight.getItems()) {
          relationConceptsTOs[i++] = (new ScoredConceptTO(entry.getText(0),Double.parseDouble(entry.getText(1))));
        }
        result = new PairRelationActiveTO(activeConceptsTOs,relationConceptsTOs);
        shell.close();
        shell.dispose();
      }
    });
    okButton.setBounds(324, 486, 86, 23);
View Full Code Here

Examples of org.ontospread.gui.to.PairRelationActiveTO

          }
          Arrays.sort(concepts);
          sp.setInitialConceptsTOs(controller.getInitialConcepts());
          sp.setRelationsWeight(controller.getOntoSpreadProcess().getRelationWeight());
          sp.setActiveConcepts(createActiveConcepts());
          PairRelationActiveTO result = (PairRelationActiveTO) sp.open();
          if(result != null) updateInspector(result);
        } catch (ConceptNotFoundException e) {
          createErrorDialog(e);
        }

      }

      private void updateInspector(PairRelationActiveTO result) throws ConceptNotFoundException {
        controller.updateActiveConcepts(result.getActiveConceptsTOs());
        controller.updateRelationsWeight(result.getRelationConceptsTOs());
      }

      private List<ScoredConceptTO> createActiveConcepts() throws ConceptNotFoundException {
        List<ScoredConceptTO> actived = new LinkedList<ScoredConceptTO>();
        Map<String, Double> concepts = controller.current().getConcepts();
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.