de.uds.cs.st.dd.core.splitter
Class DefaultSplitter
java.lang.Object
|
+--de.uds.cs.st.dd.core.splitter.DefaultSplitter
- All Implemented Interfaces:
- Splitter
- public class DefaultSplitter
- extends Object
- implements Splitter
The default splitter class splits any given configuration into n equally
sized sub configurations (without interpreting the configurations).
- Author:
-
Philipp Bouillon
Constructor Summary |
DefaultSplitter()
Creates a new DefaultSplitter object. |
Method Summary |
TConfiguration |
split(TConfiguration c,
int n)
The default splitter simply creates n equally sized subsets of the
given configuration and stores the result in a new configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSplitter
public DefaultSplitter()
- Creates a new DefaultSplitter object.
split
public TConfiguration split(TConfiguration c,
int n)
- The default splitter simply creates n equally sized subsets of the
given configuration and stores the result in a new configuration.
- Specified by:
split
in interface Splitter
- Parameters:
c
- configuration to split.n
- number of subsets to create.
- Returns:
- TConfiguration holds the generated subsets.