|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.event.SimEvent
gps.protocol.BT.BTEvent
public class BTEvent
BT Event
| Field Summary | |
|---|---|
static int |
CONNECTION_DOWNLOAD_BLOCK_FINISH
download block finish |
static int |
CONNECTION_KEEP_ALIVE
connection keep alive |
static int |
CONNECTION_TIMEOUT
check alive |
static int |
PEER_MESSAGE
peer receives a peer message |
static int |
RECHOKING
rechoking |
static int |
REQUEST_TIMEOUT
can make next request |
static int |
SESSION_ANNOUNCEMENT
scheduled announcement to tracker |
static int |
SESSION_TRACKER_RESPONSE
reply from server, handled by session |
static int |
TRACKER_GET_REQUEST
server receives a get, handled by tracker |
static int |
USER_DOWNLOAD
download a specific document from a server |
static int |
USER_PUBLISH
publish a document |
static int |
USER_RANDOM_DOWNLOAD
random download from a server |
| Fields inherited from class gps.event.SimEvent |
|---|
SIM_AGENT_ACTIVE, SIM_AGENT_DEACTIVE, SIM_END, SIM_NODE_ACTIVE, SIM_NODE_DEACTIVE, SIM_START |
| Constructor Summary | |
|---|---|
BTEvent()
dummy constructor |
|
BTEvent(double timeStamp,
int type,
java.util.ArrayList handlerList,
java.lang.Object obj)
constructs a BTEvent object |
|
BTEvent(double timeStamp,
int type,
SimEventHandler handler,
java.lang.Object obj)
constructs a BTEvent object |
|
| Method Summary | |
|---|---|
java.lang.String |
typeString(int type)
gets string description for type |
| Methods inherited from class gps.event.SimEvent |
|---|
compareTo, dispatch, format, getAddParam, getEventID, getParam, getTimeStamp, getType, setAddParam, setEventID, setTimeStamp, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int USER_PUBLISH
public static final int USER_DOWNLOAD
public static final int USER_RANDOM_DOWNLOAD
public static final int TRACKER_GET_REQUEST
public static final int PEER_MESSAGE
public static final int SESSION_TRACKER_RESPONSE
public static final int SESSION_ANNOUNCEMENT
public static final int CONNECTION_DOWNLOAD_BLOCK_FINISH
public static final int RECHOKING
public static final int CONNECTION_TIMEOUT
public static final int CONNECTION_KEEP_ALIVE
public static final int REQUEST_TIMEOUT
| Constructor Detail |
|---|
public BTEvent()
public BTEvent(double timeStamp,
int type,
SimEventHandler handler,
java.lang.Object obj)
timeStamp - the moment this event is to be triggeredtype - event typehandler - event handler objectobj - sender
public BTEvent(double timeStamp,
int type,
java.util.ArrayList handlerList,
java.lang.Object obj)
timeStamp - the moment this event is to be triggeredtype - event typehandlerList - list of event handler objectsobj - sender| Method Detail |
|---|
public java.lang.String typeString(int type)
typeString in class SimEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||