ch.elca.dependency.graph
Class Perspective

java.lang.Object
  |
  +--ch.elca.dependency.graph.AbstractGraphProcessor
        |
        +--ch.elca.dependency.graph.Perspective
All Implemented Interfaces:
GraphProcessor

public class Perspective
extends AbstractGraphProcessor

A graph representing dependencies in an analyzed project can be vieved using different perspectives. A perspective may simplyfy the graph in a complex project. A perspective has one LayerOrder which defines layers, multiple filters that filter packages which are not interesting for the user and multiple aggregators which aggregate several packages into one component.

Version:
1.0-beta
Author:
Pawel Kowalski

Field Summary
static Perspective DEFAULT_PERSPECTIVE
          A default Perspective.
 
Fields inherited from class ch.elca.dependency.graph.AbstractGraphProcessor
m_name
 
Constructor Summary
Perspective()
          Creates a new Perspective instance.
Perspective(java.lang.String name, Filter basicFilter)
          Creates a new Perspective instance.
 
Method Summary
 void addAggregator(Aggregator aggregator)
          Add an Aggregator to the list of aggregators used by this perspective.
 void addFilter(Filter filter)
          Add an Filter to the list of filters used by this perspective.
 Aggregator findAggregatorForName(java.lang.String name)
          Find an Aggregator for a certain name.
 java.util.ArrayList getAggregators()
          Get all Aggregators used within this perspective.
 LayerOrder getLayerOrder()
          Get the LayerOrder associated with this perspective.
 Graph process(Graph inputGraph)
          Process a graph to display it "from" this perspective.
 void setLayerOrder(LayerOrder layerOrder)
          Set the LayerOrder associated with this perspective.
 
Methods inherited from class ch.elca.dependency.graph.AbstractGraphProcessor
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PERSPECTIVE

public static final Perspective DEFAULT_PERSPECTIVE
A default Perspective.

Constructor Detail

Perspective

public Perspective()
Creates a new Perspective instance.


Perspective

public Perspective(java.lang.String name,
                   Filter basicFilter)
Creates a new Perspective instance.

Parameters:
name - a String value
basicFilter - a Filter value
Method Detail

setLayerOrder

public void setLayerOrder(LayerOrder layerOrder)
Set the LayerOrder associated with this perspective.

Parameters:
layerOrder - a LayerOrder value

getLayerOrder

public LayerOrder getLayerOrder()
Get the LayerOrder associated with this perspective.

Returns:
a LayerOrder value

addAggregator

public void addAggregator(Aggregator aggregator)
Add an Aggregator to the list of aggregators used by this perspective.

Parameters:
aggregator - an Aggregator value

getAggregators

public java.util.ArrayList getAggregators()
Get all Aggregators used within this perspective.

Returns:
an ArrayList value

findAggregatorForName

public Aggregator findAggregatorForName(java.lang.String name)
Find an Aggregator for a certain name.

Parameters:
name - a String value
Returns:
an Aggregator value

addFilter

public void addFilter(Filter filter)
Add an Filter to the list of filters used by this perspective.

Parameters:
filter - a Filter value

process

public Graph process(Graph inputGraph)
Process a graph to display it "from" this perspective.

Parameters:
inputGraph - a Graph value
Returns:
a Graph value
See Also:
GraphUtils.copy(Graph)


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.