}
def setValue(String value) {
- this.accelerationLatestValue = acceleration
println("the acceleration sensor with id:$id is triggered to $value!")
+ this.accelerationLatestValue = value
this.acceleration = value
this.currentAcceleration = value
this.states.add(value)