absurdist
Class Concept

java.lang.Object
  extended byabsurdist.Concept
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConceptNode, FeatureVectorConcept

public class Concept
extends java.lang.Object
implements java.io.Serializable

Class Concept specifies the data structure for a concept, which contains its name and some features.

See Also:
Serialized Form

Field Summary
 java.lang.String category
          Nominal attribute, can be used to restrict mapping range.
 double d1
          2D normalized values; can be extended to n-ary attribute vector.
 double d2
          2D normalized values; can be extended to n-ary attribute vector.
 java.lang.String name
          Unique identifier of this concept.
 int rank
          Quantitative attribute in the range of [1, 10]; can be used to decide mapping priority.
 
Constructor Summary
Concept()
          Creates an empty concept.
Concept(Concept concept)
          Creates a copy of a concept.
Concept(Concept concept, double noise)
          Creates a copy of a concept with some noise added to the feature values.
Concept(int i, java.lang.String category)
          Creates a concept with specified index and category and default features.
Concept(int i, java.util.Vector categories, boolean ranked, boolean valued)
          Creates a concept with specified index and random features if indicated.
Concept(java.lang.String name, java.lang.String category, int rank, double d1, double d2)
          Creates a concept with full features.
 
Method Summary
 void addNoise(double noise)
          Adds some noise to this concept's feature values.
 double distance(Concept concept)
          Computes the normalized semantic distance between this concept and the specified one.
 boolean isRanked()
          Checks whether this concept is ranked, i.e.
 boolean isValued()
          Checks whether this concept is valued, i.e.
 java.lang.String toString()
          Returns a string representation of this concept.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Unique identifier of this concept.


category

public java.lang.String category
Nominal attribute, can be used to restrict mapping range.


rank

public int rank
Quantitative attribute in the range of [1, 10]; can be used to decide mapping priority.


d1

public double d1
2D normalized values; can be extended to n-ary attribute vector.


d2

public double d2
2D normalized values; can be extended to n-ary attribute vector.

Constructor Detail

Concept

public Concept()
Creates an empty concept.


Concept

public Concept(int i,
               java.lang.String category)
Creates a concept with specified index and category and default features.


Concept

public Concept(int i,
               java.util.Vector categories,
               boolean ranked,
               boolean valued)
Creates a concept with specified index and random features if indicated.


Concept

public Concept(java.lang.String name,
               java.lang.String category,
               int rank,
               double d1,
               double d2)
Creates a concept with full features.


Concept

public Concept(Concept concept)
Creates a copy of a concept.


Concept

public Concept(Concept concept,
               double noise)
Creates a copy of a concept with some noise added to the feature values.

Method Detail

addNoise

public void addNoise(double noise)
Adds some noise to this concept's feature values.


isRanked

public boolean isRanked()
Checks whether this concept is ranked, i.e. has a non-default rank.


isValued

public boolean isValued()
Checks whether this concept is valued, i.e. has non-zero feature values.


distance

public double distance(Concept concept)
Computes the normalized semantic distance between this concept and the specified one.


toString

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