net.tinyos.tinydb
Class Catalog
java.lang.Object
|
+--net.tinyos.tinydb.Catalog
- public class Catalog
- extends java.lang.Object
Catalog manages a list of attributes that are available to
TinyDB queries. Currently this class just reads attributes from
a text file, but future versions should support dynamically
building attribute lists from nearby motes.
Field Summary |
static net.tinyos.tinydb.Catalog |
curCatalog
A static variable containing the current (global) catalog |
Constructor Summary |
Catalog()
Constructor : create an empty catalog |
Catalog(java.lang.String catalogFile)
Read a catalog from the specified file |
Method Summary |
void |
addAttr(net.tinyos.tinydb.QueryField f)
|
void |
addAttr(net.tinyos.tinydb.QueryField f,
boolean log)
|
void |
addListener(net.tinyos.tinydb.CatalogListener cl)
|
net.tinyos.tinydb.QueryField |
getAttr(int idx)
|
net.tinyos.tinydb.QueryField |
getAttr(java.lang.String name)
|
static void |
main(java.lang.String[] argv)
|
int |
numAttrs()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
curCatalog
public static net.tinyos.tinydb.Catalog curCatalog
- A static variable containing the current (global) catalog
Catalog
public Catalog()
- Constructor : create an empty catalog
Catalog
public Catalog(java.lang.String catalogFile)
- Read a catalog from the specified file
numAttrs
public int numAttrs()
getAttr
public net.tinyos.tinydb.QueryField getAttr(int idx)
getAttr
public net.tinyos.tinydb.QueryField getAttr(java.lang.String name)
addAttr
public void addAttr(net.tinyos.tinydb.QueryField f,
boolean log)
addAttr
public void addAttr(net.tinyos.tinydb.QueryField f)
addListener
public void addListener(net.tinyos.tinydb.CatalogListener cl)
main
public static void main(java.lang.String[] argv)