Package org.netbeans.server.uihandler.statistics.CompilerErrorStatistics

Examples of org.netbeans.server.uihandler.statistics.CompilerErrorStatistics.DataBean


            //get the number of errors
            id = (String)rec.getParameters()[3];
            int numbErrors = Integer.parseInt(id);
           
            if(compiled){
                return new DataBean(1, end - start, 1, start, end, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0, EMPTY_BEAN);
            }else{
                return new DataBean(1, end - start, 0, start, end, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0, EMPTY_BEAN);
            }
           
        }else if("SODBEANS_COMPILER_ERROR".equals(rec.getMessage())){
            //get the type
            String type = (String)rec.getParameters()[0];
            DataBean.ErrorBean err;
            if(type.equals("Cannot find symbol - variable")){
                err= new DataBean.ErrorBean(1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Expected closure")){
                err = new DataBean.ErrorBean(1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Missing - return")){
                err = new DataBean.ErrorBean(1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot find symbol - method")){
                err = new DataBean.ErrorBean(1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Missing main method")){
                err = new DataBean.ErrorBean(1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Incompatible types")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Identifier expected")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot find symbol - class")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Missing - if")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Missing - then")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot find symbol - parent")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot find symbol - package")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Invalid operator")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Unreachable statements")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Already defined")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("End of file error")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Circular inheritance")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot inherit a from null")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot override a private method")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Ambiguous inheritance")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Invalid overriding return type")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Ambigous method call")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Ambiguous used package")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Class already defined")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0);
            }else if(type.equals("Invalid if expression")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0);
            }else if(type.equals("Mismatched class template")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0);
            }else if(type.equals("Cannot instantiate abstract class")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0);
            }else if(type.equals("Cannot instantiate 'me'")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0);
            }else if(type.equals("Cannot instantiate generic object")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0);
            }else if(type.equals("Invalid error type")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0);
            }else if(type.equals("Invalid return now")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0);
            }else if(type.equals("Method already defined")){
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0);
            }else{
                err = new DataBean.ErrorBean(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1);
            }
           
           
            return new DataBean(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,err);
        }else if("IDE_STARTUP".equals(rec.getMessage())){
            return new DataBean(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, EMPTY_BEAN);
        }else {
            DataBean EMPTY = new DataBean(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, EMPTY_BEAN);
            return EMPTY;
        }
    }
View Full Code Here


        }
    }

    @Override
    protected DataBean finishSessionUpload(String userId, int sessionNumber, boolean initialParse, DataBean d) {
        return new DataBean(d.getDebugActionCount(), d.getAvgCompileTime(), d.getNumberOfErrorFreeSessions(), d.getStartTime(), d.getEndTime(), d.getTenGroup(), d.getTwentyGroup(),
                d.getThirtyGroup(), d.getFourtyGroup(), d.getFiftyGroup(), d.getSixtyGroup(), d.getSeventyGroup(), d.getEightyGroup(), d.getNinetyGroup(), d.getOneHundredGroup(),
                d.getOneHundredTenGroup(), d.getOneHundredTwentyGroup(), d.getGreaterGroup(),0, d.getCompilerErrors());
    }
