public class LsaBinImpl extends Object implements org.onosproject.ospf.controller.LsaBin
| Constructor and Description |
|---|
LsaBinImpl(int binNumber)
Creates an instance of LSA bin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOspfLsa(String lsaKey,
org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
Adds the LSA to this bin with the given key.
|
int |
binNumber()
Gets the bin number.
|
Map<String,org.onosproject.ospf.controller.LsaWrapper> |
listOfLsa()
Gets the list of LSAs in this bin as key value pair.
|
org.onosproject.ospf.controller.LsaWrapper |
ospfLsa(String lsaKey)
Gets the LSA from the bin.
|
void |
removeOspfLsa(String lsaKey,
org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
Removes LSA from the bin.
|
String |
toString() |
public LsaBinImpl(int binNumber)
binNumber - unique number of this binpublic void addOspfLsa(String lsaKey, org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
addOspfLsa in interface org.onosproject.ospf.controller.LsaBinlsaKey - key of the LSAlsaWrapper - wrapper instance to storepublic org.onosproject.ospf.controller.LsaWrapper ospfLsa(String lsaKey)
ospfLsa in interface org.onosproject.ospf.controller.LsaBinlsaKey - key to search the LSApublic void removeOspfLsa(String lsaKey, org.onosproject.ospf.controller.LsaWrapper lsaWrapper)
removeOspfLsa in interface org.onosproject.ospf.controller.LsaBinlsaKey - key to search LSAlsaWrapper - wrapper object to removepublic Map<String,org.onosproject.ospf.controller.LsaWrapper> listOfLsa()
listOfLsa in interface org.onosproject.ospf.controller.LsaBinpublic int binNumber()
binNumber in interface org.onosproject.ospf.controller.LsaBinCopyright © 2016. All rights reserved.