|
|||||||||
| 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.NetworkEvent
public class NetworkEvent
Models an event on the network.
| Field Summary | |
|---|---|
static int |
BRIDGE_PORT_STATE_CHANGED
Bridge port state change event. |
int |
bridgeID
Bridge ID. |
int |
bridgePort
Bridge Port. |
int |
dstHostAddress
Destination Host ID. |
static int |
HOST_GETS_PACKET
Host receives packet event. |
int |
portState
Bridge Port state. |
static int |
ROOT_ID_AT_BRIDGE_CHANGED
Root ID at a bridge changed event. |
int |
rootID
Root ID. |
int |
srcHostAddress
Source Host ID. |
int |
type
Type of this event. |
| Constructor Summary | |
|---|---|
private |
NetworkEvent(int type)
Creates a new NetworkEvent of the specified type. |
| Method Summary | |
|---|---|
static NetworkEvent |
createBridgePortStateChanged(int bridgeID,
int bridgePort,
int portState)
Creates a new Bridge Port State Changed event. |
static NetworkEvent |
createHostGetsPacket(int srcHostAddress,
int dstHostAddress)
Creates a new Host Received Packet event. |
static NetworkEvent |
createRootIDatBridge(int bridgeID,
int rootID)
Creates a new Root ID at Bridge event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BRIDGE_PORT_STATE_CHANGED
public static final int HOST_GETS_PACKET
public static final int ROOT_ID_AT_BRIDGE_CHANGED
public int type
public int bridgeID
public int bridgePort
public int portState
public int rootID
public int srcHostAddress
public int dstHostAddress
| Constructor Detail |
|---|
private NetworkEvent(int type)
NetworkEvent of the specified type.
type - The type of the event to create.| Method Detail |
|---|
public static NetworkEvent createBridgePortStateChanged(int bridgeID,
int bridgePort,
int portState)
bridgeID - The bridge ID the event occured on.bridgePort - The bridge port ID the event occured on.portState - The new port state.
NetworkEvent.
public static NetworkEvent createHostGetsPacket(int srcHostAddress,
int dstHostAddress)
srcHostAddress - The host address the packet was received from.dstHostAddress - The host address the event occured on.
NetworkEvent.
public static NetworkEvent createRootIDatBridge(int bridgeID,
int rootID)
bridgeID - The bridge ID the event occured on.rootID - The new root ID.
NetworkEvent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||