Professional Documents
Culture Documents
Project OOP Backup
Project OOP Backup
Project OOP Backup
Optimal route!!!
Problem statement
Genetic Algorithm (GA) can determine
the (near) optimal route.
Problem statement
Genetic Algorithm (GA) can determine
the (near) optimal route.
Genetic algorithm (GA) is a
metaheuristic inspired by the process of
natural selection operators such as
mutation, crossover and selection.
Diagrams
01 02 03
Use case General Class Class diagram
diagram diagram for packages
Use case
diagram
General Class diagram
Components Class Diagram
GA Class Diagram
GUI Class
Diagram
OOP TECHNIQUES
EXPLANATION
Encapsulation Polymorphism
Abstraction Aggregation
Inheritance Composition
Encapsulation & Abstraction
Abstract class
Child classes
(not abstract)
“ga” package
Inheritance and Polymorphism
Abstract class
GeneticOperator
with a protected Selection,
attribute crossover,
population and mutation
public abstract will inherit the
method execute. attribute population
and method
execute.
Override paintComponent
and paintBorder methods
Create a text field in shape of
round border rectangle
Route 2 3
Population
is a composition
of Individuals
GUI Demonstration