Package edu.pitt.isp.sverchkov.data
Class AdTree<A,V> 
java.lang.Object
edu.pitt.isp.sverchkov.data.AdTree<A,V> 
- Type Parameters:
- A- Attribute type
- V- Value type
- All Implemented Interfaces:
- Serializable
An implementation of a static AD tree based on Moore and Lee 1998 (mostly)
 
Indexing of the variables works backwards: (a_i can't have children a_i ... a_m) ... not that that difference is visible in the API.
- Version:
- $Id: $Id
- Author:
- jdramsey
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the number of rows in the data set.Returns the number of rows in the data set.toXML()Converts to XML.toXML(DocumentBuilder builder) Converts to XML.Returns the number of rows in the data set.
- 
Constructor Details- 
AdTreeConstructs an AD tree for the given data set.- Parameters:
- data- The data set.
 
 
- 
- 
Method Details- 
valuesReturns the number of rows in the data set.- Parameters:
- attribute- The attribute to count.
- Returns:
- The number of rows in the data set.
 
- 
countReturns the number of rows in the data set.- Parameters:
- assignment- The assignment to count.
- Returns:
- The number of rows in the data set.
 
- 
countsReturns the number of rows in the data set.- Parameters:
- attribute- The attribute to count.
- assignment- The assignment to count.
- Returns:
- The number of rows in the data set.
 
- 
toXMLConverts to XML.- Returns:
- The XML document.
- Throws:
- ParserConfigurationException- if something goes wrong
 
- 
toXMLConverts to XML.- Parameters:
- builder- The builder.
- Returns:
- The XML document.
 
 
-