| Home >> All >> org >> vrspace |
| | org.vrspace.attributes.* (8) | | org.vrspace.client.* (5) | | org.vrspace.neurogrid.* (39) |
| | org.vrspace.server.* (89) | | org.vrspace.speech.* (1) | | org.vrspace.util.* (13) |
| | org.vrspace.vrmlclient.* (19) |
Package Samples:
org.vrspace.server.object
org.vrspace.attributes
org.vrspace.client
org.vrspace.neurogrid
org.vrspace.server
org.vrspace.server.command.Administrator
org.vrspace.server.command
org.vrspace.server.db
org.vrspace.server.filter
org.vrspace.util
org.vrspace.speech
org.vrspace.vrmlclient
Classes:
SQLDB: DB store objects by storing all public fields: all primitive types and primitive arrays (java.lang.String, java.net.URL and java.util.Date are considered as primitive) all objects and object arrays that are contained inside object (recursive) Requirements and restrictions: every object that will be stored in DB must have defined "public long db_id" field (or must inherit from class that have db_id field) objects that have encapsulated data - private fields and get/set methods for retrieving/storing that fields can't be stored correctly! This is common for JDK classes - that classes can be stored ...
VrmlUploader: Recursively uploads files to the server. The uploader recursively searches the files that have .wrl extensions, looking for url lists in url tags, and in EXTERNPROTOs. Each list found is searched for for files existing on the local file system. If a discovered file has a .wrl extension, then it will be searched as well. This recursion continues up to the level maxRecursion ( defaults to zero ). After a VrmlUploader is instantiated, various options can be set for the transfer (see below). The upload method is used to initiate the transfer. Files sent to this method with a .wrl extension will be ...
VRObject: Generic VRObject class. Defines event forwarding, does not check nor set actual field value. Subclasses should override setValue() method to implement different behavior, i.e. store object to database and/or forward events. NOTES: - set_* (see setField()) method may access both Client and Dispatcher via Request - before invoking set_*, request may forwarded to all the Observers, depending on sendEvent()/setValue() implementation - along with request, other Clients (Observers) get reference to originating Client - TAKE CARE of public variables !!! - this way, clients may send requests (Client.update()) ...
SoftCache: MRU Memory-Sensitive SoftCache This SoftCache implements storage in an MRU fashion. Every time an object is retrieved with get 55 , that object is put at the head of the MRU list. In the constructor, SoftCache 55 , the maximum size of the MRU list can be specified. Any item that has been #put{Object,Object put} which is not on the MRU list is susceptible to being garbage collected. All values in this Map are stored via SoftReferences. Objects that are only softly reachable are eligible for reclamation by the garbage collector when there are only soft references to them. In this context, this would ...
Message: Generic Message class. A message can be request, response or command. Constructor expects request string in format "class id event value" or "command arguments" Request: request for a network object to change it's state. Object is specified by class and id , event specifies it's field/method (metod has set_ prefix, used if there is no public field with event name) and value is passed to method or used to set field value Response: response to a previous request/command. Prefixed with + (ok) or - (error). Command: request to the server rather to an object
VRSpace: VRSpace applet Parameters: host - hostname, default origin host port - port to connect to username - username to login with password - password to login with logInfo - true/false logDebug - true/false logError - true/false logWarning - true/false intro - class imlementing Intro intefrace, started after init. Default: org.vrspace.vrmlclient.VRSpaceIntro
AuthInfo: This class encapsulates authentication information: - login name - password - client ID (class and it within the class) - classpath used for commands - objects owned by this client NOTE: All fields are public to enable database storage. Take care not to pass AuthInfo to any objects! What if an object creates an AuthInfo and stores it?
Transform: Transform is basic object used to build the scene. This is a point in space containing other objects, and transformations applied to them. Concept taken from VRML97 NOTE: all fields are public, to enable the database storage. What are security implications?
VRObjectFilter: VRObject filters are used to eliminate objects not needed in the scene. In order to allow the scene to add and remove filters properly, filters must implement equals() method. I.e. ActiveClientFilter returns true if Client.isActive() returns true. Thus, each instance of this filter is equal to any other - performs same operation.
Console: A simple console, able to connect to server. Uses following properties to connect: vrspace.host - default: localhost vrspace.port - default: 8500 vrspace.login - default: guest vrspace.password - default: guest vrspace.command - command to execute & quit - default:none Propmts on stdin for unset properties.
Scene: This keeps track of objects visible to the Client. This scene uses coordinates to determine which objects are in range . Scene is updated when client moves more than resolution meters, or when timeout occurs. It also has some basic filtering capabilities - not tested.
setAll: Syntax: setAll className destField srcField For all members of className , sets field destField to value of srcField . If fields are not of the same class, destField must have constructor which takes class of srcField as a parameter. Intended for migration.
SQLClass: SQLClass is class whose objects describe classes that will be stored in db. Object of this class store information about class itself and class fields. Fields desribed are only public fields declared in that class, not fields declared in superclasses of this class.
upload: Request format: upload className path className is expected to be File or one of its subclasses. The command creates a new instance of className in the database with name equal to path. Then it calls set_upload on the new object with the given path.
Add: Encapsulates a new object. Two purposes: - to notify the client a new object enters the scene (Client calls Add( VRObject )) - to add a new object to the database (Client receives Add id className name request)
ProxyDispatcher: This dispatcher only forwards events to/from client/other host. But it should maintain a scene for all foreign objects, in order to reduce network trafic and speed up event distribution, also keep local-remote user mappings etc.
chClass: This command changes class of an object. It actually removes the object, creates new object, and stores it to the database. Also updates Transform if object implements HasTransform, takes care of AuthInfo too.
Session: A Session is constructed and started when a client connects to the server. If client authenticates passes, session calls Dispatcher.login() Should it be a OwnedDBObject? Could we store session state then?
Transaction: Transacton: collects request from a client. Caches all objects. Able of rollback, rollforward, isolation... PassiveDBObject: can be stored to database, cannot send nor receive network events.
env: Set/get environment variables. env with no arguments returns all properties. env name returns value for the specified property. env name = value sets the property. Admin command.
File: A File. This VRObject should be used for files not expected to have a Transform. For example, images, binaries, etc... The contents of the file are pointed to by its url NetResource.
Administrator: Administrator is no more than User which implements Admin interface. Since it's in server package, also can access protected stuff. Administrator owns everything.
DBObject: DBObject defines methodes for database storage. When processing a request, sets the field value and stores itself into database, if one is specified.
ClassFilter: Filtering by class name Filters out instances of this class. Note that package name is ignored, and also does not care of ineritance.
Alice: AliceBot VRObject. TODO: maintain remote scenes SECURITY: Alice executes AIML on this host while connected to other hosts thru Gates!!!
| Home | Contact Us | Privacy Policy | Terms of Service |