|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfomat.vectorspace.IObject
infomat.vectorspace.IObjectGroup
public class IObjectGroup
A IObjectGroup is a set of IObject:s.
Field Summary | |
---|---|
static int |
maxIdSoFar
|
java.util.HashMap<IObject,java.lang.Integer> |
objectOrderIndexMap
|
Constructor Summary | |
---|---|
IObjectGroup(java.lang.String name)
|
|
IObjectGroup(java.lang.String name,
int id)
|
Method Summary | |
---|---|
void |
add(IObject co)
Adds a new IObject at the next place. |
void |
add(IObject co,
float orderValue)
Adds a new IObject in the place the value implicates. |
boolean |
contains(IObject co)
Returns true when the IObjectGroup contains the IObject. |
IObject |
getIObjectAt(int i)
Returns the IObject at the i:the place according to the ordering. |
int |
getIObjectOrderIndex(IObject co)
Returns the order number of the IObject. |
java.lang.String |
getName()
Returns the name of thie IObjectGroup. |
java.util.HashMap<IObject,java.lang.Float> |
getObjectOrderValueMap()
Returns a HashMap with the objects mapped to the values that are the basis for the ordering. |
java.util.Vector<IObject> |
getOrdered()
Returns a vector of the ordered IObjects. |
java.util.HashMap<IObject,java.lang.Float> |
getRepresentation(IMatrix matrix)
Returns a centroid in the form of a HashMap, mapping IObject to a Float value. |
int |
numberOfIObjects()
Returns the number of IObjects in the IObjectGroup. |
void |
removeAll()
|
void |
setName(java.lang.String name)
|
void |
sortInOrderValueOrder()
Sorts the IObjects in the vector "ordered" according to the values they have. |
Methods inherited from class infomat.vectorspace.IObject |
---|
getID, getKind, getString, setString, stringCompareTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int maxIdSoFar
public java.util.HashMap<IObject,java.lang.Integer> objectOrderIndexMap
Constructor Detail |
---|
public IObjectGroup(java.lang.String name)
public IObjectGroup(java.lang.String name, int id)
Method Detail |
---|
public void add(IObject co, float orderValue)
sortInOrderValueOrder()
.
public void add(IObject co)
public void removeAll()
public boolean contains(IObject co)
public int numberOfIObjects()
public java.lang.String getName()
public void setName(java.lang.String name)
public IObject getIObjectAt(int i)
sortInOrderValueOrder()
public int getIObjectOrderIndex(IObject co)
sortInOrderValueOrder()
public java.util.Vector<IObject> getOrdered()
sortInOrderValueOrder()
public java.util.HashMap<IObject,java.lang.Float> getObjectOrderValueMap()
public void sortInOrderValueOrder()
public java.util.HashMap<IObject,java.lang.Float> getRepresentation(IMatrix matrix)
getRepresentation
in class IObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |