Menu

#2 Clicking on Save settings zeros counters in sensormap

closed
nobody
5
2003-03-19
2003-01-24
Ian Duffy
No

If you click on "Save settings" in the file menu, and then
interact in any way with the sensormap, it will show a
zero alert count for each sensor. This is due to the fact
that the Sensors in the list have their alerts zeroed
before they are saved -- this is to prevent old alerts from
being serialized to file with the sensors. I need to write a
save method that does not zero the sensor alert
counters but does not save alerts to the sensor.cfg file. I
may need to change around the sensor class.

Discussion

  • Ian Duffy

    Ian Duffy - 2003-01-24
    • labels: --> Visualization
     
  • Ian Duffy

    Ian Duffy - 2003-03-19

    Logged In: YES
    user_id=529067

    This bug was closed on 3/18/2003. I had to write custom
    readObject and writeObject methods for the Sensor class to
    handle their serialization. Once this was done, it became
    unnecessary to zero the counters before saving the Sensor
    because the counter data was not serialized with the Sensor.
    Problem solved very elegantly. =)

     
  • Ian Duffy

    Ian Duffy - 2003-03-19
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB