@Test public void addDevice() { snmpController.addDevice(device.deviceId(), device); assertEquals("Controller should contain device", device, snmpController.getDevice(device.deviceId())); }
@Override public void addDevice(DeviceId did, SnmpDevice device) { snmpDeviceMap.put(did, device); }
DefaultSnmpController implements SnmpController { @Override public void addDevice(DeviceId did, SnmpDevice device) { snmpDeviceMap.put(did, device); } }
DefaultSnmpController implements SnmpController { @Override public void addDevice(DeviceId did, SnmpDevice device) { snmpDeviceMap.put(did, device); }  }
DefaultSnmpController implements SnmpController { @Override public void addDevice(DeviceId did, SnmpDevice device) { snmpDeviceMap.put(did, device); }  @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Override ISnmpSession getSession(DeviceId deviceId); @Override Collection<SnmpDevice> getDevices(); @Override SnmpDevice getDevice(DeviceId did); @Override void removeDevice(DeviceId did); @Override void addDevice(DeviceId did, SnmpDevice device); @Override DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId); }
DefaultSnmpController implements SnmpController { @Override public void addDevice(DeviceId did, SnmpDevice device) { snmpDeviceMap.put(did, device); }  @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Override ISnmpSession getSession(DeviceId deviceId); @Override Collection<SnmpDevice> getDevices(); @Override SnmpDevice getDevice(DeviceId did); @Override void removeDevice(DeviceId did); @Override void addDevice(DeviceId did, SnmpDevice device); @Override DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId);  }