|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mega.gasp.bluetooth.miniplatform.ActorSession
ActorSession represent the link between a user (represented by instances of Session and Actor) and an ApplicationInstance. It receive and transmit all the events or message in an ApplicationInstance, in game it is the communication link between the client and the game session server.
Field Summary | |
private int |
aID
|
private int |
aIID
|
private int |
aSID
|
private java.util.Vector |
events
|
Constructor Summary | |
ActorSession(int applicationInstanceID,
int actorID,
int actorSessionID)
|
Method Summary | |
int |
getActorID()
Returns the Actor ID of the user. |
int |
getActorSessionID()
Returns the ActorSession ID. |
int |
getApplicationInstanceID()
Returns the ApplicationInstance ID linked. |
java.util.Vector |
getEvents()
Return the events stored since the last request from the actor. |
private java.util.Vector |
purgeEvents(java.util.Vector v)
Purge the deprecated events. |
void |
raiseEvent(Event e)
Put the event on the stack of the events must be read by the actor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int aIID
private int aID
private int aSID
private java.util.Vector events
Constructor Detail |
public ActorSession(int applicationInstanceID, int actorID, int actorSessionID)
Method Detail |
public int getApplicationInstanceID()
public int getActorID()
public int getActorSessionID()
public java.util.Vector getEvents()
public void raiseEvent(Event e)
e
- the Eventprivate java.util.Vector purgeEvents(java.util.Vector v)
v
- the copy of the events vector
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |