universAAL / ontology

Collection of "official" ontologies of universAAL, which play the role of data model
13 stars 11 forks source link

Wrong properties in BloodPressure set/getters #459

Closed Alfiva closed 7 years ago

Alfiva commented 7 years ago

Originally Opened: @Alfiva (2015-01-23 09:27:30) Originally Closed: 2015-05-26 17:45:18

This was brought up in the forums:

the setter and getter methods for diastolic blood pressure have the systolic variable in them. That's why I kept getting Event object not set when trying to send my diastolic context events.

Here is the code snippit from BloodPressure.class:

public void setDias(Measurement m){

if(m != null){

    changeProperty(PROP_SYSTOLIC, m);

}

}

public Measurement getDias(){

return (Measurement) getProperty(PROP_SYSTOLIC);

}

EDIT1: BTW. I noticed some a minor typo in the same class when declaring the strings.

public static final String PROP_SYSTOLIC = HealthMeasurementOntology.NAMESPACE

        + "systolicBloodPreassure";

public static final String PROP_DIASTOLIC = HealthMeasurementOntology.NAMESPACE

        + "diatolicBloodPreassure";

--

From: this issue has been automatically imported from our old issue tracker

Alfiva commented 7 years ago

Original author: @Alfiva (2015-05-26 17:45:14)

Fixed in previous release. The "diatolic" will be fixed in the next one.

Alfiva commented 7 years ago

issue cloed on 2015-05-26 17:45:18