| |
|
| java.lang.Object org.mandarax.kernel.FeatureDescriptions
All known Subclasses: org.mandarax.kernel.KnowledgeBaseFeatureDescriptions, org.mandarax.kernel.InferenceEngineFeatureDescriptions,
FeatureDescriptions | abstract public class FeatureDescriptions (Code) | | Abstract class providing a description of features of an object.
Used to describe features of knowledge bases and inference engines.
The most easiest way to use this class is to define an anonymous
subclass, to override the constructor and to add a list of support()
statements in the initialize() for the supported features.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0 |
FeatureDescriptions | public FeatureDescriptions()(Code) | | Constructor.
|
getFeatureDescription | public String getFeatureDescription(String featureName)(Code) | | Get a description string of the respective feature.
the description Parameters: featureName - the name of the feature |
getSupportedFeatures | public Collection getSupportedFeatures()(Code) | | Get a collection of all supported features.
a collection of supported features |
initialize | protected void initialize()(Code) | | Initialize the object. Override this method and invoke this
implementation using super.initialize() first.
|
isFeatureSupported | public boolean isFeatureSupported(String aFeatureName)(Code) | | Indicates whether the named feature is supported.
true if the respective featurte is supported, false otherwise Parameters: aFeatureName - the name of the feature |
support | protected void support(String featureName)(Code) | | Register a feature to be supported.
Parameters: featureName - the name of the feature |
|
|
|