net.floodlightcontroller.devicemanager.internal
Class DeviceIterator

java.lang.Object
  extended by net.floodlightcontroller.util.FilterIterator<Device>
      extended by net.floodlightcontroller.devicemanager.internal.DeviceIterator
All Implemented Interfaces:
java.util.Iterator<Device>

public class DeviceIterator
extends FilterIterator<Device>

An iterator for handling device queries


Field Summary
 
Fields inherited from class net.floodlightcontroller.util.FilterIterator
next, subIterator
 
Constructor Summary
DeviceIterator(java.util.Iterator<Device> subIterator, IEntityClass[] entityClasses, java.lang.Long macAddress, java.lang.Short vlan, java.lang.Integer ipv4Address, java.lang.Long switchDPID, java.lang.Integer switchPort)
          Construct a new device iterator over the key fields
 
Method Summary
protected  boolean matches(Device value)
          Check whether the given value should be returned by the filter
 
Methods inherited from class net.floodlightcontroller.util.FilterIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceIterator

public DeviceIterator(java.util.Iterator<Device> subIterator,
                      IEntityClass[] entityClasses,
                      java.lang.Long macAddress,
                      java.lang.Short vlan,
                      java.lang.Integer ipv4Address,
                      java.lang.Long switchDPID,
                      java.lang.Integer switchPort)
Construct a new device iterator over the key fields

Parameters:
subIterator - an iterator over the full data structure to scan
entityClasses - the entity classes to search for
macAddress - The MAC address
vlan - the VLAN
ipv4Address - the ipv4 address
switchDPID - the switch DPID
switchPort - the switch port
Method Detail

matches

protected boolean matches(Device value)
Description copied from class: FilterIterator
Check whether the given value should be returned by the filter

Specified by:
matches in class FilterIterator<Device>
Parameters:
value - the value to check
Returns:
true if the value should be included