|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.arlott.simon.hw.f24.lbsta.PacketData
uk.org.arlott.simon.hw.f24.lbsta.BridgePacket
uk.org.arlott.simon.hw.f24.lbsta.ConfigurationMessage
public class ConfigurationMessage
Spanning Tree Algorithm Bridge Configuration Message.
| Field Summary | |
|---|---|
private int |
bridgeID
Bridge ID (8 octets) |
private int |
costOfPathToRoot
Cost of path to root (4 octets) |
private int |
forwardDelay
Forward Delay (2 octets) |
private int |
helloTime
Hello Time (2 octets) |
private int |
maxAge
Max Age (2 octets) |
private int |
messageAge
Message Age (2 octets) |
private int |
portID
Port ID (2 octets) |
private int |
rootID
Root ID (8 octets) |
private boolean |
topologyChange
The Topology Change flag (1 bit) |
private boolean |
topologyChangeAcknowledgement
The Topology Change Acknowledgement flag (1 bit) |
| Constructor Summary | |
|---|---|
ConfigurationMessage(boolean topologyChange,
boolean topologyChangeAcknowledgement,
int rootID,
int costOfPathToRoot,
int bridgeID,
int portID,
int messageAge,
int maxAge,
int helloTime,
int forwardDelay)
<<<<<<< ConfigurationMessage.java Creates a new Configuration Message. |
|
| Method Summary | |
|---|---|
int |
getBridgeID()
Gets the Bridge ID. |
int |
getCostOfPathToRoot()
Gets the Cost of path to root. |
int |
getForwardDelay()
Gets the Forward Delay. |
int |
getHelloTime()
Gets the Hello Time. |
int |
getMaxAge()
Gets the Max Age. |
int |
getMessageAge()
Gets the Message Age. |
int |
getPortID()
Gets the Port ID. |
int |
getRootID()
Gets the Root ID. |
boolean |
getTopologyChangeAcknowledgementFlag()
Gets the status of the Topology Change Acknowledgement flag. |
boolean |
getTopologyChangeFlag()
Gets the status of the Topology Change flag. |
| Methods inherited from class uk.org.arlott.simon.hw.f24.lbsta.BridgePacket |
|---|
getMessageType, getProtcolIdentifier, getVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean topologyChange
private boolean topologyChangeAcknowledgement
private int rootID
private int costOfPathToRoot
private int bridgeID
private int portID
private int messageAge
private int maxAge
private int helloTime
private int forwardDelay
| Constructor Detail |
|---|
public ConfigurationMessage(boolean topologyChange,
boolean topologyChangeAcknowledgement,
int rootID,
int costOfPathToRoot,
int bridgeID,
int portID,
int messageAge,
int maxAge,
int helloTime,
int forwardDelay)
BridgePacket and a fixed Message Type of 0.
=======
Creates a new Configuration Message, with inherited values from BridgePacket and a fixed Message Type of 0.
>>>>>>> 1.4
topologyChange - Topology Change flag.topologyChangeAcknowledgement - Topology Change Acknowldgement flag.rootID - Root bridge ID.costOfPathToRoot - Cost of Path to Root.bridgeID - Bridge ID.portID - Port ID.messageAge - Message Age.maxAge - Max Age.helloTime - Hello Time.forwardDelay - Forward Delay.| Method Detail |
|---|
public boolean getTopologyChangeFlag()
public boolean getTopologyChangeAcknowledgementFlag()
public int getRootID()
public int getCostOfPathToRoot()
public int getBridgeID()
public int getPortID()
public int getMessageAge()
public int getMaxAge()
public int getHelloTime()
public int getForwardDelay()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||