'use strict';

var EventEmitter = require('events').EventEmitter,
    util = require('util'),
    _ = require('lodash'),
    logger = require('log4js').getLogger('Network');

/*
 * Network
 */
function Network(networkName, options) {
  var props = this.properties = this.constructor.properties;

  if (networkName) {
    this.sensorNetwork = networkName;
  } else {
    if (props && props.sensorNetwork) {
      this.sensorNetwork = props.sensorNetwork;
    }
  }
  this.options = options;

  EventEmitter.call(this);
}

util.inherits(Network, EventEmitter);

Network.properties = {sensorNetwork: 'none'};

Network.prototype.discover = function (options, cb) {
  if (typeof options === 'function') {
    cb = options;
  }
  return cb && cb(new Error('NOT IMPLEMENTED'));
};

Network.prototype.getDevice = function (addr, options, cb) {
  if (typeof options === 'function') {
    cb = options;
  }
  return cb && cb(new Error('NOT IMPLEMENTED'));
};

Network.getLogger = function () {
  return logger;
};

Network.prototype.close = function () {};

Network.getStatus = function () {
  return undefined;
};

module.exports = Network;

@@ -575,16 +575,17 @@
 ties = %7B
+ 
 sensorNe
@@ -597,16 +597,17 @@
 : 'none'
+ 
 %7D;%0A%0ANetw
@@ -643,26 +643,116 @@
 tion
- (options, cb) %7B%0A 
+(driverOfModel, options, cb) %7B%0A  if (typeof driverOfModel === 'function') %7B%0A    cb = driverOfModel;%0A  %7D else
  if 
@@ -898,17 +898,16 @@
 function
- 
 (addr, o
@@ -1054,33 +1054,32 @@
 ogger = function
- 
 () %7B%0A  return lo
@@ -1118,25 +1118,24 @@
 e = function
- 
 () %7B%7D;%0A%0ANetw
@@ -1158,17 +1158,16 @@
 function
- 
 () %7B%0A  r

Modify the parameters of network.discover()