EASE.Sensing.Specification
Class CellStore

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--EASE.Sensing.Specification.CellStore

public class CellStore
extends java.util.Hashtable
implements Constants

At present this class just encapsulates a hashtable for storing all the cells.

It has been done as a class incase a more efficient implementation was required later.

See Also:
Serialized Form

Field Summary
private  Debugger debugger
           
private  java.util.HashMap openFiles
           
private static Specification specification
           
 
Fields inherited from class java.util.Hashtable
count, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
CellStore()
           
CellStore(Specification s)
          If Specification is not null CellStore puts cells into the models for display when files are opened.
 
Method Summary
(package private)  void ()
           
 void add(Cell c)
          Adds a single cell to the store.
 void addVector(java.util.Vector h)
          Adds a vector of cells to the store.
 java.util.Vector getByCellType(java.lang.Class c)
          Returns a Vector containing all the cells from the store that are of Class c.
 java.util.Vector getByReturnType(int reqType)
          Returns a Vector containing cells of a particular return type
 Cell getCell(CellReference cr)
          Get Cell back from reference.
 void openFile(java.lang.String fName)
          Opens up a new file of cells.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

openFiles

private java.util.HashMap openFiles

debugger

private Debugger debugger

specification

private static Specification specification
Constructor Detail

CellStore

public CellStore(Specification s)
If Specification is not null CellStore puts cells into the models for display when files are opened.

Currently called from the constructor of Specification.


CellStore

public CellStore()
Method Detail

getByCellType

public java.util.Vector getByCellType(java.lang.Class c)
Returns a Vector containing all the cells from the store that are of Class c.

Could store and watch for changes?


getByReturnType

public java.util.Vector getByReturnType(int reqType)
Returns a Vector containing cells of a particular return type

openFile

public void openFile(java.lang.String fName)
Opens up a new file of cells. Search path information required here.

getCell

public Cell getCell(CellReference cr)
Get Cell back from reference.


addVector

public void addVector(java.util.Vector h)
Adds a vector of cells to the store.


add

public void add(Cell c)
Adds a single cell to the store.


void ()
Overrides:
in class java.lang.Object