|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.move.core.models.avatar.AvatarControl
Avatar addition and removal control class.
Constructor Summary | |
AvatarControl(ants.core.Place ch,
java.util.Hashtable env)
|
Method Summary | |
boolean |
contains(java.lang.String user)
Checks if user is in the users Hashtable. |
void |
destroyPilotUser()
Remotely remove ourselves from users Vector and from the VRML scene of other clients. |
void |
eventArrived(java.util.Hashtable evt)
Adds and removes avatars. |
AvatarView |
getUser(java.lang.String usr)
|
void |
getUsers()
Remotely gets all users connected at that time. |
void |
leaveSession()
Leaves Notification Service's session. |
void |
onMessage(java.util.Hashtable evt)
Method triggered when a message arrives. |
void |
remove(java.lang.String user)
Removes user from users Hashtable. |
void |
userJoined(java.lang.String userName)
Method triggered when a user arrives. |
void |
userLeft(java.lang.String userName)
Method triggered when a user leaves the place. |
void |
usersChanged(java.lang.String usrs)
Method triggered when hung users have been detected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AvatarControl(ants.core.Place ch, java.util.Hashtable env)
Method Detail |
public void getUsers()
params
- Noneexceptions
- No exceptions thrownpublic void destroyPilotUser()
params
- Noneexceptions
- No exceptions thrownpublic void eventArrived(java.util.Hashtable evt)
eventArrived
in interface ants.comm.RemoteEventListener
evt
- Contextexceptions
- No exceptions thrownpublic boolean contains(java.lang.String user)
user
- User's nameexceptions
- No exceptions thrownpublic void remove(java.lang.String user)
user
- User's nameexceptions
- No exceptions thrownpublic void leaveSession()
params
- Noneexceptions
- No exceptions thrownpublic AvatarView getUser(java.lang.String usr)
public void onMessage(java.util.Hashtable evt)
ants.core.PlaceListener
onMessage
in interface ants.core.PlaceListener
ants.core.PlaceListener
evt
- Hashtable event containing the received event.public void userJoined(java.lang.String userName)
ants.core.PlaceListener
userJoined
in interface ants.core.PlaceListener
ants.core.PlaceListener
userName
- New user`s namepublic void userLeft(java.lang.String userName)
ants.core.PlaceListener
userLeft
in interface ants.core.PlaceListener
ants.core.PlaceListener
userName
- Name of leaving user.public void usersChanged(java.lang.String usrs)
ants.core.PlaceListener
usersChanged
in interface ants.core.PlaceListener
ants.core.PlaceListener
users
- Current users in that place.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |