W6: Pattern: Facade

The pattern Facade is part of structural design patterns.

Some subsystems contain several classes which are in close relation to each other. Since most classes of this subsystem are not commonly used without any other classes, there is no need to access them. The Facade then defines an consistent programming interface from which selected methods can be accessed.

Those methods are called delegate methods which keep the full access inside the subsystem. Thus handling of a Facade appears to be very easy.

Advantages

  • less dependency (hidden subsystem)
  • less complexity (consistent interface)
  • easy to expand

Disadvantage

  • adds another layer (more indirect)

Android App (small) example: WaveEffect

SmartSelect_20180528-233132_react.gif
WaveEffect in action
Facade before
before
Facade after
after

Code example (WaveEffect and how it affects SpriteMapObject)

facade
WaveEffect and SpriteMapObject before and after

News for this Semester…

Hello there!

Our last post is weeks, probably months ago… so here are the latest news:

The last two weeks

  • Sign in and register

    You can now sign in and register to REACT. Once you’ve successfully signed in, the app remebers your account and signs in automatically every time you restart REACT.

 

What’s up next?

  • Augmented Reality Surface
    • basically, it’s all set – just a few more tweeks and we’ve got a new milestone. Really looking forward to this one!
  • Map Overview
  • Some Mini-Games – so capturing a location is not to easy!

 

See you soon!
– freshmangoshake

React Preview AR

 

Design a site like this with WordPress.com
Get started