Java Reference
In-Depth Information
The main concepts that define the domain of the application are:
item;
feature;
category.
These concepts and their relationships can be described using a UML
class diagram as shown in Figure 4.3.
Class Item represents the core concept of our application domain; it is
used to represent a car. The characteristics of an item are defined by means
of a set of Feature objects. The defined_by association represents the rela-
tionships between an item and the features that define it. In addition an Item
belongs to a Category .
The main concepts related to a classifier are described in the class
diagram in Figure 4.4. Class Node represents the nodes of a tree; they are
connected to each other through the parent - child association. Since the
links also have a label, class Arc further specifies this association type: it
adds a label.
The made_up_of association is an aggregation, this expresses the close
connection between the concept of a decision tree and its constituent nodes.
Among all the nodes that make up a decision tree, the root node is identified
by a dedicated association.
Item
Feature
defined_by
belongs_to
Category
Figure 4.3 Classifier analysis
DecisionTree
Arc
! label : String
! root
! children
0 .. n
made_up_of
Node
! label : String
! parent
Figure 4.4 Decision tree analysis
 
Search WWH ::




Custom Search