Package org.onlab.packet.lacp
Class LacpState
- java.lang.Object
- 
- org.onlab.packet.lacp.LacpState
 
- 
 public class LacpState extends java.lang.ObjectLACP state.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanisActive()Checks if this state has the active flag set.booleanisAggregatable()Checks if this state has the aggregatable flag set.booleanisCollecting()Checks if this state has the collecting flag set.booleanisDefault()Checks if this state has the default flag set.booleanisDistributing()Checks if this state has the distributing flag set.booleanisExpired()Checks if this state has the expired flag set.booleanisSync()Checks if this state has the synchronization flag set.booleanisTimeout()Checks if this state has the timeout flag set.LacpStatesetActive(boolean value)Sets active bit.LacpStatesetAggregatable(boolean value)Sets aggregatable bit.LacpStatesetCollecting(boolean value)Sets collecting bit.LacpStatesetDefault(boolean value)Sets default bit.LacpStatesetDistributing(boolean value)Sets distributing bit.LacpStatesetExpired(boolean value)Sets expired bit.LacpStatesetSync(boolean value)Sets sync bit.LacpStatesetTimeout(boolean value)Sets timeout bit.bytetoByte()Gets LACP state in byte.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
toBytepublic byte toByte() Gets LACP state in byte.- Returns:
- LACP state
 
 - 
isActivepublic boolean isActive() Checks if this state has the active flag set.- Returns:
- true if this state has the active flag set.
 
 - 
setActivepublic LacpState setActive(boolean value) Sets active bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isTimeoutpublic boolean isTimeout() Checks if this state has the timeout flag set. Timeout flag indicates short timeout if set.- Returns:
- true if this state has the timeout flag set.
 
 - 
setTimeoutpublic LacpState setTimeout(boolean value) Sets timeout bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isAggregatablepublic boolean isAggregatable() Checks if this state has the aggregatable flag set.- Returns:
- true if this state has the aggregatable flag set.
 
 - 
setAggregatablepublic LacpState setAggregatable(boolean value) Sets aggregatable bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isSyncpublic boolean isSync() Checks if this state has the synchronization flag set.- Returns:
- true if this state has the synchronization flag set.
 
 - 
setSyncpublic LacpState setSync(boolean value) Sets sync bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isCollectingpublic boolean isCollecting() Checks if this state has the collecting flag set.- Returns:
- true if this state has the collecting flag set.
 
 - 
setCollectingpublic LacpState setCollecting(boolean value) Sets collecting bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isDistributingpublic boolean isDistributing() Checks if this state has the distributing flag set.- Returns:
- true if this state has the distributing flag set.
 
 - 
setDistributingpublic LacpState setDistributing(boolean value) Sets distributing bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isDefaultpublic boolean isDefault() Checks if this state has the default flag set.- Returns:
- true if this state has the default flag set.
 
 - 
setDefaultpublic LacpState setDefault(boolean value) Sets default bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
isExpiredpublic boolean isExpired() Checks if this state has the expired flag set.- Returns:
- true if this state has the expired flag set.
 
 - 
setExpiredpublic LacpState setExpired(boolean value) Sets expired bit.- Parameters:
- value- desired value
- Returns:
- this
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-