Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints
Class GlobalDistanceFunctionPatternConstraint<D extends DistanceFunction<?,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.GlobalDistanceFunctionPatternConstraint<D>
Type Parameters:
D - Distance function type
All Implemented Interfaces:
GlobalParameterConstraint

Deprecated. Use DistanceParameter instead.

@Deprecated
public class GlobalDistanceFunctionPatternConstraint<D extends DistanceFunction<?,?>>
extends Object
implements GlobalParameterConstraint

Global parameter constraint for testing if a given pattern parameter ( StringParameter) specifies a valid pattern for a given class parameter (ClassParameter) defining a specific distance function.

Author:
Steffi Wanka

Field Summary
private  StringParameter pattern
          Deprecated. Pattern parameter to be checked for validity.
private  ClassParameter<D> restrictionClass
          Deprecated. Class parameter whose restriction class is used to check the validity of the pattern parameter.
 
Constructor Summary
GlobalDistanceFunctionPatternConstraint(StringParameter pattern, ClassParameter<D> restrClass)
          Deprecated. Constructs a global parameter constraint for testing if a given pattern parameter is a valid argument for a given distance function of a class parameter.
 
Method Summary
 String getDescription()
          Deprecated. Returns a description of this global constraint.
 void test()
          Deprecated. Tests if the pattern is valid for the distance function defined by the class parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restrictionClass

private ClassParameter<D extends DistanceFunction<?,?>> restrictionClass
Deprecated. 
Class parameter whose restriction class is used to check the validity of the pattern parameter.


pattern

private StringParameter pattern
Deprecated. 
Pattern parameter to be checked for validity.

Constructor Detail

GlobalDistanceFunctionPatternConstraint

public GlobalDistanceFunctionPatternConstraint(StringParameter pattern,
                                               ClassParameter<D> restrClass)
Deprecated. 
Constructs a global parameter constraint for testing if a given pattern parameter is a valid argument for a given distance function of a class parameter.

Parameters:
pattern - the pattern parameter
restrClass - the class parameter defining a distance function
Method Detail

test

public void test()
          throws ParameterException
Deprecated. 
Tests if the pattern is valid for the distance function defined by the class parameter. If not so, a parameter exception is thrown.

Specified by:
test in interface GlobalParameterConstraint
Throws:
ParameterException - if the parameters don't satisfy the parameter constraint.

getDescription

public String getDescription()
Deprecated. 
Description copied from interface: GlobalParameterConstraint
Returns a description of this global constraint.

Specified by:
getDescription in interface GlobalParameterConstraint
Returns:
a description of this global constraint

Release 0.3 (2010-03-31_1612)