Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class CVWCache  view CVWCache download CVWCache.java

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.mitre.cvw.CVWCache
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class CVWCache
extends java.util.Hashtable

current client-side object cache implementation, singleton class

Version:
1.0 11/12/96

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
private static CVWCache cvwCache
          class methods/var
(package private)  int numValue
           
(package private)  java.lang.String strValue
           
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
(package private) CVWCache(int size, float loadFactor)
          end class methods/var
 
Method Summary
 void cacheObject(CVWDocument cacheRef, CVWDocument cvwDoc)
          Caches a CVWDocument object
 void cacheObject(CVWObject cvwObj)
          Puts the object into the cache, either creating an entry or updating an existing object.
 void cacheObject(CVWWhiteboard cacheRef, CVWWhiteboard cvwWB)
          Caches a CVWWhiteboard object
 void cacheObject(MCPCommand mcpCmd)
          Creates the appropriate object within the CVWObject hierarchy given a MCPCommand.
 CVWObject get(CVWObjNum cvwObjNum)
          Returns the cached object given an object number
 CVWObject get(int val)
          Returns the cached object given an object number integer
 CVWObject get(java.lang.String str)
          Returns the cached object given an object number string
static CVWCache getInstance()
          Returns the current instance of the CVWCache.
private static void setCVWCache(CVWCache cache)
          Sets the static variable
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

strValue

java.lang.String strValue

numValue

int numValue

cvwCache

private static CVWCache cvwCache
class methods/var

Constructor Detail

CVWCache

CVWCache(int size,
         float loadFactor)
end class methods/var

Method Detail

getInstance

public static CVWCache getInstance()
Returns the current instance of the CVWCache.


setCVWCache

private static void setCVWCache(CVWCache cache)
Sets the static variable


cacheObject

public void cacheObject(MCPCommand mcpCmd)
Creates the appropriate object within the CVWObject hierarchy given a MCPCommand.
MCP receive cvw-object-info


cacheObject

public void cacheObject(CVWObject cvwObj)
Puts the object into the cache, either creating an entry or updating an existing object. If it is an update, notify any observers.


cacheObject

public void cacheObject(CVWDocument cacheRef,
                        CVWDocument cvwDoc)
Caches a CVWDocument object


cacheObject

public void cacheObject(CVWWhiteboard cacheRef,
                        CVWWhiteboard cvwWB)
Caches a CVWWhiteboard object


get

public CVWObject get(java.lang.String str)
Returns the cached object given an object number string


get

public CVWObject get(int val)
Returns the cached object given an object number integer


get

public CVWObject get(CVWObjNum cvwObjNum)
Returns the cached object given an object number