View Full Code Here

    }

    @Override
    protected DataBean join(DataBean one, DataBean two) {
        long timeBetweenCompile = two.getStartTime() - one.getEndTime();
        DataBean dataBean = null;
       
        ArrayList<Integer> list = new ArrayList<Integer>();
        DataBean.ErrorBean err =new DataBean.ErrorBean(one.getCompilerErrors().getTotal() + two.getCompilerErrors().getTotal(), one.getCompilerErrors().getVarDef() + two.getCompilerErrors().getVarDef(), one.getCompilerErrors().getClosure() + two.getCompilerErrors().getClosure(), one.getCompilerErrors().getRet() + two.getCompilerErrors().getRet(),
                    one.getCompilerErrors().getMethDef() + two.getCompilerErrors().getMethDef(), one.getCompilerErrors().getMissingMain() + two.getCompilerErrors().getMissingMain(), one.getCompilerErrors().getTypes() + two.getCompilerErrors().getTypes(), one.getCompilerErrors().getIdentExp() + two.getCompilerErrors().getIdentExp(),
                    one.getCompilerErrors().getExpClassType() + two.getCompilerErrors().getExpClassType(), one.getCompilerErrors().getMissingIf() + two.getCompilerErrors().getMissingIf(), one.getCompilerErrors().getMissingThen() + two.getCompilerErrors().getMissingThen(), one.getCompilerErrors().getMissingParent() + two.getCompilerErrors().getMissingParent(),
                    one.getCompilerErrors().getMissingPackage() + two.getCompilerErrors().getMissingPackage(), one.getCompilerErrors().getInvalidOp() + two.getCompilerErrors().getInvalidOp(), one.getCompilerErrors().getUnreachable() + two.getCompilerErrors().getUnreachable(), one.getCompilerErrors().getDuplicate() + two.getCompilerErrors().getDuplicate(), one.getCompilerErrors().getEof() + two.getCompilerErrors().getEof(),
                    one.getCompilerErrors().getCircularInh() + two.getCompilerErrors().getCircularInh(), one.getCompilerErrors().getInhNull() + two.getCompilerErrors().getInhNull(), one.getCompilerErrors().getOverridePrivate() + two.getCompilerErrors().getOverridePrivate(), one.getCompilerErrors().getAmbiguousInh() + two.getCompilerErrors().getAmbiguousInh(),
                    one.getCompilerErrors().getInvalidRet() + two.getCompilerErrors().getInvalidRet(), one.getCompilerErrors().getAmbiguousCall() + two.getCompilerErrors().getAmbiguousCall(), one.getCompilerErrors().getAmbiguousUse() + two.getCompilerErrors().getAmbiguousUse(), one.getCompilerErrors().getClassDup() + two.getCompilerErrors().getClassDup(),
                    one.getCompilerErrors().getIfExpr() + two.getCompilerErrors().getIfExpr(), one.getCompilerErrors().getTemplates() + two.getCompilerErrors().getTemplates(), one.getCompilerErrors().getInstAbstract() + two.getCompilerErrors().getInstAbstract(), one.getCompilerErrors().getInstMe() + two.getCompilerErrors().getInstMe(),
                    one.getCompilerErrors().getInstGeneric() + two.getCompilerErrors().getInstGeneric(), one.getCompilerErrors().getInvalidError() + two.getCompilerErrors().getInvalidError(), one.getCompilerErrors().getInvalidReturn() + two.getCompilerErrors().getInvalidReturn(), one.getCompilerErrors().getMethodDup() + two.getCompilerErrors().getMethodDup(),
                    one.getCompilerErrors().getOther() + two.getCompilerErrors().getOther());
       
        if(two.isNewSession() == 1){
            dataBean = EMPTY;
        }else if(one.startTime > 0 && two.startTime == 0){
            dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    one.getStartTime() + two.getStartTime(), one.getStartTime() + two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
        }else{
            if(timeBetweenCompile == 0 || one.getEndTime() == 0){
                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);  
            } else if (timeBetweenCompile <= 10000) {
                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + 1, one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
            } else if (timeBetweenCompile <= 20000) {
                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + 1,
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
            }else if (timeBetweenCompile <= 30000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + 1, one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 40000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + 1, one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 50000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + 1,
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 60000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + 1, one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 70000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + 1, one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 80000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + 1,
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 90000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + 1, one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 100000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + 1, one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 110000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + 1,
                                    one.getOneHundredTwentyGroup() + two.getOneHundredTwentyGroup(), one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else if (timeBetweenCompile <= 120000){
                                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
                                    one.getSixtyGroup() + two.getSixtyGroup(), one.getSeventyGroup() + two.getSeventyGroup(), one.getEightyGroup() + two.getEightyGroup(),
                                    one.getNinetyGroup() + two.getNinetyGroup(), one.getOneHundredGroup() + two.getOneHundredGroup(), one.getOneHundredTenGroup() + two.getOneHundredTenGroup(),
                                    one.getOneHundredTwentyGroup() + 1, one.getGreaterGroup() + two.getGreaterGroup(),0,err);
               
            }else{
                dataBean = new DataBean(one.getDebugActionCount() + two.getDebugActionCount(),
                                    (one.getAvgCompileTime() + two.getAvgCompileTime())/2,
                                    one.getNumberOfErrorFreeSessions() + two.getNumberOfErrorFreeSessions(),
                                    two.getStartTime(), two.getEndTime(),
                                    one.getTenGroup() + two.getTenGroup(), one.getTwentyGroup() + two.getTwentyGroup(),
                                    one.getThirtyGroup() + two.getThirtyGroup(), one.getFourtyGroup() + two.getFourtyGroup(), one.getFiftyGroup() + two.getFiftyGroup(),
View Full Code Here

                pref.getInt("override_private_error", 0), pref.getInt("amb_inherit_error", 0), pref.getInt("invalid_ret_error", 0), pref.getInt("amb_call_error", 0),
                pref.getInt("amb_use_error", 0), pref.getInt("class_dup_error", 0), pref.getInt("if_expression_error", 0), pref.getInt("template_error", 0),
                pref.getInt("inst_abstract_error", 0), pref.getInt("inst_me_error", 0), pref.getInt("inst_generic_error", 0), pref.getInt("invalid_error", 0),
                pref.getInt("invalid_return_error", 0), pref.getInt("method_dup_error", 0), pref.getInt("other", 0));
       
        return new DataBean(pref.getInt("all_build", 0), pref.getLong("compile_time", 0), pref.getInt("error_free_sessions", 0),
                pref.getLong("start_time", 0), pref.getLong("end_time", 0), pref.getInt("tenGroup", 0), pref.getInt("twentyGroup", 0),
                pref.getInt("thirtyGroup", 0), pref.getInt("fourtyGroup", 0), pref.getInt("fiftyGroup", 0), pref.getInt("sixtyGroup", 0),
                pref.getInt("seventyGroup", 0), pref.getInt("eightyGroup", 0), pref.getInt("ninetyGroup", 0), pref.getInt("oneHundreadGroup", 0),
                pref.getInt("oneHundreadTenGroup", 0), pref.getInt("oneHundreadTwentyGroup", 0), pref.getInt("greaterGroup", 0), pref.getInt("newSession", 0), err);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.CompilerErrorStatistics.DataBean

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.