|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.datasource.GeneratorXMLDatabaseConnection
public class GeneratorXMLDatabaseConnection
Nested Class Summary | |
---|---|
static class |
GeneratorXMLDatabaseConnection.Parameterizer
Parameterization class. |
Field Summary | |
---|---|
private Random |
clusterRandom
Random generator used for initializing cluster generators. |
static OptionID |
CONFIGFILE_ID
Parameter to give the configuration file |
GeneratorMain |
gen
The actual generator class |
private static String |
GENERATOR_SCHEMA_FILE
File name of the generators XML Schema file. |
private static Logging |
logger
Logger |
static OptionID |
RANDOMSEED_ID
Parameter to give the configuration file |
static OptionID |
SIZE_SCALE_ID
Parameter to give the configuration file |
(package private) double |
sizescale
Parameter for scaling the cluster sizes. |
(package private) File |
specfile
The configuration file. |
private boolean |
testAgainstModel
Set testAgainstModel flag |
static Pattern |
WHITESPACE_PATTERN
A pattern defining whitespace. |
Constructor Summary | |
---|---|
GeneratorXMLDatabaseConnection(File specfile,
double sizescale,
Random clusterRandom)
Constructor. |
Method Summary | |
---|---|
MultipleObjectsBundle |
loadData()
Returns the initial data for a database. |
private void |
loadXMLSpecification()
Load the XML configuration file. |
private Vector |
parseVector(String s)
Parse a string into a vector. |
private void |
processElementClipping(GeneratorSingleCluster cluster,
Node cur)
Process a 'clipping' Element in the XML stream. |
private void |
processElementCluster(Node cur)
Process a 'cluster' Element in the XML stream. |
private void |
processElementDataset(Node cur)
Process a 'dataset' Element in the XML stream. |
private void |
processElementGamma(GeneratorSingleCluster cluster,
Node cur)
Process a 'gamma' Element in the XML stream. |
private void |
processElementNormal(GeneratorSingleCluster cluster,
Node cur)
Process a 'normal' Element in the XML stream. |
private void |
processElementPoint(LinkedList<Vector> points,
Node cur)
Parse a 'point' element (point vector for a static cluster) |
private void |
processElementRotate(GeneratorSingleCluster cluster,
Node cur)
Process a 'rotate' Element in the XML stream. |
private void |
processElementStatic(Node cur)
Process a 'static' cluster Element in the XML stream. |
private void |
processElementTranslate(GeneratorSingleCluster cluster,
Node cur)
Process a 'translate' Element in the XML stream. |
private void |
processElementUniform(GeneratorSingleCluster cluster,
Node cur)
Process a 'uniform' Element in the XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Logging logger
public static final Pattern WHITESPACE_PATTERN
public static final OptionID CONFIGFILE_ID
public static final OptionID RANDOMSEED_ID
public static final OptionID SIZE_SCALE_ID
private static final String GENERATOR_SCHEMA_FILE
File specfile
double sizescale
public GeneratorMain gen
private Random clusterRandom
private boolean testAgainstModel
Constructor Detail |
---|
public GeneratorXMLDatabaseConnection(File specfile, double sizescale, Random clusterRandom)
specfile
- Specification filesizescale
- Size scalingclusterRandom
- Random number generatorMethod Detail |
---|
public MultipleObjectsBundle loadData()
DatabaseConnection
loadData
in interface DatabaseConnection
private void loadXMLSpecification() throws UnableToComplyException
UnableToComplyException
private void processElementDataset(Node cur) throws UnableToComplyException
cur
- Current document nod
UnableToComplyException
private void processElementCluster(Node cur) throws UnableToComplyException
cur
- Current document nod
UnableToComplyException
private void processElementUniform(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementNormal(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementGamma(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementRotate(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementTranslate(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementClipping(GeneratorSingleCluster cluster, Node cur) throws UnableToComplyException
cluster
- cur
- Current document nod
UnableToComplyException
private void processElementStatic(Node cur) throws UnableToComplyException
cur
- Current document nod
UnableToComplyException
private void processElementPoint(LinkedList<Vector> points, Node cur) throws UnableToComplyException
points
- current list of points (to append to)cur
- Current document nod
UnableToComplyException
private Vector parseVector(String s) throws UnableToComplyException
s
- String to parse
UnableToComplyException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |