Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.131.762 Times

Strategy Design Pattern in Matlab 2008b 1.0

  Date Added: May 02, 2013  |  Visits: 431

Strategy Design Pattern in Matlab 2008b

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



The Strategy Pattern is just one of many patterns defined by the "Gang of Four" that are commonly used in many other object-oriented programming languages.Now with Matlab 2008b we can define Interfaces and Abstract classes that can make use of many of these patterns. Not only is this good coding practice, but they make code much more reusable, easier to maintain and change over time. In addition they provide us with a common language to discuss various programming structures.The GoF define the Strategy Pattern as: Defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.In this simple example we have time series data stored in a TimeSeries class (to keep it simple I have just given it a name property). Then, suppose that we have a number of technical indicators that we wish to use on this time series data, but wed-deOaore not told which one until runtime. In addition we need to be able to add new technical indicators easily in the future.By using this structure wed-deOaore passing around the TimeSeries() class. By having an Abstract Strategy Interface we can add as many more technical indicators as we like. All we need to do is add to the switch statement in StrategyType class and implement the RunStrategy method in our new class which inherits from StrategyType.Note also how easy it would be to completely change behaviour at runtime by setting a new Strategy in the Main.m.Usage: Extract the separate files and type Main in the command window

Requirements: No special requirements
Platforms: Matlab
Keyword: Class Easily Futureby Indicators Number Passing Property Runtime Series Stored Structure Suppose Technical Timeseries Were
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


STRATEGY DESIGN PATTERN IN MATLAB 2008B RELATED
Database Tools  -  MyPagination Class 2.6.0
MyPagination is a PHP/MySQL Class easily allows you to break up large result sets from a database query, and present it to the viewers in a more manageable way, and restrict database results without having to create complex pagination...
174.08 KB  
Form Processors  -  Checkbox Counter 1.1
This script allows you to easily count the number of checkboxes that have been selected.
102.4 KB  
Miscellaneous  -  TextualNumber 1.0
This PHP class converts a given number to a textual representation of it. 
 
Database Tools  -  Nested Nodes Class 1.0
Nested Nodes Class can be used to manage hierarchies of records stored in MySQL database tables.Features of Nested Nodes Class:- Works on any existing MySQL table provided that the table has three mandatory fields for the record id , position and...
102.4 KB  
Utilities  -  iBarcoder Free 3.4
Whether you are a small, mid-size, or large-scale organization, our mac barcode generator will easily create any number of colorful barcode labels in your own style, of any size, or shape. There's no need to spend money for purchasing costly...
3.2 MB  
Miscellaneous  -  RDQL DB 1.0
This class implements the RDQL language to query RDF documents stored in a MySQL database. The RDF documents can be stored, retrieved and deleted from the database using the RDQL_db class, documents can be stored from file paths or URLs Since RDF...
 
Database Tools  -  Tablemaint 1.0
The purpose of this class is to help in the updating of data stored in database tables. Tablemaint has functions to add, modify, delete and search for data in the database table rows.
10 KB  
Utilities  -  TimePreserver Lite 1. 4. 2002
TimePreserver Lite is designed to do one complex task easily: making archives of your Time Machine backups stored on a Time Capsule. In keeping with Time Machine there is no complicated setup, no myriad of options. It just works. Keeping data
921.6 KB  
Libraries  -  Net::Amazon::Property::DVD 0.39
Net::Amazon::Property::DVD is a Perl class for DVDs on amazon.com. SYNOPSIS use Net::Amazon; # ... if($resp->is_success()) { for my $prop ($resp->properties) { print $_->title(), " ", $_->studio(), " ", $_->year(), "n"; }...
153.6 KB  
Libraries  -  Xholon runtime framework 0.6
Xholon runtime framework executes applications that are event-driven or that have highly dynamic structure or behavior. Specify your models using XML and Java, or using third-party UML2 tools and MDA transformations. To get started, read or...
3.6 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB