uk.org.arlott.simon.hw.f24.lbsta
Class ConfigurationMessage

java.lang.Object
  extended by uk.org.arlott.simon.hw.f24.lbsta.PacketData
      extended by uk.org.arlott.simon.hw.f24.lbsta.BridgePacket
          extended by uk.org.arlott.simon.hw.f24.lbsta.ConfigurationMessage

public class ConfigurationMessage
extends BridgePacket

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

topologyChange

private boolean topologyChange
The Topology Change flag (1 bit)


topologyChangeAcknowledgement

private boolean topologyChangeAcknowledgement
The Topology Change Acknowledgement flag (1 bit)


rootID

private int rootID
Root ID (8 octets)


costOfPathToRoot

private int costOfPathToRoot
Cost of path to root (4 octets)


bridgeID

private int bridgeID
Bridge ID (8 octets)


portID

private int portID
Port ID (2 octets)


messageAge

private int messageAge
Message Age (2 octets)


maxAge

private int maxAge
Max Age (2 octets)


helloTime

private int helloTime
Hello Time (2 octets)


forwardDelay

private int forwardDelay
Forward Delay (2 octets)

Constructor Detail

ConfigurationMessage

public 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. , with inherited values from 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

Parameters:
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

getTopologyChangeFlag

public boolean getTopologyChangeFlag()
Gets the status of the Topology Change flag.

Returns:
True if the flag is set.

getTopologyChangeAcknowledgementFlag

public boolean getTopologyChangeAcknowledgementFlag()
Gets the status of the Topology Change Acknowledgement flag.

Returns:
True if the flag is set.

getRootID

public int getRootID()
Gets the Root ID. (The correct range is 0-18446744073709551615)

Returns:
A value in the range 0-2147483647.

getCostOfPathToRoot

public int getCostOfPathToRoot()
Gets the Cost of path to root. (The correct range is 0-4294967295)

Returns:
A value in the range 0-2147483647.

getBridgeID

public int getBridgeID()
Gets the Bridge ID. (The correct range is 0-18446744073709551615)

Returns:
A value in the range 0-2147483647.

getPortID

public int getPortID()
Gets the Port ID.

Returns:
A value in the range 0-65535.

getMessageAge

public int getMessageAge()
Gets the Message Age.

Returns:
A value in the range 0-65535.

getMaxAge

public int getMaxAge()
Gets the Max Age.

Returns:
A value in the range 0-65535.

getHelloTime

public int getHelloTime()
Gets the Hello Time.

Returns:
A value in the range 0-65535.

getForwardDelay

public int getForwardDelay()
Gets the Forward Delay.

Returns:
A value in the range 0-65535.