M
Mikael Petterson
Hi,
We use the state pattern to get rid of plenty of if-if else -statements.
In each concrete state we need to access id's that can be created in any
state. All concrete states ( for this conntext) needs to access id's.
I don't want to create an instance for containing id's and pass that in the
constructor for each concreate state.
Here is a link for the pattern:
http://www.exciton.cs.rice.edu/JAvaResources/DesignPatterns/StatePat.htm
Any ideas how we can implements this?
cheers,
//mike
We use the state pattern to get rid of plenty of if-if else -statements.
In each concrete state we need to access id's that can be created in any
state. All concrete states ( for this conntext) needs to access id's.
I don't want to create an instance for containing id's and pass that in the
constructor for each concreate state.
Here is a link for the pattern:
http://www.exciton.cs.rice.edu/JAvaResources/DesignPatterns/StatePat.htm
Any ideas how we can implements this?
cheers,
//mike