
CSE687 - Object Oriented Design
Spring 2007
Project #4 – File Dependency Analysis due
Monday, April 30
Rev 1 – modified requirement #4
Purpose:
This project requires you to develop a program to analyze the type-based, global constant, and
global function call dependencies1 between a set of files that may be distributed over some
directory subtree in some complex fashion. Of particular importance are sets of mutually
dependent files, for they must be tested as a unit. Any changes in one of them require re-testing
of every other member of the set to ensure no breakage.
You are encouraged to use as many of the parts of your preceding three projects as you find
useful. You might also ponder why you are required to make changes to some of them and find
others not useful for this effort.
Requirements:
Your DEPANAL program:
1. shall use standard C++ and the standard library for all of the analyzer’s functionality except
for its user interface.
2. shall compile and link from the command line, using VC++ 8.0, as provided in the ECS
clusters and operate in the environment provided there2.
3. shall use a WinForm interface, constructed with managed C++, as the primary interface for
the analyzer. Note that you may choose to make this interface integrate other executables,
or load dynamic link libraries, that supply functionality designed in earlier projects.
4. shall accept the definition of a file set to analyze from the command line, or by selection of
one or more XML files, as used in Project #3. The file set may be on another machine in the
local network.
5. shall determine the file dependency relationships between all files of the input set, including
the presence and structure of mutual dependencies. Note that we wish to exclude
dependencies on libraries that are not part of the analysis set, such as compiler libraries, or
third party libraries that are used without modification. That means that we base
dependencies only on types and global functions defined in the file set.
6. shall display all of the direct dependencies, and, if requested by the user, all of the indirect
dependencies as well3. A significant part of your evaluation score for this requirement will be
the effectiveness and esthetic appeal of your display.
You should think carefully about the output of this program. The quality of your design is
measured, in part, by how well your interface supports the activities of the analysis user.
1 We will discuss in class the set of rules that define dependencies between files, based on types, constants
and function calls. In fact, your analyzer should treat non-constant global variables as well. We do not use
global data in any of our projects, but not all designers are as circumspect.
2 VC++ version 8.0 is provided by Visual Studio .Net 2005, and is available in all the ECS clusters.
3 The set of direct and indirect dependencies is referred to as the transitive closure of the dependency
graph. You will find many descriptions of algorithms to compute this set of relationships with a little
research.