HTML5 Canvas for Dummies
  • HTML5 Canvas For Dummies
    HTML5 Canvas For Dummies
    by Don Cowan
Search Our Site
Contact

tel. 970 708 0899

fax. 970 497 4377

contact@marketimpacts.com

Email Us
This form does not yet contain any fields.
    Search Our Website
    This area does not yet contain any content.
    Free QuickClick App Downloads

    Click below to download free QuickClick apps for your Android smartphone... 

    ATM

     

    Auto

     

    Casinos

     

    Coffee

     

    Dessert

     

    English Places

     

    Fast Food

     

    French Places

     

    Gas

     

    Golf

     

    Health Food

     

    Irish Places

     

    Italian Places

     

    Lodging

     

    Mail

     

    Nightlife

     

    Parking

     

    Restaurants

     

    RV

     

    Scottish Places

     

    Shopping 

     

    Taxi


    Truck

    Custom Apps

    Get a custom QuickClick app for your business. Use the format you see here or let us create a custom format tailored to your needs.

      

    « WebPlatform.org: A Resource for Web Development | Main | Adapter Design Pattern »
    Thursday
    Oct042012

    Bridge Design Pattern

    This entry is part of a series on programming Design Patterns that provides a framework for the rapid recall and use of patterns during application design. 

    The Bridge design pattern is used to define multiple processes that work on multiple object types with similar aspects.

    To understand how this pattern might be used, consider how software to control a real bridge might be constructed. Such an application would have two processes: trafficControl() and gateControl() which would control two types of objects: cars and boats. 

          class Bridge - contains methods to control bridge activities.

                trafficControl(trafficType) - method that controls traffic signals.

                gateControl(trafficType) - method that controls the bridge gates.

          class Traffic - contains objects describing types of traffic.

                cars() - defines car objects

                boats() - defines boat objects

    PrintView Printer Friendly Version

    EmailEmail Article to Friend

    References (6)

    References allow you to track sources for this article, as well as articles that were written in response to this article.

    Reader Comments

    There are no comments for this journal entry. To create a new comment, use the form below.

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>