|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.SPT.SPT_AddressPair
A physical & logical address pair for the Spanning Tree Protocol.
Constructor Summary | |
SPT_AddressPair(hypercast.I_PhysicalAddress pa,
hypercast.SPT.SPT_LogicalAddress la)
Constructor |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(hypercast.SPT.SPT_AddressPair ap)
To check if it's equal to another address pair |
hypercast.I_LogicalAddress |
getLogicalAddress()
Returns the logical address of this addresspair |
hypercast.I_PhysicalAddress |
getPhysicalAddress()
Returns the physical address of this addresspair |
hypercast.SPT.SPT_LogicalAddress |
getSPTLogicalAddress()
Same as getLogicalAddress(), except the returned object type does not need to be coerced to type SPT_LogicalAddress. |
boolean |
isBetterThan(hypercast.SPT.SPT_AddressPair ap)
Is it a better root/parent than ap? Used by SPT protocol to make parent choice |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SPT_AddressPair(hypercast.I_PhysicalAddress pa, hypercast.SPT.SPT_LogicalAddress la)
pa
- physical addressla
- logical addressMethod Detail |
public hypercast.I_PhysicalAddress getPhysicalAddress()
I_AddressPair
getPhysicalAddress
in interface I_AddressPair
public hypercast.I_LogicalAddress getLogicalAddress()
I_AddressPair
getLogicalAddress
in interface I_AddressPair
public hypercast.SPT.SPT_LogicalAddress getSPTLogicalAddress()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(hypercast.SPT.SPT_AddressPair ap)
ap
- another address pair
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isBetterThan(hypercast.SPT.SPT_AddressPair ap)
ap
- another address pair
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |