org.almendra.janet.cas.spaces
Class AbstractObjectSpace

java.lang.Object
  extended by org.almendra.janet.cas.spaces.AbstractObjectSpace
Direct Known Subclasses:
ClusterSpace, ObjectSpace

public abstract class AbstractObjectSpace
extends java.lang.Object


Field Summary
protected  java.util.Map attachers
          The map to store ISerializableAttacher objects by the key of the object they are associated with.
protected  java.util.Map detachers
          The map to store ISerializableDetacher objects by the key of the object they are associated with.
protected  EDU.oswego.cs.dl.util.concurrent.ReentrantLock lock
          Lock object to synchronize access collection objects.
protected  java.util.Map objects
          The map to store objects stored by the object space.
 
Constructor Summary
AbstractObjectSpace()
          Creates a new AbstractObjectSpace object.
 
Method Summary
 boolean contains(java.lang.String key)
           
protected  void throwNoInstalledAttacher(java.lang.String key)
           
protected  void throwNoInstalledDetacher(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objects

protected java.util.Map objects
The map to store objects stored by the object space.


lock

protected EDU.oswego.cs.dl.util.concurrent.ReentrantLock lock
Lock object to synchronize access collection objects.


attachers

protected java.util.Map attachers
The map to store ISerializableAttacher objects by the key of the object they are associated with.


detachers

protected java.util.Map detachers
The map to store ISerializableDetacher objects by the key of the object they are associated with.

Constructor Detail

AbstractObjectSpace

public AbstractObjectSpace()
Creates a new AbstractObjectSpace object.

Method Detail

contains

public boolean contains(java.lang.String key)

throwNoInstalledDetacher

protected void throwNoInstalledDetacher(java.lang.String key)
                                 throws NoInstalledDetacher
Parameters:
key -
Throws:
NoInstalledDetacher

throwNoInstalledAttacher

protected void throwNoInstalledAttacher(java.lang.String key)
                                 throws NoInstalledAttacher
Parameters:
key -
Throws:
NoInstalledAttacher