|
|||||||||
| 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
public abstract class BridgePacket
Base Spanning Tree Algorithm packet, with protocol identifier, version and message type.
| Field Summary | |
|---|---|
private int |
messageType
Message Type (1 octet) |
private int |
protocolIdentifier
Protocol Identifier (2 octets) The constant 0. |
private int |
version
Version (1 octet) The constant 0. |
| Constructor Summary | |
|---|---|
BridgePacket(int messageType)
Creates a new BridgePacket of the specified type. |
|
| Method Summary | |
|---|---|
int |
getMessageType()
Gets the Message Type. |
int |
getProtcolIdentifier()
Gets the Protocol Identifier. |
int |
getVersion()
Gets the Version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int protocolIdentifier
private int version
private int messageType
| Constructor Detail |
|---|
public BridgePacket(int messageType)
BridgePacket of the specified type.
messageType - Type of bridge packet to create.| Method Detail |
|---|
public int getProtcolIdentifier()
public int getVersion()
public int getMessageType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||