Skip to content
COMP 523.002 · Team C

Specifications

User stories and requirements, each labeled Definite, Perhaps, or Improbable.

← All deliverables

User stories

US-1

As an optics researcher, I want to define a multi-element lens system without writing code so that I can explore a design idea in minutes instead of scripting it.

  • I can add, remove, and reorder elements.
  • Each element accepts a curvature radius, thickness, and glass index.
  • Invalid values are flagged next to the field before anything runs.

US-2

As an optics student, I want to see aberration coefficients and a spot diagram for my design so that I can learn how each lens parameter changes image quality.

  • Coefficients appear in a table labeled with the aberration name.
  • The spot diagram shows three field angles on a common scale.
  • Results refresh after I change a parameter and re-run.

US-3

As an optics researcher, I want to run an optimization over lens parameters and see the result so that I get a better design without manual trial and error.

  • I choose which parameters vary and set their bounds.
  • I see progress while it runs and can cancel it.
  • The optimized system loads back into the builder for further edits.

US-4

As an optical engineer, I want to save a lens system and reopen it later so that I can continue work across sessions and share designs.

  • Saving writes a single file I can copy or version-control.
  • Reopening restores every element and analysis setting exactly.

US-5

As an client maintainer, I want to update the backend without changing the front end so that future LieOptics improvements reach users with little extra work.

  • All backend calls pass through one documented API interface.
  • The interface can be swapped between a mock and the real backend.

Functional requirements

Functional requirements
IDRequirementPriority
F-1Create, edit, reorder, and delete lens elements (curvature radius, thickness, glass index).Definite
F-2Draw a to-scale layout sketch of the current lens system.Definite
F-3Run analytical aberration analysis and show the coefficients in a table.Definite
F-4Render a spot diagram at three field angles.Definite
F-5Run differential-evolution optimization with user-set parameter bounds.Definite
F-6Show optimization progress and allow cancellation.Definite
F-7Save a lens system to a file and load it again.Definite
F-8Show backend errors (invalid parameters, failed optimization) in the UI.Definite
F-9Render phase-space plots.Perhaps
F-10Add optimization constraints beyond simple bounds.Perhaps
F-11Undo and redo edits in the builder.Perhaps
F-12Export plots and tables as images or CSV.Perhaps
F-13Import designs from commercial tools such as Zemax or CODE V.Improbable
F-14Multi-user collaborative editing.Improbable

Non-functional requirements (URPS+)

Non-functional requirements
IDCategoryRequirementPriority
N-1UsabilityA user can build and analyze a lens system without writing code or reading source.Definite
N-2UsabilityEvery input shows its unit and a valid range.Definite
N-3ReliabilityA failed backend call never crashes the app or discards the user's current design.Definite
N-4PerformanceAberration analysis for a typical system returns fast enough to feel interactive, preserving the speed advantage of LieOptics over ray tracing.Definite
N-5SupportabilityThe client can maintain and extend the front end after hand-off, with documented setup and a README.Definite
N-6+ ImplementationThe Python backend is consumed as delivered and is not modified.Definite
N-7+ InterfaceAll backend access goes through a single typed API layer.Definite
N-8+ PhysicalRuns on Windows, macOS, and Linux desktops.Definite
N-9+ LegalOpen-source licensing is compatible with the client's release plan.Perhaps
N-10PerformanceResults for large systems stay responsive via background computation.Perhaps
N-11UsabilityFull keyboard accessibility and screen-reader support.Improbable

Interface requirements

Interface requirements
IDRequirementPriority
I-1Builder interface: a form for element parameters beside a canvas showing the layout.Definite
I-2Results interface: coefficient table and spot diagram shown together with the layout.Definite
I-3Optimization interface: parameter bounds, run, progress, and cancel controls.Definite
I-4Backend interface: typed request/response calls for defining a system, analyzing it, optimizing it, and producing a spot diagram.Definite
I-5File interface: lens systems saved and loaded as a single JSON file.Definite
I-6Phase-space plot view.Perhaps
I-7Web-hosted build of the same interface.Improbable