Java 2 Platform
v1.3

edu.umich.visualsoar.misc
Class TemplateManager

java.lang.Object
  |
  +--edu.umich.visualsoar.misc.TemplateManager

public class TemplateManager
extends java.lang.Object

This class manages/encapsulates working with templates


Field Summary
private  java.util.Map templateNameFileAssoc
           
 
Constructor Summary
TemplateManager()
           
 
Method Summary
 java.util.Iterator getTemplateNames()
           
 java.lang.String instantiate(java.lang.String name, edu.umich.visualsoar.operatorwindow.OperatorNode operatorNode)
          Given a name and a place to start, this is instaniate a template
 void load(java.io.File directory)
          Loads in files from the specified directory
private  java.lang.String lookupVariable(java.lang.String varName, edu.umich.visualsoar.operatorwindow.OperatorNode operatorNode)
          A helper function to help with variable name lookup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templateNameFileAssoc

private java.util.Map templateNameFileAssoc
Constructor Detail

TemplateManager

public TemplateManager()
Method Detail

getTemplateNames

public java.util.Iterator getTemplateNames()

instantiate

public java.lang.String instantiate(java.lang.String name,
                                    edu.umich.visualsoar.operatorwindow.OperatorNode operatorNode)
                             throws TemplateInstantiationException
Given a name and a place to start, this is instaniate a template

Parameters:
name - the name of the template
operatorNode - the node for which this template is being instantiated for
Returns:
the instantiated template
TemplateInstantiationException

load

public void load(java.io.File directory)
Loads in files from the specified directory


lookupVariable

private java.lang.String lookupVariable(java.lang.String varName,
                                        edu.umich.visualsoar.operatorwindow.OperatorNode operatorNode)
                                 throws TemplateInstantiationException
A helper function to help with variable name lookup

TemplateInstantiationException

Java 2 Platform
v1.3