What pattern to apply?

From: alex (alex_at_xxx.net)
Date: 02/28/04


Date: Sat, 28 Feb 2004 19:07:53 GMT

A data handling unit interacts with a device driver supporting a piece of
hardware. The hardware could be replaced in the future with another
hardware. What pattern should bed applied better in such situation? Is
Strategy a good choice?

I read somewhere that Facade-like wrapper could be better candidate for the
problem, but don't understand how it could be. If this is true, could
someone elaborate on this please(some code will be great help)?

Thanks for your comments!



Relevant Pages

  • Re: What pattern to apply?
    ... The hardware could be replaced in the future with another ... What pattern should bed applied better in such situation? ... > require a mediator to control the sub parts of the driver. ... or Bridge should tcb - take care of bees' wax - quite well. ...
    (comp.object)
  • Re: Vitalism vs. Mechanism
    ... pattern on the disk does nothing directly, ... more aptly analogous to computer software than hardware? ... magnetism on the metal disk makes nothing useful happen in itself. ... What about the mechanical clock? ...
    (talk.origins)
  • Re: Trap representations
    ... You're assuming that the bit pattern in a actually represents a value. ... have a trap representation which might cause the hardware to ... The other thing is that if the hardware does not mind if a bit ... pattern corresponding to a trap representation exists in memory ...
    (comp.lang.c)
  • shift register synthesis
    ... I need a little help in my VHDL design. ... But in hardware only addressbus pattern passes. ... sreg <= '1'; ...
    (comp.lang.vhdl)
  • Re: What pattern to apply?
    ... The hardware could be replaced in the future with another ... The strategy pattern is generally best when the client is supposed to ... strategy object and passes it to the server to use. ...
    (comp.object)