Ticket #153 (closed: fixed)

Opened 12 years ago

Last modified 5 years ago

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

comment:1 Changed 12 years ago by Nick Draper

  • Milestone set to Iteration 9

comment:2 Changed 12 years ago by Nick Draper

  • Owner set to Russell Taylor
  • Priority changed from major to minor

comment:3 Changed 12 years ago by Russell Taylor

(In [1136]) UnitFactory now only creates a single instance of each unit and hands out a pointer to that instance each time the unit is requested. Re #153.

comment:4 Changed 12 years ago by Russell Taylor

  • Status changed from new to closed
  • Resolution set to fixed

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1001

Note: See TracTickets for help on using tickets.