Ticket #153 (closed: fixed)
Turn the concrete Unit classes into singletons
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 9 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
With the introduction of the axis class, Unit (and it's subclasses) do not hold any member data. We should not, therefore, be creating multiple instances of concrete units to attach to the various axes of various workspaces. Instead, the Unit Factory should just hand out a pointer to the same instance every time a unit is created. Despite the title of this ticket, this should probably be achieved by modifying the factory to simply hand out the address of a concrete unit if it's previously been created, rather than by modifying the unit classes themselves.
Change History
Note: See
TracTickets for help on using
tickets.