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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDBIndex, getDBKey, getDBName
public PhysicalLink(PhysicalPort srcPort, PhysicalPort dstPort)
srcPort
- the source portdstPort
- the destination portpublic Integer getLinkId()
public void unregister()
Link
unregister
in class Link<PhysicalPort,PhysicalSwitch>
public Map<String,Object> getDBObject()
getDBObject
in interface Persistable
getDBObject
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.