ch.elca.dependency.layer
Class UserLayer

java.lang.Object
  |
  +--ch.elca.dependency.layer.UserLayer

public class UserLayer
extends java.lang.Object

Class for validate the user proposal for the layer. The dependencies in the real project are compared to the layer definitions given by the user. If there is a 'bad' dependency, the user is warned.

Version:
1.0-beta
Author:
Christoph Trutmann

Constructor Summary
UserLayer(java.io.File layerDef, RawModel model, javax.swing.JMenu menu)
          Constructor - Initialize the file with theuser definitions.
 
Method Summary
 void checkLayers()
          Parses the user defined layer file and compares the layers to the real dependencies.
 java.util.ArrayList getViolatingEdges()
          Get an ArrayList of all layering violating edges.
 void reference(Selection select)
          References the Selection interface for notify the other views about changing selections.
 void selectLayer(java.lang.String layer)
          Selects the nodes of the specified layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLayer

public UserLayer(java.io.File layerDef,
                 RawModel model,
                 javax.swing.JMenu menu)
Constructor - Initialize the file with theuser definitions.

Parameters:
layerDef - File containing the user layer definitons.
model - Model for getting the RawModel.
menu - Menu for the layer list.
Method Detail

checkLayers

public void checkLayers()
Parses the user defined layer file and compares the layers to the real dependencies. Violations are shown in the GraphView.


getViolatingEdges

public java.util.ArrayList getViolatingEdges()
Get an ArrayList of all layering violating edges.

Returns:
an ArrayList value

reference

public void reference(Selection select)
References the Selection interface for notify the other views about changing selections.

Parameters:
select - Selection interface.

selectLayer

public void selectLayer(java.lang.String layer)
Selects the nodes of the specified layer.

Parameters:
layer - Layer name of the layer to select.


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.