|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infomat.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 an IObjectSet. If the IObjectSet is altered this is not reflected in the IObjectGrouping.
Field Summary | |
---|---|
static int |
groupingMaxIdSoFar
|
(package private) java.util.Vector<IObjectGroup> |
groupOrdered
|
Fields inherited from class infomat.vectorspace.IObjectGroup |
---|
maxIdSoFar, objectOrderIndexMap, objectOrderValueMap, ordered |
Constructor Summary | |
---|---|
IObjectGrouping(IObjectGrouping ioging)
Copy constructor. |
|
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. |
void |
addAllGroups(java.util.Vector<IObjectGroup> vec)
Adds all IObjectGroup:s at the next places. |
boolean |
contains(IObjectGroup group)
|
boolean |
containsIObjectGroup(IObjectGroup iog)
Returns true if this IObjectGrouping contains the IObjectGroup. |
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. |
void |
printGroupNamesAndSizes()
For debugging purposes. |
void |
printGroupSizes()
For debugging purposes. |
void |
printGroupsObjects(int numberOfObjects)
For debugging purposes. |
void |
purgeGroupingToGroup(IObjectGroup group)
Removes IObject:s are not in the IObjectGroup. |
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 |
remove(IObject co)
Removes the IObject from all the IObjectGroup:s of the grouping. |
void |
remove(IObjectGroup cog)
Removes a IObjectGroup. |
void |
remove(IVector<IObject> ivec)
|
protected void |
removeAllGroups()
Removes all IObjectGroups. |
void |
removeEmptyGroups()
Removes all empty IObjectGroup:s. |
java.util.Vector<IObject> |
removeObjectsNotIn(IObjectGroup group)
Removes IObject:s that are not in the given IObjectGroup. |
void |
reorder(int[] mapping)
Reorders the groups according to a mapping in the form of an int array. |
void |
setGroups(java.util.Vector<IObjectGroup> iog)
Removes all groups and adds the vector. |
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, addAll, addAll, contains, containsPrecisely, getIObjectAt, getIObjectOrderIndex, getIVector, getName, getObjectOrderValueMap, getOrdered, getSortedObjectOrderValueVector, notIn, numberOfIObjects, numberOfSharedIObjects, randomOrder, removeAll, setIVector, setName, sortInCurrentVectorOrderWithInvertedOrderNumberAsValue, sortInOrderValueOrder, subGroup, subGroup |
Methods inherited from class infomat.vectorspace.IObject |
---|
getAmbiguous, getAmbiguousString, getID, getKind, getLargestCommonLocation, getLocation, getString, setAmbiguous, setString, stringCompareTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int groupingMaxIdSoFar
java.util.Vector<IObjectGroup> groupOrdered
Constructor Detail |
---|
public IObjectGrouping(java.lang.String groupingName, int groupingId)
public IObjectGrouping(java.lang.String groupingName)
public IObjectGrouping(IObjectGrouping ioging)
Method Detail |
---|
public void add(IObjectGroup cog)
public void addAllGroups(java.util.Vector<IObjectGroup> vec)
public void remove(IObjectGroup cog)
protected void removeAllGroups()
public void removeEmptyGroups()
public void remove(IObject co)
remove
in class IObjectGroup
public void remove(IVector<IObject> ivec)
remove
in class IObjectGroup
public java.util.Vector<IObjectGroup> getGroups()
public boolean contains(IObjectGroup group)
public void setGroups(java.util.Vector<IObjectGroup> iog)
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 boolean containsIObjectGroup(IObjectGroup iog)
public void sort()
IObjectGroup.sortInOrderValueOrder()
public java.util.Vector<IObject> remove(int from, int to)
public void purgeGroupingToGroup(IObjectGroup group)
IMatrixFilter, IObjectSet#prugeGroupingsToSet()
public java.util.Vector<IObject> removeObjectsNotIn(IObjectGroup group)
removeObjectsNotIn
in class IObjectGroup
public java.util.Vector<java.lang.Integer> getGroupLimitsForIntervall(int from, int to)
SparsePictureConstructor
public java.util.Vector<IObjectGroup> getGroupsForIntervall(int from, int to)
SparsePictureConstructor
public void printGroupsObjects(int numberOfObjects)
public void printGroupNamesAndSizes()
public void printGroupSizes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |