Package org.onlab.packet.lacp
Class LacpState
- java.lang.Object
-
- org.onlab.packet.lacp.LacpState
-
public class LacpState extends java.lang.ObjectLACP state.
-
-
Method Summary
All 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
-
toByte
public byte toByte()
Gets LACP state in byte.- Returns:
- LACP state
-
isActive
public boolean isActive()
Checks if this state has the active flag set.- Returns:
- true if this state has the active flag set.
-
setActive
public LacpState setActive(boolean value)
Sets active bit.- Parameters:
value- desired value- Returns:
- this
-
isTimeout
public 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.
-
setTimeout
public LacpState setTimeout(boolean value)
Sets timeout bit.- Parameters:
value- desired value- Returns:
- this
-
isAggregatable
public boolean isAggregatable()
Checks if this state has the aggregatable flag set.- Returns:
- true if this state has the aggregatable flag set.
-
setAggregatable
public LacpState setAggregatable(boolean value)
Sets aggregatable bit.- Parameters:
value- desired value- Returns:
- this
-
isSync
public boolean isSync()
Checks if this state has the synchronization flag set.- Returns:
- true if this state has the synchronization flag set.
-
setSync
public LacpState setSync(boolean value)
Sets sync bit.- Parameters:
value- desired value- Returns:
- this
-
isCollecting
public boolean isCollecting()
Checks if this state has the collecting flag set.- Returns:
- true if this state has the collecting flag set.
-
setCollecting
public LacpState setCollecting(boolean value)
Sets collecting bit.- Parameters:
value- desired value- Returns:
- this
-
isDistributing
public boolean isDistributing()
Checks if this state has the distributing flag set.- Returns:
- true if this state has the distributing flag set.
-
setDistributing
public LacpState setDistributing(boolean value)
Sets distributing bit.- Parameters:
value- desired value- Returns:
- this
-
isDefault
public boolean isDefault()
Checks if this state has the default flag set.- Returns:
- true if this state has the default flag set.
-
setDefault
public LacpState setDefault(boolean value)
Sets default bit.- Parameters:
value- desired value- Returns:
- this
-
isExpired
public boolean isExpired()
Checks if this state has the expired flag set.- Returns:
- true if this state has the expired flag set.
-
setExpired
public LacpState setExpired(boolean value)
Sets expired bit.- Parameters:
value- desired value- Returns:
- this
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-