Changes between Version 4 and Version 5 of Internal/NewNodeAgent


Ignore:
Timestamp:
Sep 23, 2014, 10:13:43 PM (10 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/NewNodeAgent

    v4 v5  
    11''' Rebuilding the Node Agent from the ground up '''
    22
    3 Dependencies:
    4 omfcommon/Mobject
     3''' Dependencies: '''
     4 * omfcommon/Mobject
    55
    6 gems:
    7 cocaine
    8 yaml?
     6''' gems: '''
     7 * cocaine
     8 * yaml?
    99
    1010
     
    1313
    1414'''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
    1522Moving 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).
    1623