edu.udo.cs.yale.gui.templates
Class Template

java.lang.Object
  extended by edu.udo.cs.yale.gui.templates.Template

public class Template
extends java.lang.Object

A template experiment consisting of name, short description, a name for an experiment file and a list parameters given as String pairs (operator, key). Templates must look like this:

   one line for the name
   one line of html description
   one line for the experiment file name
   Rest of the file: some important parameters in the form operatorname.parametername
 

Version:
$Id: Template.java,v 1.2 2006/08/03 14:39:29 ingomierswa Exp $
Author:
Ingo Mierswa, Simon Fischer

Field Summary
private  java.lang.String configFile
           
private  java.lang.String description
           
private  java.lang.String name
           
private  java.util.List<java.lang.String[]> parameters
           
private  java.io.File templateFile
           
 
Constructor Summary
Template()
           
Template(java.io.File file)
           
Template(java.lang.String name, java.lang.String description, java.lang.String configFile, java.util.List<java.lang.String[]> parameters)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.io.File getFile()
           
 java.lang.String getFilename()
           
 java.lang.String getName()
           
 java.util.List<java.lang.String[]> getParameters()
           
 void save(java.io.File file)
           
 java.lang.String toHTML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

description

private java.lang.String description

configFile

private java.lang.String configFile

parameters

private java.util.List<java.lang.String[]> parameters

templateFile

private java.io.File templateFile
Constructor Detail

Template

public Template()

Template

public Template(java.io.File file)
         throws java.io.IOException
Throws:
java.io.IOException

Template

public Template(java.lang.String name,
                java.lang.String description,
                java.lang.String configFile,
                java.util.List<java.lang.String[]> parameters)
Method Detail

getFile

public java.io.File getFile()

getFilename

public java.lang.String getFilename()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getParameters

public java.util.List<java.lang.String[]> getParameters()

toHTML

public java.lang.String toHTML()

save

public void save(java.io.File file)
          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2006