1130tutorial5

1130tutorial5 - CSC1130 Introduction to Computer...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
    1 CSC1130 Introduction to Computer Programming Tutorial Notes 5
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    2 Outline UML Class Diagrams (Review) Math class More on Assignment 3 Physics, Euler-Cromer method, etc. Hints for doing assignment 3
Background image of page 2
    3 UML Class Diagrams (Review) LightsOut (Assignment 2) +Bulb(in state : boolean) Bulb Board LightsOutGUI +LightsOut(in size : int) +initBoard(in pt : Point, in bulb : Bulb) +startGame() +toggle(in pt : Point) LightsOut LightsOutMainA LightsOutMainB LightsOutMainC
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    4 UML Class Diagrams (Review) Planetarium (Assignment 3) +GravitationalField(in center : Vector3D, in mass : double, in lengthScale : double, in timeScale : double) +getAcceleration(in position : Vector3D) : Vector3D -center : Vector3D -mass : double -scaledG : double GravitationalField +Star(in mass : double, in velocity : Vector3D, in center : Vector3D, in radius : double, in lengthScale : double, in timeScale : double, in name : String, in color : Color) +getCenter() : Vector3D +getRadius() : double +getName() : String +getColor() : Color +getGravitationalField() : GravitationalField +update(in dt : double) -mass : double -velocity : Vector3D -center : Vector3D -radius : double -lengthScale : double -timeScale : double -name : String -color : Color Star +Planet(in star : Star, in mass : double, in velocity : Vector3D, in center : Vector3D, in radius : double, in lengthScale : double, in timeScale : double, in name : String, in color : Color) +getStar() : Star +getCenter() : Vector3D +getRadius() : double +getName() : String +getColor() : Color +getGravitationalField() : GravitationalField +update(in dt : double) -star : Star -mass : double -velocity : Vector3D -center : Vector3D -radius : double -lengthScale : double -timeScale : double -name : String -color : Color Planet +Satelite(in home : Planet, in velocity : Vector3D, in center : Vector3D, in radius : double, in timeScale : double, in name : String, in color : Color) +getCenter() : Vector3D +getRadius() : double +getName() : String +getColor() : Color +update(in dt : double) -home : Planet -star : Star -velocity : Vector3D -center : Vector3D -radius : double -timeScale : double -name : String -color : Color Satellite +Vector3D(in x : double, in y : double, in z : double) +getX() : double +getY() : double +getZ() : double +getLengthSquared() : double +getLength() : double +add(in v : Vector3D) : Vector3D +substract(in v : Vector3D) : Vector3D
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.

Page1 / 31

1130tutorial5 - CSC1130 Introduction to Computer...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online