|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mega.gasp.platform.impl.ActorSessionImpl
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 |
actorID
|
private int |
actorSessionID
|
private int |
applicationInstanceID
|
private org.apache.log4j.Category |
cat
|
private java.util.Vector |
events
|
private java.lang.String |
pseudo
|
private boolean |
pseudoModified
|
private int |
sessionID
|
Constructor Summary | |
ActorSessionImpl(int aIID,
Session session)
|
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. |
java.lang.String |
getPseudoName()
Returns the current pseudo name of the user session. |
int |
getSessionID()
Returns the Session ID of the user |
boolean |
isPseudoHasModified()
Tells if the pseudo has modified during the session. |
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. |
void |
setPseudoName(java.lang.String name)
Set the current pseudo name of the user session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int applicationInstanceID
private int actorID
private int sessionID
private int actorSessionID
private java.lang.String pseudo
private java.util.Vector events
private org.apache.log4j.Category cat
private boolean pseudoModified
Constructor Detail |
public ActorSessionImpl(int aIID, Session session)
Method Detail |
public int getApplicationInstanceID()
getApplicationInstanceID
in interface ActorSession
public int getActorID()
getActorID
in interface ActorSession
public int getSessionID()
getSessionID
in interface ActorSession
public int getActorSessionID()
getActorSessionID
in interface ActorSession
public java.lang.String getPseudoName()
getPseudoName
in interface ActorSession
public void setPseudoName(java.lang.String name)
setPseudoName
in interface ActorSession
public boolean isPseudoHasModified()
isPseudoHasModified
in interface ActorSession
public java.util.Vector getEvents()
getEvents
in interface ActorSession
public void raiseEvent(Event e)
raiseEvent
in interface ActorSession
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 |