public class PhysicalLink extends Link<PhysicalPort,PhysicalSwitch> implements Persistable, Comparable<PhysicalLink>
| Constructor and Description |
|---|
PhysicalLink(PhysicalPort srcPort,
PhysicalPort dstPort)
Instantiates a new physical link.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PhysicalLink o) |
Map<String,Object> |
getDBObject() |
Integer |
getLinkId() |
void |
setLinkId(Integer id) |
void |
unregister()
Removes mappings and dependencies related to this link.
|
equals, getDBIndex, getDBKey, getDBName, getDstPort, getDstSwitch, getMetric, getSrcPort, getSrcSwitch, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDBIndex, getDBKey, getDBNamepublic PhysicalLink(PhysicalPort srcPort, PhysicalPort dstPort)
srcPort - the source portdstPort - the destination portpublic Integer getLinkId()
public void unregister()
Linkunregister in class Link<PhysicalPort,PhysicalSwitch>public Map<String,Object> getDBObject()
getDBObject in interface PersistablegetDBObject in class Link<PhysicalPort,PhysicalSwitch>public void setLinkId(Integer id)
public int compareTo(PhysicalLink o)
compareTo in interface Comparable<PhysicalLink>Copyright © 2014. All rights reserved.