advertisement

Ddp Cs3.0 Solar System

50 %
50 %
advertisement
Information about Ddp Cs3.0 Solar System
ddd

Published on March 31, 2008

Author: boonzaai

Source: slideshare.net

advertisement

DDD with C# 3.0 features: Solar System Simulation Andre Boonzaaijer, Pieter-Joost van de Sande {aboonzaaijer, pjvdsande}@sogyo.nl

Today’s agenda DDD – short intro Case: Problem definition Case: C# (2.0) solution Case: C# 3.0 extensions Demo

DDD – short intro

Case: Problem definition

Case: C# (2.0) solution

Case: C# 3.0 extensions

Demo

What is “Domain Driven”?

It’s not: Layering Presentation Layer Data Layer

Layering Presentation Layer Data Layer Business logic

Layering Presentation Layer Data Layer Business logic

Layering Presentation Layer Data Layer Business logic

Layering Presentation Layer Data Layer Business logic +/- 2 years

Layering Presentation Layer Data Layer Business logic +/- 2 years +/- 5 years

Layering Presentation Layer Data Layer Business logic +/- 2 years +/- 5 years ?

Layering Presentation Layer Data Layer Business logic Email SMS Printing Email Where?

Layering Presentation Layer Data Layer Business logic

Sunflower

Case… Build a runnable solar system simulator 1 star in the centre Configurable amount of planets (mass is max 1% of the star’s mass) Laws of physics: F = M * a Fg = M1*M2 / d^2 Starting point: Random generated Draft a domain model.

Build a runnable solar system simulator

1 star in the centre

Configurable amount of planets (mass is max 1% of the star’s mass)

Laws of physics:

F = M * a

Fg = M1*M2 / d^2

Starting point: Random generated

Draft a domain model.

Gravity (x,y) force = 0; Foreach body in universe force += body.getForce(x,y); body.move(force);

Domain

Wrapping the domain User Interface Clock Database Bootstrapper / Host

User Interface

Clock Standard implementation Configurable interval Start(), Stop(), Tick event

Standard implementation

Configurable interval

Start(), Stop(), Tick event

Database O/R bridging Table per domain class Column for public properties (discussion) Associations converted to foreign keys ?

O/R bridging

Table per domain class

Column for public properties (discussion)

Associations converted to foreign keys

Bootstrap Instantiation (create form, clock and universe components) Event subscription

Instantiation (create form, clock and universe components)

Event subscription

Domain in C# 3.0

Domain in C# 3.0

Universe class Methods TimerPassed() method - ‘Classic’ - Lambda:

TimerPassed() method

- ‘Classic’

- Lambda:

Universe class Methods GetPlanetsInRange() Method

GetPlanetsInRange() Method

Universe class Methods GetPlanetsInRange() Method: Lambda

GetPlanetsInRange() Method: Lambda

Universe class Methods GetPlanetsInRange() Method: LINQ

GetPlanetsInRange() Method: LINQ

Form1 class Methods DrawUniverse: Who is responsible? UI.DrawUniverse() vs Universe.Draw()

Universe.Draw() Extension

Universe.Draw() Extension

Extension Methods: How Add a Static class to your namespace Add static methods for each extension Add a ‘this’ parameter to the ext. method

Add a Static class to your namespace

Add static methods for each extension

Add a ‘this’ parameter to the ext. method

Refences DDD Masterclass ( http://domaindrivendesign.nl ) Rebecca Wirfs-Brock: Object Design

DDD Masterclass ( http://domaindrivendesign.nl )

Rebecca Wirfs-Brock: Object Design

Add a comment

Related pages

Ddp | LinkedIn

View 10758 Ddp posts, presentations, experts, and more. Get the professional knowledge you need on LinkedIn. LinkedIn Home What is LinkedIn? Join Today
Read more

Solar System/Comets/Comet 2009-R1 100616 30 by 60s Colour ...

Solar System » Comets . Comet 2009/R1 McNaught 2010/06/16 02:15 Pentax75 SHDF SXV-M25C 30*60s Guided on the comet head Note the change in fine tails near ...
Read more

Solar System/Jupiter 100920 3 by -005s SD RGB DDP&Raw ...

Solar System . Jupiter and its moons from 2010/09/20, near opposition TMB203 & SXV-H9 3*0.005s subs through RGB filters Focal length of the TMB is 1800mm.
Read more

ddp energy - THERMOGRAPHY

Thermography inspection of solar modules by ... The solar specialist ddp energy located in Bremen is ... underperforming of the complete solar system, ...
Read more

ddp energy - COMPONENT SALES

SOLAR PROJECTS; COMPONENT SALES; ... specific complete systems delivery for ... for a variety of field in the solar business. ddp energy are ...
Read more

ddp energy - PROFILE

PROFILE; PHILOSOPHY; PARTNER ... ddp energy was founded in 2010 and is specialized in renewable and sustainable technologies with a strong focus on ...
Read more

DDP Series DC Power Supplies Datasheet

The ADAPTIVE POWER SYSTEMS DDP Series of precision programmable DC . ... SOLAR PANEL SIMULATION. ... DDP SERIES DC POWER SUPPLIES.
Read more

Solar System - Guangzhou Future Green Energy Technology Co ...

China Solar System catalog of Solar Energy System with Solar Charge Controller for Solar Panel, ... 100 Pieces Trade Terms: FOB, CFR, CIF, DDP
Read more

Image Processing - Astronomie Amateur - AstroSurf

DEEP-SKY. LUMINANCE AND H ... Perform a DDP-style stretch on the combined image ... SOLAR SYSTEM. COMET IMAGE PROCESSING (MAXIM DL, ...
Read more