A
Andy O'Neill
I am designing a system which will work in a totally different way to any
I've designed before.
Almost everything has to be configurable.
The user will be picking things from lists into a basket.
The things have a set of dependency rules.
So you must pick at least so many of one classification.
You may pick no more than so many of another.
You need n of a particular thing per 1 of another.
Unless you pick this special thing which alters how common something else
is.
Then of course they can remove something from their basket.
If that happens to be the special thing that alters rules, then the rules
applied need to revert and give a warning if things in the basket break the
rules.
Things often have a number of options ( optional upgrades ) which may be
chosen and in turn are fairly complex.
EG a given upgrade may only be attached to one thing in the basket.
All these rules need to be configurable via xml or xaml or something.
Even the attributes of each thing will be variable.
It'll be a WPF application with no database - xml will be used to store user
input instead.
Whilst the rules can be quite complex there aren't a huge number of things
go into the basket.
I was wondering if anyone has done anything similar and has any thoughts,
can recommend a pattern... example or whatever.
Thanks in advance.
I've designed before.
Almost everything has to be configurable.
The user will be picking things from lists into a basket.
The things have a set of dependency rules.
So you must pick at least so many of one classification.
You may pick no more than so many of another.
You need n of a particular thing per 1 of another.
Unless you pick this special thing which alters how common something else
is.
Then of course they can remove something from their basket.
If that happens to be the special thing that alters rules, then the rules
applied need to revert and give a warning if things in the basket break the
rules.
Things often have a number of options ( optional upgrades ) which may be
chosen and in turn are fairly complex.
EG a given upgrade may only be attached to one thing in the basket.
All these rules need to be configurable via xml or xaml or something.
Even the attributes of each thing will be variable.
It'll be a WPF application with no database - xml will be used to store user
input instead.
Whilst the rules can be quite complex there aren't a huge number of things
go into the basket.
I was wondering if anyone has done anything similar and has any thoughts,
can recommend a pattern... example or whatever.
Thanks in advance.