public class LsaWrapperImpl extends Object implements org.onosproject.ospf.controller.LsaWrapper
| Constructor and Description |
|---|
LsaWrapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLsa(org.onosproject.ospf.controller.OspfLsaType lsaType,
org.onosproject.ospf.controller.OspfLsa ospfLsa)
Adds the LSA in the wrapper.
|
int |
ageCounterWhenReceived()
Gets the age counter when received.
|
int |
binNumber()
Gets bin number.
|
int |
currentAge()
Gets the current LSA Age.
|
boolean |
equals(Object o) |
org.onosproject.ospf.controller.LsdbAge |
getLsdbAge()
Gets the LSDB age.
|
int |
hashCode() |
boolean |
isAging()
Gets value of aging flag.
|
boolean |
isChangedSinceLastFlood()
Gets if LSA is changed since last flood.
|
boolean |
isCheckAge()
Gets check age flag.
|
boolean |
isInAnAgeBin()
whether LSA in age bin or not.
|
boolean |
isSelfOriginated()
Gets if self originated or not.
|
boolean |
isSentReplyForOlderLsa()
Gets is sent reply for older LSA.
|
boolean |
isSequenceRollOver()
Gets if sequence number rolled over.
|
int |
lsaAgeReceived()
Age of LSA when received.
|
org.onosproject.ospf.protocol.lsa.LsaHeader |
lsaHeader()
Gets the LSA header.
|
String |
lsaProcessing()
Gets the LSA process command.
|
org.onosproject.ospf.controller.OspfLsaType |
lsaType()
Gets the LSA type.
|
int |
noReTransmissionLists()
Gets number of LSAs in retransmission list.
|
org.onosproject.ospf.controller.OspfInterface |
ospfInterface()
Get the OSPF interface.
|
org.onosproject.ospf.controller.OspfLsa |
ospfLsa()
Gets the LSA.
|
void |
setAgeCounterWhenReceived(int ageCounterWhenReceived)
Sets the age counter when received.
|
void |
setBinNumber(int binNumber)
Sets bin number.
|
void |
setChangedSinceLastFlood(boolean changedSinceLastFlood)
Sets if LSA is changed since last flood.
|
void |
setCheckAge(boolean checkAge)
Sets check age flag.
|
void |
setInAnAgeBin(boolean inAnAgeBin)
Sets whether LSA in age bin or not.
|
void |
setIsAging(boolean isAging)
Sets aging flag.
|
void |
setIsSelfOriginated(boolean isSelfOriginated)
Sets if self originated or not.
|
void |
setIsSequenceRollOver(boolean isSequenceRollOver)
Sets if sequence number rolled over.
|
void |
setLsaAgeReceived(int lsaAgeReceived)
Sets the Age of LSA when received.
|
void |
setLsaHeader(org.onosproject.ospf.protocol.lsa.LsaHeader lsaHeader)
Sets LSA header.
|
void |
setLsaProcessing(String lsaProcessing)
Sets the LSA process command.
|
void |
setLsaType(org.onosproject.ospf.controller.OspfLsaType lsaType)
Sets the LSA type.
|
void |
setLsdbAge(org.onosproject.ospf.controller.LsdbAge lsdbAge)
Sets the LSDB age.
|
void |
setNoReTransmissionLists(int noReTransmissionLists)
Sets number of LSAs in retransmission list.
|
void |
setOspfInterface(org.onosproject.ospf.controller.OspfInterface ospfInterface)
Sets the OSPF interface.
|
void |
setOspfLsa(org.onosproject.ospf.controller.OspfLsa ospfLsa)
Sets the LSA.
|
void |
setSentReplyForOlderLsa(boolean sentReplyForOlderLsa)
Sets is sent reply for older lsa.
|
String |
toString() |
public org.onosproject.ospf.controller.OspfLsaType lsaType()
lsaType in interface org.onosproject.ospf.controller.LsaWrapperpublic void setLsaType(org.onosproject.ospf.controller.OspfLsaType lsaType)
setLsaType in interface org.onosproject.ospf.controller.LsaWrapperlsaType - LSA typepublic boolean isSelfOriginated()
isSelfOriginated in interface org.onosproject.ospf.controller.LsaWrapperpublic void setIsSelfOriginated(boolean isSelfOriginated)
setIsSelfOriginated in interface org.onosproject.ospf.controller.LsaWrapperisSelfOriginated - true if self originated else falsepublic void addLsa(org.onosproject.ospf.controller.OspfLsaType lsaType,
org.onosproject.ospf.controller.OspfLsa ospfLsa)
lsaType - LSA typeospfLsa - LSA instancepublic int lsaAgeReceived()
lsaAgeReceived in interface org.onosproject.ospf.controller.LsaWrapperpublic void setLsaAgeReceived(int lsaAgeReceived)
setLsaAgeReceived in interface org.onosproject.ospf.controller.LsaWrapperlsaAgeReceived - Age of LSA when receivedpublic org.onosproject.ospf.protocol.lsa.LsaHeader lsaHeader()
public void setLsaHeader(org.onosproject.ospf.protocol.lsa.LsaHeader lsaHeader)
lsaHeader - LSA headerpublic org.onosproject.ospf.controller.OspfLsa ospfLsa()
ospfLsa in interface org.onosproject.ospf.controller.LsaWrapperpublic void setOspfLsa(org.onosproject.ospf.controller.OspfLsa ospfLsa)
setOspfLsa in interface org.onosproject.ospf.controller.LsaWrapperospfLsa - LSA instancepublic int noReTransmissionLists()
public void setNoReTransmissionLists(int noReTransmissionLists)
noReTransmissionLists - number of LSAs in retransmission listpublic boolean isInAnAgeBin()
public void setInAnAgeBin(boolean inAnAgeBin)
inAnAgeBin - whether LSA in age bin or notpublic boolean isChangedSinceLastFlood()
public void setChangedSinceLastFlood(boolean changedSinceLastFlood)
changedSinceLastFlood - true if LSA is changed since last flood else falsepublic boolean isSequenceRollOver()
public void setIsSequenceRollOver(boolean isSequenceRollOver)
isSequenceRollOver - true if sequence rolled over else falsepublic boolean isSentReplyForOlderLsa()
public void setSentReplyForOlderLsa(boolean sentReplyForOlderLsa)
sentReplyForOlderLsa - true if sent reply for older lsa else falsepublic boolean isCheckAge()
public void setCheckAge(boolean checkAge)
checkAge - check age flag.public boolean isAging()
public void setIsAging(boolean isAging)
isAging - is aging flagpublic org.onosproject.ospf.controller.LsdbAge getLsdbAge()
public void setLsdbAge(org.onosproject.ospf.controller.LsdbAge lsdbAge)
setLsdbAge in interface org.onosproject.ospf.controller.LsaWrapperlsdbAge - LSDB agepublic int currentAge()
currentAge in interface org.onosproject.ospf.controller.LsaWrapperpublic int ageCounterWhenReceived()
ageCounterWhenReceived in interface org.onosproject.ospf.controller.LsaWrapperpublic void setAgeCounterWhenReceived(int ageCounterWhenReceived)
setAgeCounterWhenReceived in interface org.onosproject.ospf.controller.LsaWrapperageCounterWhenReceived - the age counter when receivedpublic String lsaProcessing()
lsaProcessing in interface org.onosproject.ospf.controller.LsaWrapperpublic void setLsaProcessing(String lsaProcessing)
setLsaProcessing in interface org.onosproject.ospf.controller.LsaWrapperlsaProcessing - LSA process commandpublic int binNumber()
binNumber in interface org.onosproject.ospf.controller.LsaWrapperpublic void setBinNumber(int binNumber)
setBinNumber in interface org.onosproject.ospf.controller.LsaWrapperbinNumber - bin numberpublic org.onosproject.ospf.controller.OspfInterface ospfInterface()
ospfInterface in interface org.onosproject.ospf.controller.LsaWrapperpublic void setOspfInterface(org.onosproject.ospf.controller.OspfInterface ospfInterface)
setOspfInterface in interface org.onosproject.ospf.controller.LsaWrapperospfInterface - OSPF interface instanceCopyright © 2016. All rights reserved.