edu.indiana.iucbrf.feature.featurespec
Class CCBRFeatureSpec

java.lang.Object
  extended by edu.indiana.iucbrf.feature.featurespec.FeatureSpec
      extended by edu.indiana.iucbrf.feature.featurespec.CCBRFeatureSpec
All Implemented Interfaces:
SwingRepresentable, java.io.Serializable

public class CCBRFeatureSpec
extends FeatureSpec

A FeatureSpec for CCBRDomains (rather than just CBR Domains), containing some extra instance variables appropriate only in CCBR. Most notably, there is a Question instance variable, which handles the phrasing of the question to be asked when seeking the value of a feature in conversation.

See Also:
Serialized Form

Field Summary
protected  Question question
           
 
Fields inherited from class edu.indiana.iucbrf.feature.featurespec.FeatureSpec
description, extraData, featureKey, format, isPrintable, isSubFeature, LABEL_WIDTH, MAX_NAME_LENGTH, name, NUMERICAL_FEATURE_RELAXATION_AMOUNT_KEY, standardConstructor, TABLE_FEATURE_ROWS_DATA_KEY, type
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
protected CCBRFeatureSpec()
           
  CCBRFeatureSpec(FeatureKey featureKey, java.lang.String description, java.lang.String question, java.lang.String typeName, CCBRDomain domain)
          Construct a CCBRFeatureSpec with the given featureKey, and a null description, question, and type.
  CCBRFeatureSpec(FeatureKey featureKey, java.lang.String name, java.lang.String description, java.lang.String question, java.lang.String typeName, CCBRDomain domain)
          Creates a new instance of CCBRFeatureSpec
 
Method Summary
 boolean equals(java.lang.Object other)
           
 Question getQuestion()
           
 void setQuestion(Question question)
           
 void setQuestion(java.lang.String question, CCBRDomain domain)
           
 java.lang.String toString()
           
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
protected  javax.swing.JComponent toSwingHelper(int detailLevel, int numberOfSlots)
           
 
Methods inherited from class edu.indiana.iucbrf.feature.featurespec.FeatureSpec
getDefaultFeatureDifferentiator, getDescription, getExtraData, getExtraDataHashMap, getFeatureKey, getFormat, getName, getStandardConstructor, getType, getTypeDescription, getVariableType, isPrintable, isSubFeature, putExtraData, setDescription, setFormat, setIsPrintable, setIsSubFeature, setName, setStandardConstructor, setStandardConstructor, setStandardConstructor, setType, toSwingHelper
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

question

protected Question question
Constructor Detail

CCBRFeatureSpec

protected CCBRFeatureSpec()

CCBRFeatureSpec

public CCBRFeatureSpec(FeatureKey featureKey,
                       java.lang.String description,
                       java.lang.String question,
                       java.lang.String typeName,
                       CCBRDomain domain)
Construct a CCBRFeatureSpec with the given featureKey, and a null description, question, and type.


CCBRFeatureSpec

public CCBRFeatureSpec(FeatureKey featureKey,
                       java.lang.String name,
                       java.lang.String description,
                       java.lang.String question,
                       java.lang.String typeName,
                       CCBRDomain domain)
Creates a new instance of CCBRFeatureSpec

Method Detail

getQuestion

public Question getQuestion()

setQuestion

public void setQuestion(java.lang.String question,
                        CCBRDomain domain)

setQuestion

public void setQuestion(Question question)

toString

public java.lang.String toString()
Overrides:
toString in class FeatureSpec

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Description copied from interface: SwingRepresentable
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable
Overrides:
toSwing in class FeatureSpec

toSwingHelper

protected javax.swing.JComponent toSwingHelper(int detailLevel,
                                               int numberOfSlots)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class FeatureSpec