top of page
Search


Using Design Patterns to Make Better Models: Decorator Pattern
The Decorator Pattern lets us dynamically add behaviour to objects without creating a new subclass for every possible combination. In this post, we build a vehicle-rental example in AnyLogic and discuss why, despite its flexibility, we don't tend to use this pattern in our own simulations.

Devon Cowling
Oct 205 min read
Â
Â
Â


Using Design Patterns to Make Better Models: Observer
How should objects in a simulation respond when another object changes state? In this article, we use an AnyLogic armed-response model to explore the Observer pattern. We compare periodic polling with event-driven notifications and show how the Observer pattern can reduce detection delays, remove unnecessary checking events, and make simulation models easier to extend.

Devon Cowling
Oct 69 min read
Â
Â
Â


Using Design Patterns to Streamline Model Development: Strategy
Learn how to apply the Strategy design pattern to AnyLogic simulation models. Using an inventory management example, this article shows how separating changing ordering behaviour can make simulation models easier to understand, maintain and adapt.

Devon Cowling
Sep 309 min read
Â
Â
Â
bottom of page
