Changes between Version 8 and Version 9 of Internal/NewNodeAgent
- Timestamp:
- Nov 24, 2014, 10:54:17 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/NewNodeAgent
v8 v9 12 12 ''' Design Notes: ''' 13 13 14 '''kmodule.rb'''[[BR]] 14 ''' Lib:kmodule.rb ''' [[BR]] 15 ''' Class:kmodule ''' [[BR]] 15 16 ''' Interface: ''' 16 17 * new (private) 17 18 * instance - give you and instance of the object with checks to make sure the module name is unique 18 19 * mload(private) - loads the module if needed and registers a reference to the class that requested the load 19 * munload - unloads module is conditions are met, and de-registers the unload request or20 * munload - unloads module is conditions are met, and de-registers the unload requester 20 21 * loaded? - preforms an actual check to see if module is loaded 21 22 22 23 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). 23 24 24 ''' nodeagent.rb: '''[[BR]] 25 ''' Lib:nodeagent.rb: '''[[BR]] 26 ''' Class:nodeagent.rb: '''[[BR]] 25 27 ''' Interface ''' 26 28 * hwDiscover - … … 82 84 * connected?() 83 85 * connect_simple(ssid) 86 * connect_adhoc 87 * disconnect_simple 88 * disconnect_adhoc 84 89 * disconnect() 85 90 * checkStatus(retries = true)