Reasoner
Class ObjectTemplateSet

java.lang.Object
  |
  +--Reasoner.ObjectTemplateSet

public class ObjectTemplateSet
extends java.lang.Object

Maintains a collection of ObjectTemplate objects..

Version:
Created 27 August 2003
Author:
Dan Tappan
See Also:
ObjectTemplate

Field Summary
private  java.util.Hashtable m_template_set
           
 
Constructor Summary
ObjectTemplateSet()
          Creates an empty collection.
 
Method Summary
 void addObjectTemplate(ObjectTemplate object_template)
          Adds a ObjectTemplate to this collection.
 ObjectTemplate getObjectTemplate(java.lang.String template_name)
          Returns an ObjectTemplate from this collection.
 int getObjectTemplateCount()
          Returns the number of ObjectTemplatess in this collection.
 java.util.Collection getObjectTemplates()
          Returns a list of ObjectTemplatess in this collection.
 java.lang.String toString()
          Returns a string representation of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_template_set

private java.util.Hashtable m_template_set
Constructor Detail

ObjectTemplateSet

public ObjectTemplateSet()
Creates an empty collection.

Method Detail

addObjectTemplate

public void addObjectTemplate(ObjectTemplate object_template)
                       throws java.lang.Exception
Adds a ObjectTemplate to this collection.

Parameters:
object_template - - the object template
Throws:
java.lang.Exception - - if the object template is already present in the collection

getObjectTemplate

public ObjectTemplate getObjectTemplate(java.lang.String template_name)
                                 throws java.lang.Exception
Returns an ObjectTemplate from this collection.

Parameters:
template_name - - the template name
Returns:
the object template
Throws:
java.lang.Exception - - if the object template is not present in the collection

getObjectTemplates

public java.util.Collection getObjectTemplates()
Returns a list of ObjectTemplatess in this collection.

Returns:
the list

getObjectTemplateCount

public int getObjectTemplateCount()
Returns the number of ObjectTemplatess in this collection.

Returns:
the count

toString

public java.lang.String toString()
Returns a string representation of this class.

Overrides:
toString in class java.lang.Object
Returns:
the String representation