Package cn.edu.zju.acm.onlinejudge.bean.enumeration

Examples of cn.edu.zju.acm.onlinejudge.bean.enumeration.Language


    criteria.setLanguages(Arrays.asList(new Object[] {language2}));       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(Arrays.asList(new Object[] {submission2}), submissions);   
           
    criteria.setLanguages(Arrays.asList(new Object[] {
        new Language(4, "x", "x", "x", "x")}));       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(new ArrayList(), submissions);
   
    criteria.setLanguages(new ArrayList());       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
View Full Code Here


                    this.logger.error("Invalid number of supported languages:" + n);
                    return;
                }
                for (int i = 0; i < n; ++i) {
                    int id = this.in.readInt();
                    Language language = LanguageManager.getLanguage(id);
                    if (language == null) {
                        this.logger.error("Invalid language id:" + id);
                        return;
                    }
                    this.supportedLanguages.add(language);
                    this.logger.info("Supported language:" + language.getName());
                }
                this.initialized = true;
                for (int i = 0; i < this.defaultNumberOfJudgeThreads; ++i) {
                    this.addJudgeThread();
                }
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.bean.enumeration.Language

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.