public virtual Object predict(Example e)
{
String attrValue = e.getAttributeValueAsString(attributeName);
if (nodes.ContainsKey(attrValue))
{
return nodes[attrValue].predict(e);
}
else
{
throw new ApplicationException("no node exists for attribute value "
+ attrValue);
}
}