|
|||||||||
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.IObjectSet
public class IObjectSet
A IObjectSet is a complete set of IObject:s. This can either be the complete set of objects one investigates or the complete feature set by which these objects are represented. In fact, this representations makes no difference between the two.
Field Summary | |
---|---|
private IObjectGrouping |
currentGrouping
|
private java.util.Vector<IObjectGrouping> |
groupings
|
private java.util.HashMap<java.lang.Integer,IObject> |
idIObjectMap
|
private static int |
idIterator
|
private java.util.HashMap<java.lang.String,IObjectGrouping> |
nameGroupingMap
|
private java.util.HashMap<java.lang.String,java.util.HashSet<IObject>> |
stringAmbiguousIObjectsMap
|
Fields inherited from class infomat.vectorspace.IObjectGroup |
---|
maxIdSoFar, objectOrderIndexMap, objectOrderValueMap, ordered |
Constructor Summary | |
---|---|
IObjectSet(IObjectSet ios)
Copy constructor. |
|
IObjectSet(java.lang.String name)
|
Method Summary | |
---|---|
void |
add(IObject io)
Adds a new IObject. |
void |
add(IObject io,
float orderValue)
Adds a new IObject in the place the value implicates. |
boolean |
addGrouping(IObjectGrouping cog)
Adds an IObjectGrouping. |
boolean |
containsIObjectGroup(IObjectGroup iog)
Returns true if any of the IObjectGrouping:s that order this IObjectSet contains the IObjectGroup. |
boolean |
containsIObjectGrouping(IObjectGrouping ioging)
Returns true if the IObjectGrouping orders this IObjectSet. |
IObjectGrouping |
getCurrentGrouping()
Returns the current IObjectGrouping. |
java.util.Vector<IObjectGrouping> |
getGroupings()
Returns all IObjectGrouping:s of this IObjectSet. |
IObjectGrouping |
getGroupingWithName(java.lang.String name)
Returns the IObjectGrouping with the name given. |
IObject |
getIObjectWithId(int i)
Returns the IObject with the given id. |
java.lang.String |
getLargestStartOfLocation()
|
IObjectGrouping |
makeStartGrouping()
Makes a IObjectGrouping consisting of one IObjectGroup and sets it to be the current IObjectGrouping. |
protected void |
purgeGroupingsToSet()
Removed IObject:s from the IObjectGrouping:s that are not in the IObjectSet. |
void |
purgeSetToCurrentGrouping()
Removes all IObjects that's not in the current IObjectGrouping from the set and all its IObjectGroupings. |
void |
remove(IObject io)
Removes a IObject. |
void |
removeAll()
|
void |
removeGrouping(IObjectGrouping cog)
Removes an IObjectGrouping. |
boolean |
setGrouping(IObjectGrouping cog)
Sets the current IObjectGrouping. |
void |
sortInCurrentVectorOrderWithInvertedOrderNumberAsValue()
|
Methods inherited from class infomat.vectorspace.IObjectGroup |
---|
addAll, addAll, contains, containsPrecisely, getIObjectAt, getIObjectOrderIndex, getIVector, getName, getObjectOrderValueMap, getOrdered, getSortedObjectOrderValueVector, notIn, numberOfIObjects, numberOfSharedIObjects, randomOrder, remove, removeObjectsNotIn, setIVector, setName, sortInOrderValueOrder, 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 |
---|
private static int idIterator
private java.util.Vector<IObjectGrouping> groupings
private java.util.HashMap<java.lang.String,IObjectGrouping> nameGroupingMap
private IObjectGrouping currentGrouping
private java.util.HashMap<java.lang.Integer,IObject> idIObjectMap
private java.util.HashMap<java.lang.String,java.util.HashSet<IObject>> stringAmbiguousIObjectsMap
Constructor Detail |
---|
public IObjectSet(java.lang.String name)
public IObjectSet(IObjectSet ios)
Method Detail |
---|
public void add(IObject io)
add
in class IObjectGroup
public void add(IObject io, float orderValue)
IObjectGroup
IObjectGroup.sortInOrderValueOrder()
.
add
in class IObjectGroup
public void remove(IObject io)
remove
in class IObjectGroup
public void removeAll()
removeAll
in class IObjectGroup
public void sortInCurrentVectorOrderWithInvertedOrderNumberAsValue()
sortInCurrentVectorOrderWithInvertedOrderNumberAsValue
in class IObjectGroup
public boolean addGrouping(IObjectGrouping cog)
public void removeGrouping(IObjectGrouping cog)
public void purgeSetToCurrentGrouping()
protected void purgeGroupingsToSet()
IMatrixFilter, IObjectGrouping#prugeGroupingToSet()
public boolean setGrouping(IObjectGrouping cog)
public IObjectGrouping getCurrentGrouping()
public java.util.Vector<IObjectGrouping> getGroupings()
public IObjectGrouping getGroupingWithName(java.lang.String name)
public boolean containsIObjectGrouping(IObjectGrouping ioging)
public boolean containsIObjectGroup(IObjectGroup iog)
public IObjectGrouping makeStartGrouping()
public IObject getIObjectWithId(int i)
public java.lang.String getLargestStartOfLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |