Package owlsmx.data

Examples of owlsmx.data.ServiceEntry


        }         
    }   
   
    public static String printServiceEntrySet(Set set) {
        Iterator iter = set.iterator();
        ServiceEntry entry;
        String result = "";
        while ( iter.hasNext() ){
            entry = (ServiceEntry) iter.next();
            result = result + "(" + entry.ID+"," + entry.degreeOfMatch +"," + entry.similarity +")" + " ";
        }
View Full Code Here


        }
    }
    */
    private static String getStringFromEntries(Set set) {
        String result="(";
        ServiceEntry entry;
        Iterator iter = set.iterator();
        while ( iter.hasNext() ){
            entry = (ServiceEntry) iter.next();
            result = result + entry.ID + ";" + entry.degreeOfMatch + ";" + entry.similarity + ";;";
        }
View Full Code Here

        String token;
        for (int i = 0; i<tokens.length; i++) {           
            token = tokens[i].trim();
            entryTokens = token.split(";");           
            if (entryTokens.length>=3) {
                result.add(new ServiceEntry((new Integer(entryTokens[0].trim())).intValue(), (new Integer(entryTokens[1].trim()).intValue()), (new Double(entryTokens[2].trim())).doubleValue()));
            }                   
        }
        return result;
    }
View Full Code Here

        return urilist;
    }
   
    public  static boolean setContainsService(ServiceEntry se, Set set) {
        Iterator iter = set.iterator();
        ServiceEntry entry;
        while(iter.hasNext()) {
            entry = (ServiceEntry) iter.next();
            if (entry.ID == se.ID)
                return true;
        }
View Full Code Here

        }
        return result;
    }
   
    public Set removeEntryFromSet(ServiceEntry entry1, Set set) {
        ServiceEntry tmpentry;
        TreeSet deleteSet = new TreeSet();
       
        Iterator iter = set.iterator();
        while(iter.hasNext()) {
            tmpentry=(ServiceEntry)iter.next();
View Full Code Here

        return set;
    }
   
    public static boolean existsEntryInSet(ServiceEntry entry1, Set set) {
        Iterator iter = set.iterator();
        ServiceEntry tmpentry;
        while(iter.hasNext()) {
            tmpentry=(ServiceEntry)iter.next();
            if (entry1.ID==tmpentry.ID)
                return true;
        }
View Full Code Here

TOP

Related Classes of owlsmx.data.ServiceEntry

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.