Package systole.domain.analysis.results

Examples of systole.domain.analysis.results.ParameterCoord


        // previo a la linea superiro 30/11/11
        // posOfMaxFirstDerivative = this.obtainIntersectionDownTo(this.finalSignal.getSecondDerivative(), this.finalSignal.getFourthDerivative(), posOfMaxFirstDerivative);



        param.setInitPos(new ParameterCoord(this.k.multiply(new BigDecimal(posOfMaxFirstDerivative)), BigDecimal.ZERO));
        param.setEndPos(new ParameterCoord(this.k.multiply(new BigDecimal(posOfMaxFirstDerivative)), this.finalSignal.getFinalSegment().elementAt(posOfMaxFirstDerivative)));
        //param.setEndPos(new Float(this.posOfMax + posOfMaxFirstDerivative));       
        this.posOfIAR = posOfMaxFirstDerivative;
        return (param);
    }
View Full Code Here


        }

        ParameterAOD param = new ParameterAOD();

        this.posBeginigDiastole = firstMinInDiastole;
        param.setInitPos(new ParameterCoord(this.k.multiply(new BigDecimal(firstMinInDiastole)), this.finalSignal.getFinalSegment().get(firstMinInDiastole)));
        param.setEndPos(new ParameterCoord(this.k.multiply(new BigDecimal(posOfMaxInDiastole)), this.finalSignal.getFinalSegment().get(posOfMaxInDiastole)));

        return (param);
    }
View Full Code Here

        BigDecimal xPos = this.k.multiply(new BigDecimal(posOfFirstFifty));
        BigDecimal yPos = this.k.multiply(new BigDecimal(posOfNextFifty));

        ParameterAOS param = new ParameterAOS();

        param.setInitPos(new ParameterCoord(xPos, SignalAnalyzer.FIFTY));
        param.setEndPos(new ParameterCoord(yPos, SignalAnalyzer.FIFTY));

        return (param);
    }
View Full Code Here

     * @return time between OS and RS
     */
    private ParameterT calculateT() {
        ParameterT param = new ParameterT();
        // primer punto, toma el máximo (sistole)
        param.setInitPos(new ParameterCoord(this.k.multiply(new BigDecimal(this.posOfMax)), this.finalSignal.getFinalSegment().elementAt(this.posOfMax)));

        // segundo punto, toma el maximo de la segunda derivada entre la sistole y el RS
        int lastPoint = this.posOfMax + this.finalSignal.getSecondDerivative().getPosOfMax(this.posOfMax, this.posOfIAR);
        param.setEndPos(new ParameterCoord(this.k.multiply(new BigDecimal(lastPoint)), this.finalSignal.getFinalSegment().elementAt(lastPoint)));
        return (param);
    }
View Full Code Here

    }

    private void createLines() {

        if (this.paramModel.getDescription().equals(ParametersKind.AOD) || this.paramModel.getDescription().equals(ParametersKind.T)) {
            ParameterCoord start = this.paramModel.getInitPos();
            ParameterCoord end = this.paramModel.getEndPos();
            ParameterCoord aid = new ParameterCoord(end.getxCoord(), start.getyCoord());

            if (this.paramModel.getDescription().equals(ParametersKind.AOD)) {
                this.joinPath = createLineAnnotation(start, aid, this.dashedStroke);
                this.aidPath = createLineAnnotation(aid, end, this.solidStroke);
            } else {
View Full Code Here

        }
    }

    @Action
    public void updateAnalysisParameter() {
        ParameterCoord newStart = new ParameterCoord(new BigDecimal(this.txtXStartPoint.getText().replace(",", ".")), new BigDecimal(this.txtYStartPoint.getText().replace(",", ".")));
        ParameterCoord newEnd = new ParameterCoord(new BigDecimal(this.txtXEndPoint.getText().replace(",", ".")), new BigDecimal(this.txtYEndPoint.getText().replace(",", ".")));

        int modelRow = this.jTableParams.getSelectedRow();
        if (modelRow == -1) {
            return; //debiera de seleccionar una fila
        }
        switch (modelRow) {
            case SignalParamsModel.AOD_INDEX:
                this.analysisController.getResultsModel().updateAOD(newStart, newEnd);
                break;
            case SignalParamsModel.AOS_INDEX:
                // siempre es sobre la linea el 50%
                newStart.setyCoord(fifty);
                newEnd.setyCoord(fifty);
                this.analysisController.getResultsModel().updateAOS(newStart, newEnd);
                break;
            case SignalParamsModel.T_INDEX:
                this.analysisController.getResultsModel().updateT(newStart, newEnd);
                break;
            case SignalParamsModel.IAR_INDEX:
                // siempre p1.y=0 y p1.x=p2.x
                if (this.chkEndUseCurPoint.isSelected()) {
                    newStart.setxCoord(newEnd.getxCoord());
                }
                if (this.chkStartUseCurPoint.isSelected()) {
                    newEnd.setxCoord(newStart.getxCoord());
                    newEnd.setyCoord(newStart.getyCoord());
                    newStart.setyCoord(BigDecimal.ZERO);
                }
                this.analysisController.getResultsModel().updateIAR(newStart, newEnd);
                break;
        }
View Full Code Here

TOP

Related Classes of systole.domain.analysis.results.ParameterCoord

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.