edu.udo.cs.yale
Class MacroHandler

java.lang.Object
  extended by edu.udo.cs.yale.MacroHandler

public class MacroHandler
extends java.lang.Object

This class can be used to store macros for an experiment which can be defined by the operator MacroDefinitionOperator. It also defines some standard macros like the experiment path or file name.

Version:
$Id: MacroHandler.java,v 2.1 2006/10/01 23:06:17 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  Experiment experiment
           
private static int EXPERIMENT_FILE
           
private static int EXPERIMENT_NAME
           
private static int EXPERIMENT_PATH
           
private  java.util.Map<java.lang.String,java.lang.String> macroMap
           
private static java.lang.String[] PREDEFINED_MACROS
           
 
Constructor Summary
MacroHandler(Experiment experiment)
           
 
Method Summary
 void addMacro(java.lang.String macro, java.lang.String value)
           
 void clear()
           
 java.lang.String getMacro(java.lang.String macro)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREDEFINED_MACROS

private static final java.lang.String[] PREDEFINED_MACROS

EXPERIMENT_NAME

private static final int EXPERIMENT_NAME
See Also:
Constant Field Values

EXPERIMENT_FILE

private static final int EXPERIMENT_FILE
See Also:
Constant Field Values

EXPERIMENT_PATH

private static final int EXPERIMENT_PATH
See Also:
Constant Field Values

experiment

private Experiment experiment

macroMap

private java.util.Map<java.lang.String,java.lang.String> macroMap
Constructor Detail

MacroHandler

public MacroHandler(Experiment experiment)
Method Detail

clear

public void clear()

addMacro

public void addMacro(java.lang.String macro,
                     java.lang.String value)

getMacro

public java.lang.String getMacro(java.lang.String macro)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2006