NetworkElement.Type
Modifier and Type | Field and Description |
---|---|
protected DeviceInfo |
deviceInfo
Information about this device.
|
protected boolean |
isOnline
Indicates whether this device is online.
|
protected Set<URI> |
managementURIs
The set of URIs given by the supplier describing the mechanisms
through which this device is known.
|
Constructor and Description |
---|
DefaultDevice(Device device)
Copy constructor
Only need to static value the online value, info and uris to be saved
later.
|
DefaultDevice(DeviceId deviceId,
Set<URI> uris,
DeviceInfo info,
SupplierId supplierId)
Constructs a device object given information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addManagementURI(URI uri)
Add a management URI to the list of possible ways to communicate
with this device.
|
DataPathId |
dpid()
Returns the data path id for this device or null if the device is not an
OpenFlow datapath.
|
boolean |
equals(Object o) |
String |
getDeviceInfo(DeviceInfo devInfo)
Provides a stringified representation of this device's device info.
|
int |
hashCode() |
DeviceId |
id()
Returns the device ID for this device.
|
DeviceInfo |
info()
Set of information accrued about the device through the use of device
drivers.
|
boolean |
isOnline()
Indicates whether the device is presently online.
|
Set<URI> |
managementURIs()
Set of URIs that can be used to communicate with the device via
device drivers.
|
String |
name()
Returns the friendly name of the network element.
|
Device |
realizedBy()
Optional reference to a device that is used to realize this one.
|
void |
setName(String name) |
void |
setOnline(boolean state)
Indicates that the device is on or offline.
|
SupplierId |
supplierId()
Returns the id of the supplier that provided this model entity.
|
String |
toDebugString()
Provides a little more detailed information about this object.
|
String |
toString() |
NetworkElement.Type |
type()
Returns the network element type, e.g.
|
protected DeviceInfo deviceInfo
protected boolean isOnline
public DefaultDevice(DeviceId deviceId, Set<URI> uris, DeviceInfo info, SupplierId supplierId)
deviceId
- Device Iduris
- for communicating with the deviceinfo
- information about the devicesupplierId
- who created the deviceNullPointerException
- if there is no informationpublic DefaultDevice(Device device)
device
- to copypublic DeviceInfo info()
Device
public void setOnline(boolean state)
state
- on or offlinepublic boolean isOnline()
Device
public DataPathId dpid()
Device
public Device realizedBy()
Device
realizedBy
in interface Device
public boolean addManagementURI(URI uri)
uri
- to add to listpublic Set<URI> managementURIs()
Device
snmp://12312313/ of://dpid/
managementURIs
in interface Device
public String name()
NetworkElement
name
in interface NetworkElement
public void setName(String name)
public NetworkElement.Type type()
NetworkElement
type
in interface NetworkElement
public DeviceId id()
Device
id
in interface Device
id
in interface NetworkElement
public SupplierId supplierId()
Model
supplierId
in interface Model
public String getDeviceInfo(DeviceInfo devInfo)
devInfo
- info about the Devicepublic String toDebugString()
Copyright © 2015. All Rights Reserved.