Task #465

load models and their channels into memory and work on these objects

Added by Hans Cappelle over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:06/12/2012
Priority:NormalDue date:
Assignee:Hans Cappelle% Done:

100%

Category:RefactorSpent time:-
Target version:2.0 Multiple models

Description

only go back to db when model or property has been updated


Subtasks

Task #474: FrSkyServer.deleteModel needs to change currentModel if d...ClosedAndroid Dashboard Developers


Related issues

Related to Task #431: Refactor Database access - global accessible list of all ... New 05/09/2012

Associated revisions

Revision 431
Added by Hans Cappelle over 5 years ago

refs #465 referring to models in memory, refs #379 moving initAlarms to Model and closes #466 range issue with Model names

Revision 454
Added by Hans Cappelle over 5 years ago

refs #465 finished model management and config activity clean up and refactoring

Revision 455
Added by Hans Cappelle over 5 years ago

refs #465 same logic as models applied to channels config activity

Revision 457
Added by Hans Cappelle over 5 years ago

closes #474 making setCurrentModel(Model model):void static
refs #465 using the model Id as reference to models in map where possible (still ongoing, some methods still accept objects that could be updated elsewhere)
added single method for checking if current model is valid (=consistency)
removed use of Model1 == Model2 which is not guaranteed to work, implemented equals on Model instead (comparing IDs)

Revision 458
Added by Hans Cappelle over 5 years ago

refs #465 Server also updated to use only ModelId references to link to Model objects from the central ModelMap

Revision 459
Added by Hans Cappelle over 5 years ago

closes #465 updating methods in Channel and Model

History

#1 Updated by Hans Cappelle over 5 years ago

  • Category set to Refactor
  • Status changed from New to In Progress
  • Assignee set to Hans Cappelle

mostly done for Models, next is to check Channels

#2 Updated by Espen Solbu over 5 years ago

  • Target version set to 2.0 Multiple models

#3 Updated by Hans Cappelle over 5 years ago

Most of the work is done. At this time both Channel and Model Config Activity still hold a reference to a local object to work on. Even that local reference isn't really needed. The Model and Channel ID (primary types) are the only ones that are really needed locally. As long as these are available we can get the correct Model/Channel from server to work on.

#4 Updated by Hans Cappelle over 5 years ago

  • Status changed from In Progress to Closed

Applied in changeset r459.

Also available in: Atom PDF