Instructor-Led Automation Training
Introduction to ADA Programming
3 days
Each participant will use ADA language techniques and features to write programs to perform various user and administrative tasks, with a functioning Ada environment on a Linux system. Each participant will have their own Linux virtual machine for programming exercises and hands-on commands with the ADA language environment.
Course Outline
Features of the ADA Execution Environment
- operating system architecture
- structure of a process
- process information
- Ada program execution - Linux
The ADA Programming Language
- Ada history
- Ada features
- Ada documentation
- Language Reference Manual
- commenting syntax
- GNATdoc / AdaDoc extraction tools
Writing ADA Programs
- Ada program layout
- Ada (interpreter) syntax checking
- integer and floating point variables (scalars)
- operations on scalar variables
- list array variables
- functions to manipulate list arrays
- dictionaries (associative arrays)
- for, while and bare loops
- if conditional
- if-else conditional
- case expressions
- Ada regular expressions (GNAT.Regexp package)
- functions and subprograms
- user-defined functions and subprograms
- passing arguments to functions and subprograms
- returning values from functions
ADA standard library
- containers (vectors, maps)
- dates and times
- strings
- files and streams
- handling program exceptions
Object Oriented ADA Essentials
- object oriented Ada concepts
- encapsulation (private and limited)
- derived types
- classes in Ada
Tasking
- multi-tasking programming concepts
- task control and synchronization
- thread programming concepts
- synchronization between tasks
- _thread module
Extending ADA with Packages
- Ada packages
- package body
- using a package
