Pr oj ect Repor t Kat hr i n Schadow- Pohl OOP obj ect- ori ented programmi ng
I nt roduct i on J oi ni ng Tool Marks & Points (Umweltinformationstechnologie) - software for environmental science, agriculture and forestry objective during my project - improve programming skills object of interest - botanical gardens weather stations
Basi cs i n OOP cl asses, obj ects, methods Class: abstraction of a thing including its characteristics (attributes or properties) behaviour (methods, features) class is the blueprint we work with e.g. class dog attributes: 4 legs, tail, colour, breed methods: sit, bark, walk J oi ni ng Tool Object: instance (copy) of blueprint e.g. object Lassi e state: 4 long legs, long tail, white and brown, collie methods: sit, bark, walk Methods: abilities of an object (functions) e.g. Lassi e. si t( ) Lassi e. bark( ) Lassi e. save( chi l d)
message passi ng, encapsul ati on, i nheri tance Basi cs i n OOP J oi ni ng Tool Message passing: an object send a message to another object e.g. Ti mmy. tel l ( Lassi e. si t( ) ) Encapsulation: object conceals functional details of class e.g. vi l l ai n. tel l ( Lassi e. si t( ) ) villain is not a FRIEND of Lassie Inheritance: subclass inherits attributes and methods of parent class e.g. subclass Col l i e state: legs, tail, colour methods: sit, bark, walk, jump Lassi e inherits from subclass Col l i e and class dog
J oi ni ng Tool text files one for every station one per data transfer up to 45 text files for one station
J oi ni ng Tool What is the task of the J oi ni ng Tool to determine which text file is a member of one weather station to sort the text files by the last part of name space (continuous number) to get the header for the new file to check if all text files from one station have the same amount of columns to sort data rows by date to remove data rows with equal date to write a new file with header and edited data rows
J oi ni ng Tool Namespace and classes System Stri ng class I nt32 Structure Array class System.Collections Array Li st class System.IO Fi l e class System.Windows.Forms controls (buttons, numeric up down, text boxes common dialogue box (FolderBrowserDialog)
J oi ni ng Tool Methods GetAllFileNamesStartingWith SortFileNames ReadAllHeaderRows CheckEqualAmountOfColumns ReadAllDataRows RemoveEqualDate WriteNewFile
J oi ni ng Tool Files of mainfolder will be diplayed here While running the program progress and errors will be displayed Start button will be enabled if mainfolder and search string are set
Each purpose has i t s l anguage J oi ni ng Tool A program can never be compl et ed
J oi ni ng Tool good opportuni ty to l earn somethi ng about pr ogr ammi ng & what el se i s needed to stand one' s ground i n the worki ng worl d
Resources J oi ni ng Tool http://searchsoa.techtarget.com/sdefinition/0,,sid26_gci212681,00.html http://en.wikipedia.org/wiki/programming_paradigm http://en.wikipedia.org/wiki/procedural_programming http://en.wikipedia.org/wiki/object-oriented_programming personal discussion with Mr. Marks