Given a list of current attrs in the query and a (possibly null) attr to add
to that list, return true iff the addition is OK (or newf == null) AND
the current settings (e.g.
groupFieldOp is a constant representing a simple arithmetic operator
that will be performed on the value of the group by attribute before
the groups are defined.
Return the text of the SQL for this query as set by setSQL (Note that TinyDBQuery does not
include an interface for generating SQL from an arbitrary query.)
Initialize the static variables that TinyDB needs to have set up to run
Note that this does not show any of the TinyDB UI, so it can be used
in apps that have their own user interface
Initialize the static variables that TinyDB needs to have set up to run
Note that this does not show any of the TinyDB UI, so it can be used
in apps that have their own user interface
MagnetFrame is a simple visualization to display an XDIM x YDIM array
that represent a grid of sensors and to darken circles representing
sensors whose magnetometer readings go above some threshold.
Process a radio message
Assumes results are QueryResults -- parses them, and maintains the following
data structures:
- most recent epoch heard for each query
- most recent (paritially aggregated) result for each query
Notifies ResultListeners for all results every time a value arries
Notifies ResultListeners for raw results for a pariticular query id every time a result for that query arrives
Notifies ResultListeners for processed results from the current epoch every time a new epoch begins; the aggregate
combines results that are from the same epoch and are not obviously bogus (e.g.
mif -
Static variable in class net.tinyos.tinydb.TinyDBMain
MIN -
Static variable in class net.tinyos.tinydb.parser.sym
QueryResult accepts a query result in the form of an array of
bytes read off the network (and a query) and parses the results
and provides a number of utility routines to read the
values back.
Background thread used to periodically send information from the root
down into the network; current this information includes:
a message index (so that children can choose root as parent)
information about the typical number of senders during an epoch (so that children can schedule comm)
an epoch number (per query).
SelExpr represents a selection expression; selection expressions are of
the form:
WHERE (field fieldOp fieldConst) OP value
Where field is a field in the query, value is an integral value,
and op is a SelOp.
Fixed comm means that motes transmit in in the time slot corresponding to their
local id * 2; unfixed comm means mote xmit in a random slot selected uniformly
in the range (0 ..