public class DefaultDeviceInterfaceDescription extends java.lang.Object implements DeviceInterfaceDescription
DeviceInterfaceDescription.Mode
Constructor and Description |
---|
DefaultDeviceInterfaceDescription(java.lang.String name,
DeviceInterfaceDescription.Mode mode,
java.util.List<VlanId> vlans,
boolean isRateLimited,
short rateLimit)
Device interface description object constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isRateLimited()
Indicates whether a rate limit has been set on the interface.
|
DeviceInterfaceDescription.Mode |
mode()
Returns the operation mode of the interface.
|
java.lang.String |
name()
Returns the name of the interface.
|
short |
rateLimit()
Returns the rate limit set on the interface bandwidth.
|
java.util.List<VlanId> |
vlans()
Returns the VLAN-IDs configured for the interface.
|
public DefaultDeviceInterfaceDescription(java.lang.String name, DeviceInterfaceDescription.Mode mode, java.util.List<VlanId> vlans, boolean isRateLimited, short rateLimit)
name
- the name of the interfacemode
- the operation mode of the interfacevlans
- the vlan-id of the interface (none, one or multiple can be
specified based on if mode is normal, access or trunk).isRateLimited
- bandwidth limit application indicationrateLimit
- percentage of bandwidth limitpublic java.lang.String name()
name
in interface DeviceInterfaceDescription
public DeviceInterfaceDescription.Mode mode()
mode
in interface DeviceInterfaceDescription
public java.util.List<VlanId> vlans()
vlans
in interface DeviceInterfaceDescription
public boolean isRateLimited()
isRateLimited
in interface DeviceInterfaceDescription
public short rateLimit()
rateLimit
in interface DeviceInterfaceDescription
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object