Swarmfest ‘99 Tutorial

4/1/99


Click here to start


Table of Contents

Swarmfest ‘99 Tutorial

First session

Focus for the day

What is the point?

Bottom up modeling

History of Swarm

Basic facts

Swarm modeling

Object Oriented Programming

Interface vs. implementation

Some terminology

The three principles of OOP

Discrete event simulation

Simulation in procedural language

The (Swarm) OOP way

The Swarms

A Swarm as a virtual computer

The Activity framework

Elements of Activity library

Merging schedules in Swarms

Managing memory in Swarms

The recursive structure of Swarms

The Probes

Probes and the GUI

Probes without a GUI

The Graphical User Interface

Feeding data to the GUI widgets

Why Objective-C?

Writing objects in Objective-C

A few Objective-C basics

Some basic syntax

More Objective-C syntax

C Functions vs. ObjC methods

The id variable type etc.

Declaring a class

Defining a class

Typical small ObjC project

Russian roulette

Survival probabilities

Example project: Russian roulette

The objects: Player

The objects: Revolver

How it works

How it works (cont)

How it works (cont)

Other resources

Where to find help

Author: Benedikt Stefansson

Email: benedikt@ucla.edu

Home Page: http://cce.sscnet.ucla.edu/swarmcourse

Download presentation source