|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.PublicVRObject
org.vrspace.server.OwnedVRObject
Forwards events to all the listeners, but receives events only from owners.
| Field Summary |
| Fields inherited from class org.vrspace.server.VRObject |
db_id, primitiveMap, primitives |
| Constructor Summary | |
OwnedVRObject()
|
|
| Method Summary | |
void |
addOwner(Owner c)
Interface Owned |
boolean |
isOwned(Owner c)
Interface Owned |
void |
notifyOwners(java.lang.Object o)
Interface Owned |
void |
ownershipRequired(Request r)
Called from sendEvent( request ) in case request comes from non-owner. |
void |
processEvent(Request r)
Process a request. |
void |
removeOwner(Owner c)
Interface Owned |
void |
sendEvent(Request r)
Forwards request r to other clients, listeners added by Dispatcher. |
| Methods inherited from class org.vrspace.server.PublicVRObject |
setValue |
| Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, 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 |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OwnedVRObject()
| Method Detail |
public void sendEvent(Request r)
throws RequestException
sendEvent in class VRObjectRequestException
public void ownershipRequired(Request r)
throws RequestException
RequestExceptionpublic void processEvent(Request r)
public void addOwner(Owner c)
addOwner in interface Ownedpublic void removeOwner(Owner c)
removeOwner in interface Ownedpublic boolean isOwned(Owner c)
isOwned in interface Ownedpublic void notifyOwners(java.lang.Object o)
notifyOwners in interface Owned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||