It organizes the cluster table according to the config file w2config/algs/clusterTable.xml
Public Member Functions | |
ClusterTableCreator (const code::XML::Element &table_element) | |
Gets the actions from the config file specified. | |
void | addInput (const code::Index::Record &rec) |
Add index record from which to extract extra cluster field to add into table properties. | |
virtual code::SmartPtr< code::DataType > | createTable (const code::Time &latestTime, const std::vector< ClusterTableRegion > ®ions, const std::string &scale=std::string()) |
Create the cluster table based on all the fields already known, and the current time. | |
void | createOutputGrids (const GridType &clusterLabels, const std::vector< ClusterTableRegion > ®ions, const code::DataTable &clusterTable, std::vector< GridType > &outputs) |
virtual | ~ClusterTableCreator () |
ClusterTableCreator () | |
no-op constructor. | |
void | setExampleGridForRemapping (const GridType &grid) |
If such an example grid is not set, no remapping will be done. | |
Static Public Member Functions | |
static ClusterTableCreator< GridType > | newInstance (const code::URL &xml_file) |
Create ClusterTableCreator from the XML config file. | |
Classes | |
struct | OutputGridInfo |
w2kmeans::ClusterTableCreator< GridType >::ClusterTableCreator | ( | const code::XML::Element & | table_element | ) |
Gets the actions from the config file specified.
virtual w2kmeans::ClusterTableCreator< GridType >::~ClusterTableCreator | ( | ) | [inline, virtual] |
w2kmeans::ClusterTableCreator< GridType >::ClusterTableCreator | ( | ) | [inline] |
no-op constructor.
void w2kmeans::ClusterTableCreator< GridType >::addInput | ( | const code::Index::Record & | rec | ) |
Add index record from which to extract extra cluster field to add into table properties.
void w2kmeans::ClusterTableCreator< GridType >::createOutputGrids | ( | const GridType & | clusterLabels, | |
const std::vector< ClusterTableRegion > & | regions, | |||
const code::DataTable & | clusterTable, | |||
std::vector< GridType > & | outputs | |||
) |
virtual code::SmartPtr<code::DataType> w2kmeans::ClusterTableCreator< GridType >::createTable | ( | const code::Time & | latestTime, | |
const std::vector< ClusterTableRegion > & | regions, | |||
const std::string & | scale = std::string() | |||
) | [virtual] |
Create the cluster table based on all the fields already known, and the current time.
static ClusterTableCreator<GridType> w2kmeans::ClusterTableCreator< GridType >::newInstance | ( | const code::URL & | xml_file | ) | [static] |
Create ClusterTableCreator from the XML config file.
Creates no-op ClusterTableCreator if the file doesn't exist.
void w2kmeans::ClusterTableCreator< GridType >::setExampleGridForRemapping | ( | const GridType & | grid | ) | [inline] |
If such an example grid is not set, no remapping will be done.
This function works only once; after that it's a no-op.