|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfomat.vectorspace.IObject
infomat.vectorspace.IObjectGroup
infomat.vectorspace.IObjectGrouping
public class IObjectGrouping
A IObjectGrouping is a set of IObjectGroup:s. It is ordered in a Vector. The order is deemed important. OBS. A IObjectGrouping is only implicitely connected to a IObjectSet. If the IObjectSet is altered this is not reflected in the IObjectGrouping.
Field Summary | |
---|---|
static int |
groupingMaxIdSoFar
|
Fields inherited from class infomat.vectorspace.IObjectGroup |
---|
maxIdSoFar, objectOrderIndexMap |
Constructor Summary | |
---|---|
IObjectGrouping(java.lang.String groupingName)
|
|
IObjectGrouping(java.lang.String groupingName,
int groupingId)
|
Method Summary | |
---|---|
void |
add(IObjectGroup cog)
Adds a IObjectGroup at the next place. |
java.util.Vector<IObject> |
getGroupingVector()
Returns a vector of all the IObjects contained in this IObjectGrouping in the order suggested by the ordering of the IObjectGroup:s and their internal order. |
java.util.Vector<java.lang.Integer> |
getGroupLimitsForIntervall(int from,
int to)
Returns a vector with integers that indicate where the boundaries for the IObjectsGroups are in the entire ordered vector "groupOrdered". |
java.util.Vector<IObjectGroup> |
getGroups()
Returns the ordered IObjectGroup:s in a vector. |
java.util.Vector<IObjectGroup> |
getGroupsForIntervall(int from,
int to)
Returns a vector of IObjectGroups that lie within the intervall given. |
IObjectGroup |
inWhichIObjectGroup(IObject co)
Returns the IObjectGroup in this IObjectGrouping that contains this IObject. |
int |
inWhichIObjectGroupOrdered(IObject co)
Returns the number of the IObjectGroup in this IObjectGrouping that contains this IObject. |
int |
numberOfIObjectGroups()
Returns the the number of IObjectGroup:s in the IObjectGrouping. |
java.util.Vector<IObject> |
remove(int from,
int to)
Removes and returns the IObjects in the range given, the range within the vector "ordered". |
void |
removeEmptyGroups()
Removes all empty IObjectGroup:s. |
void |
reorder(int[] mapping)
Reorders the groups according to a mapping in the form of an int array. |
void |
sort()
Sorts all IObjectGroup:s in their internal order and sorts the IObject:s in that order in the "ordered" vector. |
Methods inherited from class infomat.vectorspace.IObjectGroup |
---|
add, add, contains, getIObjectAt, getIObjectOrderIndex, getName, getObjectOrderValueMap, getOrdered, getRepresentation, numberOfIObjects, removeAll, setName, sortInOrderValueOrder |
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 groupingMaxIdSoFar
Constructor Detail |
---|
public IObjectGrouping(java.lang.String groupingName, int groupingId)
public IObjectGrouping(java.lang.String groupingName)
Method Detail |
---|
public void add(IObjectGroup cog)
public void removeEmptyGroups()
public java.util.Vector<IObjectGroup> getGroups()
public void reorder(int[] mapping)
public int numberOfIObjectGroups()
public java.util.Vector<IObject> getGroupingVector()
public IObjectGroup inWhichIObjectGroup(IObject co)
public int inWhichIObjectGroupOrdered(IObject co)
public void sort()
IObjectGroup.sortInOrderValueOrder()
public java.util.Vector<IObject> remove(int from, int to)
public java.util.Vector<java.lang.Integer> getGroupLimitsForIntervall(int from, int to)
SparsePictureConstructor
public java.util.Vector<IObjectGroup> getGroupsForIntervall(int from, int to)
SparsePictureConstructor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |