Skip to content

Latest commit

 

History

History
65 lines (55 loc) · 1.22 KB

03-pillars.md

File metadata and controls

65 lines (55 loc) · 1.22 KB

03 - The Four Pillars

Example diagrams for module 3 - The Four Pillars

Class Diagram

classDiagram
	class Shelter {
		<<interface>>
	}

	class Tent {
	}
	Tent --|> Shelter : implements

	class EC1 {
	}
	EC1 --|> Car : inherits

	class S1 {
	}
	S1 --|> Car : inherits

	class Car {
		<<abstract>>
		+BrakePedal : BrakePedal
		+EngineControlModule : EngineControlModule
		+IsRunning : bool
		+Make : string
		+Model : string
		+SteeringWheel : SteeringWheel
		+Throttle : Throttle
		+Start()
		+Stop()
	}
	Car --|> Shelter : implements
	Car --> BrakePedal
	Car --> EngineControlModule
	Car --> SteeringWheel
	Car --> Throttle

	class ElectricControlModule {
	}
	ElectricControlModule --|> EngineControlModule : inherits

	class IceControlModule {
		-_crankPositionSensor : CrankPositionSensor
		-_exhaustOxygenSensor : ExhaustOxygenSensor
	}
	IceControlModule --|> EngineControlModule : inherits
	IceControlModule --> CrankPositionSensor
	IceControlModule --> ExhaustOxygenSensor

	class EngineControlModule {
		<<abstract>>
		#AirTemperatureSensor : AirTemperatureSensor
		#ThrottlePositionSensor : ThrottlePositionSensor
		#Status : int
		+IsRunning : bool
		+Start()
		+Stop()
	}
	EngineControlModule --> ThrottlePositionSensor
Loading