Changes between Version 4 and Version 5 of Internal/NewNodeAgent
- Timestamp:
- Sep 23, 2014, 10:13:43 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/NewNodeAgent
v4 v5 1 1 ''' Rebuilding the Node Agent from the ground up ''' 2 2 3 Dependencies: 4 omfcommon/Mobject3 ''' Dependencies: ''' 4 * omfcommon/Mobject 5 5 6 gems: 7 cocaine8 yaml?6 ''' gems: ''' 7 * cocaine 8 * yaml? 9 9 10 10 … … 13 13 14 14 '''kmodule.rb''' 15 ''' Interface: ''' 16 * new (private) 17 * instance - give you and instance of the object with checks to make sure the module name is unique 18 * load(private) - loads the module if needed and registers a reference to the class that requested the load 19 * unload - unloads module is conditions are met, and de-registers the unload requestor 20 * loaded? - preforms an actual check to see if module is loaded 21 15 22 Moving all the functionality of module handling into a separate class. There may be a need to have drivers load multiple modules. Additionally the module class needs to keep track of how many devices are using one module (as there may be many to one). The unload method should only unload if the last reference asks it to (all other references have de-registered). 16 23