Examples of MatchingResult


Examples of org.restlet.ext.jaxrs.internal.util.MatchingResult

    /**
     * Test method for
     * {@link org.restlet.ext.jaxrs.internal.util.PathRegExp#match(java.lang.String)} .
     */
    public void testMatchO21() {
        MatchingResult matchingResult = this.regExpOneSegment2
                .match(VALID_PATH_1_RP);
        assertNotNull(matchingResult);
        assertEquals("25478", matchingResult.getVariables().get(ID1));
        assertEquals("12345", matchingResult.getVariables().get(ID2));

        matchingResult = this.regExpOneSegment2.match(VALID_PATH_2_RP);
        assertNotNull(matchingResult);
        assertEquals("25478", matchingResult.getVariables().get(ID1));
        assertEquals("12345", matchingResult.getVariables().get(ID2));
        assertEquals(new RemainingPath(""), matchingResult
                .getFinalCapturingGroup());
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.util.MatchingResult

    /**
     * @param rest
     */
    private void tryWithRest(final String rest) {
        final MatchingResult matchingResult = this.regExpMultipleSegments2
                .match(new RemainingPath(VALID_PATH_2 + rest));
        assertNotNull(matchingResult);
        assertEquals("25478", matchingResult.getVariables().get(ID1));
        assertEquals("12345", matchingResult.getVariables().get(ID2));
        assertEquals(new RemainingPath(rest), matchingResult
                .getFinalCapturingGroup());
    }
View Full Code Here

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

Examples of owlsmx.data.MatchingResult

                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

Examples of owlsmx.data.MatchingResult

    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

Examples of owlsmx.data.MatchingResult

    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
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.