Package prefuse.data.tuple

Implementing classes for data tuples, object proxies to a row of table data.

See:
          Description

Interface Summary
TupleSet A collection of data tuples.
 

Class Summary
AbstractTupleSet Abstract base class for TupleSet implementations.
CompositeTupleSet TupleSet implementation for treating a collection of tuple sets as a single, composite tuple set.
DefaultTupleSet TupleSet implementation that maintains a set of heterogeneous Tuples -- tuples that can come from any backing data source.
TableEdge Edge implementation that reads Edge data from a backing edge table.
TableNode Node implementation that reads Node data from a backing node table.
TableTuple Tuple implementation that pulls values from a backing data Table.
TupleManager Manager class for Tuples.
 

Package prefuse.data.tuple Description

Implementing classes for data tuples, object proxies to a row of table data. Prefuse data tables can be accessed and manipulated directly, indexed by row numbers, but that is not always the most convenient. The Tuple interface provides an object-relational mapping, providing an object-oriented interface to a row of table data. Furthermore, tuples provide enhanced safety, as a deleted row will result in an invalidated tuple, while a row index provides no such guarantees.

Groups of tuples can be collected and monitored using the TupleSet interface, which Table, Graph, and Tree all implement. Other TupleSet instances can be used to collect Tuples from any number of backing tables (DefaultTupleSet) or aggregate multiple TupleSets (CompositeTupleSet).

Graph nodes and edges are also represented as Tuples, with additional methods for accessing the underlying graph structure. Any methods that reference a tree structure will first request a spanning tree from the backing graph.

Tuples are created and stored by TupleManager instances. To customize tuple creation, one needs to register the appropriate concrete Tuple type with an enclosing data table. This is done using the Table.Table(int,int,Class) constructor.



Copyright © 2007 Regents of the University of California