infomat.vectorspace
Class IObject

java.lang.Object
  extended by infomat.vectorspace.IObject
Direct Known Subclasses:
IObjectGroup

public class IObject
extends java.lang.Object

A IObject is either an object or a feature. It could be a word or a document for instance. This is the smallest part of the representation.

Version:
070314
Author:
Magnus Rosell

Constructor Summary
IObject(java.lang.String s, int id)
           
IObject(java.lang.String s, int kind, int id)
           
 
Method Summary
 int getID()
           
 int getKind()
           
 java.util.HashMap<IObject,java.lang.Float> getRepresentation(IMatrix myIMatrix)
          Returns the representation in the form of a HashMap, mapping IObject to a Float value.
 java.lang.String getString()
           
 void setString(java.lang.String s)
           
 int stringCompareTo(IObject co)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IObject

public IObject(java.lang.String s,
               int id)

IObject

public IObject(java.lang.String s,
               int kind,
               int id)
Method Detail

getString

public java.lang.String getString()

setString

public void setString(java.lang.String s)

getKind

public int getKind()

getID

public int getID()

getRepresentation

public java.util.HashMap<IObject,java.lang.Float> getRepresentation(IMatrix myIMatrix)
Returns the representation in the form of a HashMap, mapping IObject to a Float value. For a group - the centroid.


stringCompareTo

public int stringCompareTo(IObject co)