|
|||||||||
| Home >> All >> org >> vrspace >> server >> [ object overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.vrspace.server.object
Class Alice

java.lang.Objectjava.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
org.vrspace.server.Client
org.vrspace.server.object.User
org.vrspace.server.object.Alice
- All Implemented Interfaces:
- java.lang.Cloneable, org.vrspace.attributes.Daemon, org.vrspace.attributes.HasTransform, java.util.Observer, org.vrspace.attributes.Owned, org.vrspace.attributes.Owner, java.lang.Runnable
- public class Alice
- extends User
- implements org.vrspace.attributes.Daemon, java.lang.Runnable
- extends User
AliceBot VRObject. TODO: maintain remote scenes SECURITY: Alice executes AIML on this host while connected to other hosts thru Gates!!!
| Field Summary | |
(package private) java.lang.String |
_state
|
(package private) boolean |
active
|
static int |
ADMIN
mode 1: admin bot |
java.lang.String |
botID
unique bot id, defaults to "alice" |
(package private) org.vrspace.server.Client |
botmaster
|
(package private) boolean |
entering
|
static int |
FIRST
mode 2: bot follows first observer |
protected java.util.Stack |
gates
|
(package private) java.lang.reflect.Method |
getResponse
|
java.lang.String |
installDir
progam D installation directory |
(package private) java.util.HashSet |
invalid
|
(package private) org.vrspace.server.VRSpaceLoader |
loader
|
int |
mode
ADMIN, OWNED or FIRST, default ADMIN |
(package private) org.vrspace.server.Request |
oldRot
|
(package private) org.vrspace.server.Request |
oldTran
|
java.lang.String |
open
'open' event: bot should be able open this (single) URL |
static int |
OWNED
mode 0: owned bot |
(package private) java.lang.Class |
responder
|
(package private) java.lang.reflect.Method |
say
|
protected int |
sees
|
(package private) java.lang.Class |
server
|
private static java.lang.Object |
serverInstance
|
(package private) java.lang.reflect.Method |
shitdown
|
boolean |
shutdown
shutdown when noone sees it? default = true |
(package private) java.lang.Object |
speech
|
(package private) java.lang.reflect.Method |
startup
|
(package private) java.lang.Thread |
thread
|
| Fields inherited from class org.vrspace.server.object.User |
_avgFps, _avgSceneRange, _avgSceneSize, _info, _maxFps, _maxSceneRange, _maxSceneSize, _minFps, _minSceneRange, _minSceneSize, gesture, speed, url, x, y, z |
| Fields inherited from class org.vrspace.server.Client |
_lastLogin, authInfo, dispatcher, name, online, pos, scene, session, sessions, transform |
| Fields inherited from class org.vrspace.server.OwnedDBObject |
|
| Fields inherited from class org.vrspace.server.DBObject |
db |
| Fields inherited from class org.vrspace.server.VRObject |
db_id, primitiveMap, primitives |
| Fields inherited from class java.util.Observable |
|
| Constructor Summary | |
Alice()
|
|
| Method Summary | |
void |
addObject(org.vrspace.server.VRObject obj)
Add an object to the scene. |
void |
addObserver(java.util.Observer o)
Adds observer. |
void |
deleteObserver(java.util.Observer o)
Removes observer. |
private void |
distribute(org.vrspace.server.Request req)
|
void |
finalize()
Stop alice. |
void |
initialized()
This is called on each Damon after dispatcher is initialized (space loaded & all daemons started) |
boolean |
isOnline()
Alice is allways online, if not on other hosts |
void |
removeObject(org.vrspace.server.VRObject obj)
Remove object obj from the scene if it's not tracked user |
void |
run()
This method will be called by whoever wishes to run your class implementing Runnable. |
void |
said(java.lang.String s)
Speech stuff |
private void |
say(java.lang.String response)
|
void |
set_loadURL(org.vrspace.server.Request req,
java.lang.String url)
Does nothing - should notify all users, or only ones that asked the question? |
void |
set_state(org.vrspace.server.Request r,
java.lang.String state)
|
void |
shutdown()
|
void |
startup()
Server initialization, called from addObserver() |
void |
startup(org.vrspace.server.Dispatcher d)
|
void |
update(java.util.Observable o,
java.lang.Object req)
Process events from users |
| Methods inherited from class org.vrspace.server.object.User |
getTransform, getTransformID, set__fps, set_go, set_say, set_xyzgo, set_xyzrotate, setTransform |
| Methods inherited from class org.vrspace.server.Client |
addOwned, destroy, getClassLoader, getDispatcher, getFilter, getName, getPos, getProperties, getProperty, getScene, getSession, init, invalidRequest, isOwner, owns, quit, removeAll, removeOwned, request, sendResponse, set__password, set__sceneRange, set__sceneSize, set_addFilter, set_removeFilter, setProperty, setValue, updateAuthInfo, updateOwnership, updateScene, updateScene |
| Methods inherited from class org.vrspace.server.OwnedDBObject |
addOwner, isOwned, notifyOwners, removeOwner, sendEvent |
| Methods inherited from class org.vrspace.server.DBObject |
delete, get, put, put |
| Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
| Methods inherited from class java.util.Observable |
clearChanged, countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
installDir
public java.lang.String installDir
- progam D installation directory
shutdown
public boolean shutdown
- shutdown when noone sees it? default = true
botID
public java.lang.String botID
- unique bot id, defaults to "alice"
open
public java.lang.String open
- 'open' event: bot should be able open this (single) URL
mode
public int mode
- ADMIN, OWNED or FIRST, default ADMIN
serverInstance
private static java.lang.Object serverInstance
server
java.lang.Class server
responder
java.lang.Class responder
startup
java.lang.reflect.Method startup
shitdown
java.lang.reflect.Method shitdown
_state
java.lang.String _state
oldTran
org.vrspace.server.Request oldTran
oldRot
org.vrspace.server.Request oldRot
entering
boolean entering
speech
java.lang.Object speech
say
java.lang.reflect.Method say
getResponse
java.lang.reflect.Method getResponse
invalid
java.util.HashSet invalid
active
boolean active
thread
java.lang.Thread thread
loader
org.vrspace.server.VRSpaceLoader loader
botmaster
org.vrspace.server.Client botmaster
OWNED
public static final int OWNED
- mode 0: owned bot
- See Also:
- Constant Field Values
ADMIN
public static final int ADMIN
- mode 1: admin bot
- See Also:
- Constant Field Values
FIRST
public static final int FIRST
- mode 2: bot follows first observer
- See Also:
- Constant Field Values
gates
protected java.util.Stack gates
sees
protected int sees
| Constructor Detail |
Alice
public Alice()
| Method Detail |
run
public void run()
- Description copied from interface:
java.lang.Runnable - This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
- Specified by:
runin interfacejava.lang.Runnable
finalize
public void finalize()
- Stop alice. How?
startup
public void startup(org.vrspace.server.Dispatcher d)
- Specified by:
startupin interfaceorg.vrspace.attributes.Daemon
initialized
public void initialized()
- Description copied from interface:
org.vrspace.attributes.Daemon - This is called on each Damon after dispatcher is initialized (space loaded & all daemons started)
- Specified by:
initializedin interfaceorg.vrspace.attributes.Daemon
startup
public void startup()
- Server initialization, called from addObserver()
addObserver
public void addObserver(java.util.Observer o)
- Adds observer. First observer starts AliceServer.
deleteObserver
public void deleteObserver(java.util.Observer o)
- Removes observer. Shuts AliceServer down if no other observers exist.
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.vrspace.attributes.Daemon
update
public void update(java.util.Observable o, java.lang.Object req)
- Process events from users
- Specified by:
updatein interfacejava.util.Observer
addObject
public void addObject(org.vrspace.server.VRObject obj) throws java.lang.IllegalAccessException
- Add an object to the scene. Called from VRObject or Command classes, i.e. Scene.
removeObject
public void removeObject(org.vrspace.server.VRObject obj) throws java.lang.IllegalAccessException
- Remove object obj from the scene if it's not tracked user
set_state
public void set_state(org.vrspace.server.Request r, java.lang.String state)
distribute
private void distribute(org.vrspace.server.Request req) throws org.vrspace.server.RequestException
said
public void said(java.lang.String s)
- Speech stuff
say
private void say(java.lang.String response)
isOnline
public boolean isOnline()
- Alice is allways online, if not on other hosts
set_loadURL
public void set_loadURL(org.vrspace.server.Request req, java.lang.String url)
- Does nothing - should notify all users, or only ones that asked the
question?
|
|||||||||
| Home >> All >> org >> vrspace >> server >> [ object overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC