Reasoner
Class ObjectTemplate

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

public class ObjectTemplate
extends java.lang.Object

Maintains a collection of details used to build a set of object inferences that cover the range of plausible interpretations for a single concept instance.

Version:
Created 27 August 2003
Author:
Dan Tappan
See Also:
ObjectTemplateSet, ObjectInference

Nested Class Summary
 class ObjectTemplate.ConstraintWrapper
          Defines an association between a constraint node and a target label to indicate what the constraint applies to.
 
Field Summary
 PlausibilityInterval dimension_interval_depth
           
 PlausibilityInterval dimension_interval_height
           
 PlausibilityInterval dimension_interval_width
           
 DOFAdjustmentNode dof_adjustment_node
           
private  ConceptInstance m_concept_instance
           
private  java.util.ArrayList m_constraint_nodes
           
private  java.lang.String m_name
           
 java.lang.String model_name
           
 
Constructor Summary
ObjectTemplate(ConceptInstance concept_instance)
          Creates a new object template associated with a concept instance
 
Method Summary
 void addConstraintNode(ConstraintNode constraint_node, java.util.ArrayList target_labels)
          Adds a constraint node to this object template and associates it with a set of target labels.
 ConceptInstance getConceptInstance()
          Returns the concept instance associated with this object template.
 java.util.ArrayList getConstraintNodes()
          Returns as a collection of ConstraintWrappers all the constraint nodes that were added to this object template.
 java.util.ArrayList getConstraintNodes(java.lang.String target_label)
          Returns all the constraint nodes added to this object template that are directed at a target.
 java.lang.String getName()
          Returns the name of this object template, which is also the name of the concept instance it is associated with.
 java.lang.String toHTMLString()
          Returns an indented HTML string representation of this object to be displayed by the Representation Viewer.
 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_name

private java.lang.String m_name

m_concept_instance

private ConceptInstance m_concept_instance

m_constraint_nodes

private java.util.ArrayList m_constraint_nodes

dimension_interval_height

public PlausibilityInterval dimension_interval_height

dimension_interval_width

public PlausibilityInterval dimension_interval_width

dimension_interval_depth

public PlausibilityInterval dimension_interval_depth

model_name

public java.lang.String model_name

dof_adjustment_node

public DOFAdjustmentNode dof_adjustment_node
Constructor Detail

ObjectTemplate

public ObjectTemplate(ConceptInstance concept_instance)
Creates a new object template associated with a concept instance

Parameters:
concept_instance - - the concept instance
Method Detail

addConstraintNode

public void addConstraintNode(ConstraintNode constraint_node,
                              java.util.ArrayList target_labels)
Adds a constraint node to this object template and associates it with a set of target labels.

Parameters:
constraint_node - - the constraint node
target_labels - - the target labels
See Also:
getConstraintNodes()

getConceptInstance

public ConceptInstance getConceptInstance()
Returns the concept instance associated with this object template.

Returns:
the concept instance

getConstraintNodes

public java.util.ArrayList getConstraintNodes()
Returns as a collection of ConstraintWrappers all the constraint nodes that were added to this object template.

Returns:
the constraint nodes
See Also:
addConstraintNode(KnowledgeBase.ConstraintNode, java.util.ArrayList), ObjectTemplate.ConstraintWrapper

getConstraintNodes

public java.util.ArrayList getConstraintNodes(java.lang.String target_label)
Returns all the constraint nodes added to this object template that are directed at a target. Each is wrapped in a ConstraintWrapper to bind the constraint with its target.

Parameters:
target_label - - the target label to filter on
Returns:
the constraint nodes
See Also:
addConstraintNode(KnowledgeBase.ConstraintNode, java.util.ArrayList)

getName

public java.lang.String getName()
Returns the name of this object template, which is also the name of the concept instance it is associated with.

Returns:
the name

toHTMLString

public java.lang.String toHTMLString()
Returns an indented HTML string representation of this object to be displayed by the Representation Viewer.

Returns:
the String representation
See Also:
RepresentationViewer

toString

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

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