Menu

#4 Combination algorithms as objects

open
nobody
2
2003-03-06
2003-03-06
No

Instead of implementing combination algorithms within
the valuation classes, put them in dedicated classes
and define a mapping: "type1, type2 -> combination
algorithm" somwhere

This allows easy addition of new combination
possibilities.

drawback: loosing encapsulation, solution: keep
valuation members private but make Combination class
a friend of Valuation

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.