Package owlsmx.data

Examples of owlsmx.data.MatchingResult


        Map.Entry me;
        Iterator iter = inputCandidates.entrySet().iterator();
        while (iter.hasNext()) {
            me = (Map.Entry) iter.next();
            inInfo=(ExtendedServiceInformation) me.getValue();
            result.add(new MatchingResult(inInfo , inInfo.unfoldedconcept, "") );
        }
      return result;
    }
View Full Code Here


                degree = ((DOM) output.get(ID));
                outInfo=degree.getBestDegree();
                if ( (inInfo.degreeOfMatch>outInfo.degreeOfMatch) ||
                   ( (inInfo.degreeOfMatch==outInfo.degreeOfMatch) &&
                     (inInfo.similarity<outInfo.similarity) ) )
                     result.add(new MatchingResult(inInfo , inInfo.unfoldedconcept, outInfo.unfoldedconcept) );
                else
                    result.add(new MatchingResult(outInfo , inInfo.unfoldedconcept, outInfo.unfoldedconcept) );
            }
        }
        return result;
    }
View Full Code Here

    protected SortedSet syntacticFilter(Service queryService, Vector queryInputs, Vector queryOutputs, SortedSet semanticResults) throws NotUnfoldableException, URISyntaxException, MatchingException {
        SortedSet result = new TreeSet();
        String  input = reason.unfoldURIs(queryInputs);
        String output = reason.unfoldURIs(queryOutputs);
        double sim_input, sim_output;       
        MatchingResult info;
        Iterator iter = semanticResults.iterator();       
         while(iter.hasNext()) {
             sim_input=0.0;
             sim_output=0.0;
            info = (MatchingResult) iter.next();
View Full Code Here

    public SortedSet matchRequest(URI profileURI) throws MatchingException{
        try {
        SortedSet Matchingresult = new TreeSet();
            SortedSet result = matcher.matchRequest(profileURI);
            Iterator iter = result.iterator();   
            MatchingResult entry;
            URI uri;
            while(iter.hasNext()) {
                entry =(MatchingResult)iter.next();
                if (advertisedServices.containsKey(new Integer(entry.serviceID))) {               
                  uri=new URI(((URI)advertisedServices.get(new Integer(entry.serviceID))).toString());           
View Full Code Here

TOP

Related Classes of owlsmx.data.MatchingResult

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.