© 2006-2007 ETH Zurich

org.ximtec.igesture.batch
Class BatchTools

java.lang.Object
  extended by org.ximtec.igesture.batch.BatchTools

public class BatchTools
extends Object

Some helper methods.

Version:
1.0 Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Constructor Summary
BatchTools()
           
 
Method Summary
static HashSet<HashSet<String>> filterSet(HashSet<HashSet<String>> powerSet, int min, int max)
          Filters a set of sets.
static HashSet<HashSet<String>> getPowerSet(HashSet<String> set)
          Creates the power set of a given set.
static void writeResultsOnDisk(File outputDirectory, BatchResultSet resultSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchTools

public BatchTools()
Method Detail

filterSet

public static HashSet<HashSet<String>> filterSet(HashSet<HashSet<String>> powerSet,
                                                 int min,
                                                 int max)
Filters a set of sets. The condition are the number of elements in the set.

Parameters:
powerSet - the set to be filtered.
min - the minimal number of elements in the set.
max - the maximal number of elements in the set.
Returns:
the filtered set.

getPowerSet

public static HashSet<HashSet<String>> getPowerSet(HashSet<String> set)
Creates the power set of a given set.

Parameters:
set - the set a power set has to be created from.
Returns:
the power set.

writeResultsOnDisk

public static void writeResultsOnDisk(File outputDirectory,
                                      BatchResultSet resultSet)

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.