infovis.metadata
Class AggregationFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.metadata.AggregationFactory
All Implemented Interfaces:
AggregationConstants, Constants

public class AggregationFactory
extends BasicFactory
implements AggregationConstants

Class AggregationFactory manages hierarchical aggregation in columns.

Version:
$Revision: 1.3 $
Author:
Jean-Daniel Fekete

Field Summary
static AggregationFactory instance
          Instance of AggregationFactory.
 
Fields inherited from interface infovis.metadata.AggregationConstants
AGGREGATE_COMPATIBLE, AGGREGATE_NO, AGGREGATE_YES, AGGREGATION_TYPE, AGGREGATION_TYPE_ADDITIVE, AGGREGATION_TYPE_ATLEAF, AGGREGATION_TYPE_CONCAT, AGGREGATION_TYPE_MAX, AGGREGATION_TYPE_MEAN, AGGREGATION_TYPE_MIN, AGGREGATION_TYPE_NONE
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Constructor Summary
AggregationFactory()
           
 
Method Summary
 Aggregation get(Column col, Tree tree)
           
 Aggregation get(String type)
           
static Aggregation getAggregation(Column col, Tree tree)
           
static String getAggregationType(Column col, Tree tree)
          Returns the aggregation type name of a specified column in a specified tree.
static AggregationFactory getInstance()
          Returns the instance.
 String getType(Column col, Tree tree)
           
 String guessAggregationType(Column col, Tree tree)
           
 Iterator iterator()
           
 Aggregation putAggregationType(String type, Aggregation aggr)
           
 
Methods inherited from class infovis.utils.BasicFactory
loadProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final AggregationFactory instance
Instance of AggregationFactory.

Constructor Detail

AggregationFactory

public AggregationFactory()
Method Detail

getInstance

public static AggregationFactory getInstance()
Returns the instance.

Returns:
the instance.

getAggregationType

public static String getAggregationType(Column col,
                                        Tree tree)
Returns the aggregation type name of a specified column in a specified tree.

Parameters:
col - the column
tree - the tree
Returns:
the aggregation type name

getAggregation

public static Aggregation getAggregation(Column col,
                                         Tree tree)

get

public Aggregation get(String type)

get

public Aggregation get(Column col,
                       Tree tree)

getType

public String getType(Column col,
                      Tree tree)

guessAggregationType

public String guessAggregationType(Column col,
                                   Tree tree)

putAggregationType

public Aggregation putAggregationType(String type,
                                      Aggregation aggr)

iterator

public Iterator iterator()


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.