infomat.vectorspace
Class IObjectSet

java.lang.Object
  extended by infomat.vectorspace.IObject
      extended by infomat.vectorspace.IObjectGroup
          extended by infomat.vectorspace.IObjectSet

public class IObjectSet
extends IObjectGroup

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.

Version:
070314
Author:
Magnus Rosell

Field Summary
 
Fields inherited from class infomat.vectorspace.IObjectGroup
maxIdSoFar, objectOrderIndexMap
 
Constructor Summary
IObjectSet(java.lang.String name)
           
 
Method Summary
 void add(IObject co)
          Adds a new IObject.
 boolean addGrouping(IObjectGrouping cog)
          Adds an IObjectGrouping.
 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.
 IObjectGrouping makeStartGrouping()
          Makes a IObjectGrouping consisting of one IObjectGroup and sets it to be the current IObjectGrouping.
 void purgeSetToCurrentGrouping()
          Removes all IObjects that's not in the current IObjectGrouping from the set and all its IObjectGroupings.
 void removeGrouping(IObjectGrouping cog)
          Removes an IObjectGrouping.
 boolean setGrouping(IObjectGrouping cog)
          Sets the current IObjectGrouping.
 
Methods inherited from class infomat.vectorspace.IObjectGroup
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
 

Constructor Detail

IObjectSet

public IObjectSet(java.lang.String name)
Method Detail

add

public void add(IObject co)
Adds a new IObject. OBS. This is not reflected in any IObjectGrouping:s that already exits.

Overrides:
add in class IObjectGroup

addGrouping

public boolean addGrouping(IObjectGrouping cog)
Adds an IObjectGrouping. Returns false if the name for this new grouping is already taken.


removeGrouping

public void removeGrouping(IObjectGrouping cog)
Removes an IObjectGrouping.


purgeSetToCurrentGrouping

public void purgeSetToCurrentGrouping()
Removes all IObjects that's not in the current IObjectGrouping from the set and all its IObjectGroupings.


setGrouping

public boolean setGrouping(IObjectGrouping cog)
Sets the current IObjectGrouping. Returns false if the IObjectGrouping has a conflict as in #addGrouping().


getCurrentGrouping

public IObjectGrouping getCurrentGrouping()
Returns the current IObjectGrouping.


getGroupings

public java.util.Vector<IObjectGrouping> getGroupings()
Returns all IObjectGrouping:s of this IObjectSet.


getGroupingWithName

public IObjectGrouping getGroupingWithName(java.lang.String name)
Returns the IObjectGrouping with the name given.


makeStartGrouping

public IObjectGrouping makeStartGrouping()
Makes a IObjectGrouping consisting of one IObjectGroup and sets it to be the current IObjectGrouping. Used as a first IObjectGrouping as many function needs one to work.