Strategy Design Pattern in LANSA

Description: Example Strategy Design Pattern in LANSA.
Price: Free
Support: Supplied on an as-is basis
Environment: Visual LANSA V11 SP5
Contributor: LANSA
Details: The Strategy Design Pattern basically consists of decoupling an algorithm from its host, and encapsulating the algorithm into a separate class. More simply put, an object and its behaviour are separated and put into two different classes. This allows you to switch the algorithm that you are using at any time.

To better understand the Strategy Design Pattern, use this small Visual LANSA application (mini-calculator) that uses this pattern.

Before copying the source, you will need to create the field III_INPUT (p,15,5) in your repository.
Disclaimer: Tech Exchange disclaimer Contributors to the LANSA Tech Exchange are responsible for the correctness of any Components (code and documentation) that they submit. Contributors are also responsible for any support that might be offered with any Components they submit. LANSA does not provide any warranty concerning fitness for purpose nor correctness of any Component submitted to the Exchange. LANSA does not provide any warranty for any ongoing support offered for Components submitted by any party to the Exchange.

Users of the Exchange who download any Component do so with the express understanding and agreement of the foregoing disclaimers.
Download:
Example: Strategy Design Pattern Calculator
Back to Top