autoweka
Class ClassParams

java.lang.Object
  extended by autoweka.ClassParams

public class ClassParams
extends java.lang.Object

Captures all the Parameters and Conditionals for a specific class that Auto-WEKA will search over


Constructor Summary
ClassParams(java.lang.String fileName)
          Parses a given .param file to extract all the Parameter and Conditional objects
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> filterParams(java.util.Map<java.lang.String,java.lang.String> inputMap)
          Given a map of parameter,value pairs, only returns a new map that has only params that are active based on the conditional rules
 java.util.ArrayList<Conditional> getConditionals()
          Gets the list of all conditionals for this class
 java.util.HashMap<java.lang.String,Parameter> getParameterMap()
          Gets a map between the parameter names and the actuall parameters for this class
 java.util.ArrayList<Parameter> getParameters()
          Gets the list of all parameters for this class
 java.lang.String getTargetClass()
          Gets the canonical name of the class that these parameters capture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassParams

public ClassParams(java.lang.String fileName)
Parses a given .param file to extract all the Parameter and Conditional objects

Method Detail

filterParams

public java.util.Map<java.lang.String,java.lang.String> filterParams(java.util.Map<java.lang.String,java.lang.String> inputMap)
Given a map of parameter,value pairs, only returns a new map that has only params that are active based on the conditional rules

Parameters:
inputMap - The map consisting of parameter name to values that need to be filtered

getTargetClass

public java.lang.String getTargetClass()
Gets the canonical name of the class that these parameters capture


getParameters

public java.util.ArrayList<Parameter> getParameters()
Gets the list of all parameters for this class


getConditionals

public java.util.ArrayList<Conditional> getConditionals()
Gets the list of all conditionals for this class


getParameterMap

public java.util.HashMap<java.lang.String,Parameter> getParameterMap()
Gets a map between the parameter names and the actuall parameters for this class