pl.edu.agh.cast.model.base.util
Class AbstractMainEntitiesUtil

java.lang.Object
  extended by pl.edu.agh.cast.model.base.util.AbstractMainEntitiesUtil

public abstract class AbstractMainEntitiesUtil
extends Object

Utility methods used to find main entities.

Author:
AGH CAST Team

Constructor Summary
AbstractMainEntitiesUtil()
           
 
Method Summary
protected static int getEntityRelationsCount(IEntity entity)
           
static SortedMap<IEntity,Integer> getSortedEntities(IDataSet dataSet)
          Returns SortedMap (as key is IEntity, as value this entity all relations count).
static void setEntitiesAsMain(Collection<IEntity> entities)
          Sets the property isMain to true, for given collection of entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMainEntitiesUtil

public AbstractMainEntitiesUtil()
Method Detail

getSortedEntities

public static SortedMap<IEntity,Integer> getSortedEntities(IDataSet dataSet)
Returns SortedMap (as key is IEntity, as value this entity all relations count). Result map is sorted in descending order by all relations count for entity.

Parameters:
dataSet - Input data set.
Returns:
sorted map.

setEntitiesAsMain

public static void setEntitiesAsMain(Collection<IEntity> entities)
Sets the property isMain to true, for given collection of entities.

Parameters:
entities - The entities to set the property.

getEntityRelationsCount

protected static int getEntityRelationsCount(IEntity entity)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.