SONIVIS
v0.9

de.sonivis.tool.core.datamodel.networkloader
Class InteractionLoader

java.lang.Object
  extended by de.sonivis.tool.core.datamodel.networkloader.InteractionLoader

public class InteractionLoader
extends java.lang.Object

Network loader for interaction relationships.


Field Summary
static java.lang.String INTERACTION_COUNT
           
 
Constructor Summary
InteractionLoader()
          Default constructor.
 
Method Summary
protected  Graph loadNetwork(NetworkType networkType, InfoSpace infoSpace)
          Loads the Graph that represents the network defined by networkType from specified infoSpace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERACTION_COUNT

public static final java.lang.String INTERACTION_COUNT
See Also:
Constant Field Values
Constructor Detail

InteractionLoader

public InteractionLoader()
Default constructor.

Throws:
NetworkLoaderException - if #initialize() throws CannotConnectToDatabaseException
Method Detail

loadNetwork

protected final Graph loadNetwork(NetworkType networkType,
                                  InfoSpace infoSpace)
                           throws CannotConnectToDatabaseException
Loads the Graph that represents the network defined by networkType from specified infoSpace.

The returned Graph is based on the InteractionRelation entities persisted for the specified infoSpace. The sub-set of InteractionRelation entities to be taken into account is defined by ENetworkType#getTypes(). In general, any IActor entity that is either the source or the target of at least one relevant InteractionRelation entity is represented by a Node entity. If available each Node entity has the registration date of the represented entity attached as a GraphItemProperty named .

An Edge entity between two Node entities within the network will be established iff there exists at least one relevant InteractionRelation entity involving the IActor entities represented by the corresponding Node entities. Multiple occurrences of of InteractionRelation entities between the same Node entities will be represented as one Edge entity. A List of InteractionRelation entities represented by an Edge entity is attached as a GraphItemProperty named "". The creation date of the oldest IContentElement related to the InteractionRelation entity's target IActor entity (if available) will be attached as a GraphItemProperty named .

Parameters:
networkType - The NetworkType of the InteractionRelation network to be loaded.
infoSpace - The InfoSpace to load from.
Throws:
NetworkLoaderException - if one of the arguments is null.
CannotConnectToDatabaseException - if persistence store is not available.

SONIVIS
v0.9

Copyright 2006-2009 SONIVIS:Team. All Rights Reserved.