Package systole.domain.signals

Examples of systole.domain.signals.RawSignal


    @Override
    protected Void doInBackground() {
        try {
            FilterSettings filtSet = new FilterSettings();
            filtSet.createDefault(this.parentControl.getAnalysis().getSignalFrequency().getFrequency().doubleValue());
            RawSignal rawSignal = this.parentControl.getAnalysis().getRawSignal();

            // primer grafico -> señal cruda
            XYChart rawSignalXYChart = new XYChart("Señal Original", "Muestras", "Amplitud (%)");
            rawSignalXYChart.setShowLegend(false);
            rawSignalXYChart.addSeries("Tren de Pulsos", rawSignal.getSegment().toDoubleArray(), 1);
            this.rawSignalChart = rawSignalXYChart.plot();

            this.segment = FilterProcessor.filterPulseWave(rawSignal.getSegment(), filtSet);

            // Si fue tomada invertida, la invierto
            if (rawSignal.isInverted()) {
                this.segment = this.segment.invert();
            }

            // segundo grafico -> señal invertida y filtrada
            this.filteredSignalModel = new XYChart("Señal Filtrada", "Muestras", "Amplitud (%)");
View Full Code Here


            Segment segment = null;
            try {
                segment = this.reader.readFile(file);
                if (segment != null) {
                    this.rawSignal = new RawSignal();
                    this.getRawSignal().setSegment(segment);
                    this.getRawSignal().setInverted(this.preview.getjChkInverted().isSelected());
                    this.preview.getjTxtFile().setText(this.file.getAbsolutePath());
                } else {
                    ErrorDialog.showError(this.preview, "Archivo no válido");
View Full Code Here

    @Override
    public RawSignal getRawSignalById(Integer id) throws ExceptionDAO {
        try {
            this.logger.logDebug("getting rawSignal instance");
            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            RawSignal instance = (RawSignal) currentSession.get(RawSignal.class, id);
            this.logger.logDebug("get rawSignal successfully");
            return instance;
        } catch (HibernateException e) {
            this.logger.logError("error on get rawSignal by id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener la Señal", e.fillInStackTrace());
View Full Code Here

    @Override
    public Object generateResult() {
        Analysis analisys = new Analysis();
        analisys.setMedic((Medic) this.results.get("medic"));
        RawSignal rawSignal = (RawSignal) this.results.get("rawSignal");
        rawSignal.setInverted((Boolean) this.results.get("inverted"));
        analisys.setRawSignal(rawSignal);
        analisys.setCreationDay((Date) this.results.get("date"));
        analisys.setFilePath((String) this.results.get("signal"));
        analisys.setSignalFrequency((SignalFrequency) this.results.get("period"));
        analisys.setFileName((String) this.results.get("filename"));
View Full Code Here

            FileReaderTXT reader = new FileReaderTXT();
            Segment segment = null;
            try {
                segment = reader.readFile(file);
                if (segment != null) {
                    this.rawSignal = new RawSignal();
                    this.getRawSignal().setSegment(segment);
                    this.jEdtFile.setText(this.file.getAbsolutePath());
                } else {
                    ErrorDialog.showError(this, "Archivo no válido");
                }
View Full Code Here

TOP

Related Classes of systole.domain.signals.RawSignal

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.