Pr oj ect Repor t – Kat hr i n Schadow- Pohl
OOP – obj ect - or i ent ed pr ogr ammi ng
                               OOP – object-oriented programming
   CONTENT
I nt r oduct i on
                    Marks & Points (Umweltinformationstechnologie)
Basi cs i n OOP     - software for environmental science, agriculture and forestry
                    objective during my project
Exampl e:           - improve programming skills
J oi ni ng Tool     object of interest
                    - botanical gardens weather stations
Di scussi on
Concl usi on
                                   OOP – object-oriented programming
    CONTENT         cl asses, obj ect s, met hods
                    Class: abstraction of a thing including its
                    ✗characteristics (attributes or properties)
I nt r oduct i on   ✗behaviour (methods, features)
                     class is the blueprint we work with
Basi cs i n         e.g. class dog
                    attributes: 4 legs, tail, colour, breed
OOP                 methods: sit, bark, walk
Exampl e:                          Object: instance (copy) of blueprint
J oi ni ng Tool                    e.g. object Lassi e
                                   state: 4 long legs, long tail, white and brown, collie
                                   methods: sit, bark, walk
Di scussi on
                    Methods: abilities of an object (functions)
Concl usi on
                    e.g.    Lassi e. si t ( )
                            Lassi e. bar k( )
                            Lassi e. save( chi l d)
                                   OOP – object-oriented programming
    CONTENT         message passi ng, encapsul at i on, i nher i t ance
I nt r oduct i on     Message passing: an object send a message to another object
                      e.g.  Ti mmy. t el l ( Lassi e. si t ( ) )
Basi cs i n
OOP                    Encapsulation: object conceals functional details of class
                        e.g.     vi l l ai n. t el l ( Lassi e. si t ( ) )
                        villain is not a FRIEND of Lassie
Exampl e:
J oi ni ng Tool
                    Inheritance: subclass inherits attributes and methods of parent class
Di scussi on        e.g. subclass Col l i e
                    state: legs, tail, colour
                    methods: sit, bark, walk, jump
Concl usi on
                    Lassi e inherits from subclass Col l i e and class dog
                    OOP – object-oriented programming
    CONTENT
I nt r oduct i on
Basi cs i n OOP
Exampl e:
 J oi ni ng
Tool
Di scussi on                           text files
                                       ✗ one for every station
                                       ✗ one per data transfer
Concl usi on
                                       → up to 45 text files
                                         for one station
                                 OOP – object-oriented programming
    CONTENT
                    What is the task of the J oi ni ng Tool
I nt r oduct i on     ➔   to determine which text file is a member of
                          one weather station
Basi cs i n OOP       ➔   to sort the text files by the last part of name space
                          (continuous number)
Exampl e:             ➔   to get the header for the new file
 J oi ni ng
                      ➔   to check if all text files from one station
                          have the same amount of columns
Tool
                      ➔   to sort data rows by date
                      ➔   to remove data rows with equal date
Di scussi on
                      ➔   to write a new file with header and edited data rows
Concl usi on
                                       OOP – object-oriented programming
    CONTENT
                    Namespace and classes
                     ➔   System
I nt r oduct i on
                         ➔   St r i ng class
                         ➔   I nt 32 Structure
Basi cs i n OOP
                         ➔   Ar r ay class
                     ➔   System.Collections
Exampl e:
                         ➔   Ar r ay Li st class
 J oi ni ng          ➔   System.IO
Tool                     ➔   Fi l e class
                     ➔   System.Windows.Forms
Di scussi on                 ➔   controls (buttons, numeric up down, text boxes
                             ➔   common dialogue box (FolderBrowserDialog)
Concl usi on
                    OOP – object-oriented programming
    CONTENT
I nt r oduct i on
                    Methods
                      ➔   GetAllFileNamesStartingWith
Basi cs i n OOP       ➔   SortFileNames
                      ➔   ReadAllHeaderRows
Exampl e:             ➔   CheckEqualAmountOfColumns
 J oi ni ng           ➔   ReadAllDataRows
Tool
                      ➔   RemoveEqualDate
                      ●   WriteNewFile
Di scussi on
Concl usi on
                                   OOP – object-oriented programming
    CONTENT
I nt r oduct i on
Basi cs i n OOP
                        Files of mainfolder
Exampl e:               will be diplayed here
 J oi ni ng
Tool                    While running the program
                        progress and errors will be
                        displayed
Di scussi on
Concl usi on
                    Start button will be enabled if
                    mainfolder and search string are set
                       OOP – object-oriented programming
    CONTENT
I nt r oduct i on
                    Each pur pose has i t s l anguage
Basi cs i n OOP
Exampl e:
J oi ni ng Tool
Di scussi on          A pr ogr am can never be compl et ed
Concl usi on
                           OOP – object-oriented programming
    CONTENT
I nt r oduct i on
                       good oppor t uni t y t o l ear n somet hi ng
Basi cs i n OOP
                                   about pr ogr ammi ng
Exampl e:                                    &
J oi ni ng Tool
                                 what el se i s needed
Di scussi on        t o st and one' s gr ound i n t he wor ki ng wor l d
Concl usi on
                                             Resources
    CONTENT
I nt r oduct i on
Basi cs i n OOP     http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212681,00.html
                    http://en.wikipedia.org/wiki/Programming_paradigm
                    http://en.wikipedia.org/wiki/Procedural_programming
Exampl e:           http://en.wikipedia.org/wiki/Object-oriented_programming
                    personal discussion with Mr. Marks
J oi ni ng Tool
Di scussi on
Concl usi on