ch.elca.dependency.core
Class RawModel

java.lang.Object
  |
  +--ch.elca.dependency.core.RawModel

public class RawModel
extends java.lang.Object

The RawModel is the data model created after the initialisation. Only the "loadFilter" is applied to that model.
That means this model contains all the informations which are extracted out of the class structure without any modifications.
The model is used to compare with the DependencyModel when another filter is applied during run time. So it is not necessary to perform another parsing for applying a filter.

Version:
1.0-beta
Author:
Christoph Trutmann
, Pawel Kowalski
See Also:
Analyzer, MainFrame, Graph

Constructor Summary
RawModel(Analyzer analyzer)
          Creates a new RawModel instance.
 
Method Summary
 void createModel()
          Creates the graph with the information in the hash table.
 java.util.ArrayList getNodeList()
          Helper method that extracts the nodes which have to be created in the graph.
 java.util.HashMap getPackDepend()
          Gets the HashMap with all the package dependencies of the packages which passed the load filter.
The key is the full qualified name string of the package.
 java.io.File getProjectRoot()
          Get the project root file.
 java.util.HashMap getRawClassInfos()
          Gets the ClassInfo objects which passed the load filter.
 Graph getRawGraph()
          Gets the Graph with the raw data.
 Statistic getRawStatistic()
          Gets the Statistic with the raw data.
 UserLayer getUserLayer()
          Get the UserLayer.
 void setUserLayer(UserLayer userLayer)
          Set a UserLayer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawModel

public RawModel(Analyzer analyzer)
         throws AnalyseException
Creates a new RawModel instance.

Parameters:
analyzer - an Analyzer value
Throws:
AnalyseException - if an error occurs
Method Detail

createModel

public void createModel()
                 throws AnalyseException
Creates the graph with the information in the hash table. Also the statistic data are generated. Each package that contains a class of the inquired tree, is mapped to all the packages, the classes of it needs.

Throws:
AnalyseException - if an error occurs

getNodeList

public java.util.ArrayList getNodeList()
Helper method that extracts the nodes which have to be created in the graph. Each node is only once in this list because it has to be unique in the graph. In other words all packages (String) existing in the directory tree are in this list.

Returns:
an ArrayList value

getRawClassInfos

public java.util.HashMap getRawClassInfos()
Gets the ClassInfo objects which passed the load filter.

Returns:
Map containing all the ClassInfo objects.

getRawGraph

public Graph getRawGraph()
Gets the Graph with the raw data.

Returns:
Graph with the raw data.

getRawStatistic

public Statistic getRawStatistic()
Gets the Statistic with the raw data.

Returns:
Statistic with the raw data.

getPackDepend

public java.util.HashMap getPackDepend()
Gets the HashMap with all the package dependencies of the packages which passed the load filter.
The key is the full qualified name string of the package. For each one of these keys, a list with all the needed packages is mapped.

Returns:
HashMap with all the package dependencies.

getProjectRoot

public java.io.File getProjectRoot()
Get the project root file.

Returns:
a File value

getUserLayer

public UserLayer getUserLayer()
Get the UserLayer.

Returns:
an UserLayer value

setUserLayer

public void setUserLayer(UserLayer userLayer)
Set a UserLayer.

Parameters:
userLayer - an UserLayer value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.