Software Engineering and Architecture

Slides:



Advertisements
Similar presentations
MS-Word XP Lesson 1.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Computer Science 313 – Advanced Programming Topics.
Exploring Microsoft Access 2003 Chapter 1 Introduction to Microsoft Access: What Is A Database?
Software Design & Documentation – Design Pattern: Command Design Pattern: Command Christopher Lacey September 15, 2003.
DAIMI(c) Henrik Bærbak Christensen1 JUnit A tool for test case management.
Command Design Pattern Source: Design Patterns – Elements of Reusable Object- Oriented Software; Gamma, et. al.
This demo shows how to create a simple multiple choice exercise using drop down menu boxes with the forms tool within MSWord.
NetTech Solutions Using Advanced Tools Lesson 5. NetTech Solutions Objectives Use Slide Finder Use the Format Painter Understand the purpose of macros.
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Key Applications Module Lesson 21 — Access Essentials
Windows Listening Guide.  The software that manages the sharing of the resources of a computer. The overall function of the computer.  MASTER CONTROLLER.
Lexi case study (Part 2) Presentation by Matt Deckard.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Linzhang Wang Dept. of Computer Sci&Tech, Nanjing University The Command Pattern.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Copyright © 2012 UNICOM Systems, Inc. Confidential Information z/Ware Product Overview illustro Systems International A Division of UNICOM Global.
Computer Science 313 – Advanced Programming Topics.
Introduction to KE EMu
Builder Compositional Design – with a twist…. Problem Consider your favorite –Text editor, word processor, spreadsheet, drawing tool They allow editing.
By Dawid Wojtalewicz. In this PowerPoint I will show you how to use internet and what can you do in it.
All the dSoftArk Tools Getting started!. Tools dSoftArk is a semi-realistic, agile, development project –Industrial strength software (programming, TDD,
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Applying the Principles Two Examples. Example 1 New Requirement It would be nice with a simple GUI “to see something” instead of just xUnit tests...
Deriving Abstract Factory Loosening the coupling when creating objects...
The Command Pattern SE-2811 Dr. Mark L. Hornick 1.
Microsoft Access By Ritesh Sharma. Introduction Microsoft Access is a desktop database program that enables you to enter, store, analyze,and present data.For.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Command Pattern. Intent encapsulate a request as an object  can parameterize clients with different requests, queue or log requests, support undoable.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Software and Communication Driver, for Multimedia analyzing tools on the CEVA-X Platform. June 2007 Arik Caspi Eyal Gabay.
4.2 Microsoft Word.
Turning method call into an object
Scalability: Load Balancing
Applying the Principles
Mail Merge And Macros in MS WORD
Guide To UNIX Using Linux Third Edition
Instructor’s Guide to Teaching SolidWorks Software Lesson 1
Note 11 Command Pattern SE2811 Software Component Design
Basic Microsoft Word 2013.
Introduction to Ms-Access Submitted By- Navjot Kaur Mahi
User Interface Tutorial
Programming Design Patterns
4.2 Microsoft Word.
12. Command Pattern SE2811 Software Component Design
Jython Environment For Students (JES) Final Presentation
Cloud Web Filtering Platform
User Interface Tutorial
Exploring the Windows Section Part 1
Oracle Architectural Components
12. Command Pattern SE2811 Software Component Design
The Command Design Pattern
Container technology, Microservices, and DevOps
Command-Processor Pattern
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Visual Basic for Applications: Introduction
Software Engineering and Architecture
Presentation transcript:

Software Engineering and Architecture Pattern Catalog: Command

Command In my word processor system I would like the user to configure what the F1 button does freely Like ‘save’ or ‘open new file’ or ? Or perhaps record a macro of key strokes in F1 F1 => insert text ‘iskagefabrik’ at the cursor position But how to code this? A parametric solution? No. Can only handle those case I have imagined in advance 

3-1-2

Henrik Bærbak Christensen Our Command Interface Pretty simple! Any instance of this represents one method invocation to be made to one object Example: ps.addPayment(5) CS@AU Henrik Bærbak Christensen

Demo

Demo

Demo

Demo

Demo

Command

Consequences Benefits Liability: Cumbersome code for calling a method Decouples clients from set of commands Command set can be extended at run-time Easy to support multiple ways to execute command (menu, pop up, shortcut key, tool bar, …) Commands are first-class objects Log them, store them Assembling macros is easy (composite of commands) Undo can be supported Add an ‘unexecute()’ method, and stack the set of executed commands. Liability: Cumbersome code for calling a method