In order to meet the requirements specified in the Project 3 Requirements Document , our program is designed to be a stand-alone, graphical Java 2 program PrettyPicturesControl, able to run across multiple computing platforms and operating systems. It will use the swing graphical library. The representation of the function hierarchy. We will use an abstract class AFunction to represent the functions in the genotype. The interface only provides a method called execute for the visitor pattern, which will be described below.
All functions implement the execute for the visitor pattern.
They all have constructors as well as getters. The functions that deal with external images will also have an additional argument specifying the filename from which this picture should be loaded. More on external images below. We implemented the visitor pattern for the functions. It has a lot of functions since we must have one for each case.