Preparing your design workspace

Loading the problem and your saved attempt…

Design a Package Delivery Assignment Domain

Model package assignment, delivery attempts, priority handling, and replaceable agent selection.

Design the object-oriented domain for an e-commerce delivery workflow. Orders produce packages for shipment; delivery agents receive assignments, update status, and record successful or unsuccessful attempts.

Premium orders are selected ahead of standard orders, and the highest-rated eligible agent is preferred for a premium customer.

For this exercise, assume a package has at most one active assignment, every attempt remains auditable, a failed attempt ends the active assignment and makes the package eligible for later reassignment, and delivered is terminal.

Use a stable request identity for assignment retries and one consistent rating snapshot with a deterministic tie rule. Keep route optimization, payment, warehousing, and live GPS tracking outside scope.

Produce a class or component diagram, focused public contracts, and an interaction walkthrough; implementation code is not required.