From a89d38b1435336276c42f64020762906e3c3fcb9 Mon Sep 17 00:00:00 2001 From: "Waetschker Daniel (uib17511)" Date: Sun, 15 Nov 2020 18:42:19 +0100 Subject: [PATCH] update class diagram add class diagram png delete Observable extension --- .../main/java/de/hems/trafficsim/Track.java | 2 +- doc/classdiagram.graphml | 265 ------------------ 2 files changed, 1 insertion(+), 266 deletions(-) delete mode 100644 doc/classdiagram.graphml diff --git a/app/src/main/java/de/hems/trafficsim/Track.java b/app/src/main/java/de/hems/trafficsim/Track.java index b5aa035..14d221f 100644 --- a/app/src/main/java/de/hems/trafficsim/Track.java +++ b/app/src/main/java/de/hems/trafficsim/Track.java @@ -9,7 +9,7 @@ import java.util.concurrent.Semaphore; /** * Main model class of TrafficSim. Represents a round course containing vehicles. */ -public class Track extends Observable { +public class Track { /** * list a vehicles on the track */ diff --git a/doc/classdiagram.graphml b/doc/classdiagram.graphml deleted file mode 100644 index 3848a83..0000000 --- a/doc/classdiagram.graphml +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - Vehicle - - # position: float -# curVelocity: float -# maxVelocity: float -# brakeProb: float -# id: int -# test: int -# trackLength: float - + timeElapse(): void -- getPosition(): float -- getCurVelocity(): float -- getMaxVelocity(): float -- updateVelocity(distanceForerunner: float): void -- timeElapse(): void - -- Vehicle(id: id, position: int, maxVelocity: float, brakeProb: float, trackLength: float) - - - - - - - - - - - - Track - - # vehicles: List<Vehicle> -# vtrList: List<List<VehicleTimeRecord>> -# trackLength: float -# sumAvgMemory: float -# lastAvg: float - + timeElapse(timestep: float): void -# createVehiclesList(numberVehicles: int): List<Vehicle> -- getVtrList(): List<List<VehicleTimeRecord>> -- getTrackLength(): float -- avg_step(step: int): float -# update_avg(): void - -- Track(numberVehicles: int, trackLength: float) - - - - - - - - - - - - VehicleTimeRecord - - # id: int -# position: float -# velocity: float -# maxVelocity: float - - getMaxVelocity(): float -- getPosition(): float -- getVelocity(): float - -- VehicleTimeRecord(id: int, position: int, velocity: float, maxVelocity: float) - - - - - - - - - - - - TimeRecordView - - - # onSizeChanged(w: int, h: int, oldw: int, oldh: int): void - -- TimeRecordView(context: context, track: Track) - - - - - - - - - - - - - SurfaveView - - - - - - - - - - - - - - - MainActivity - - -static defaultNoOfVehicles: int = 25 {readOnly} -- static defaultTrackLength: int = 100 {readOnly} -- static defaultBrakeProb: float = 0.3f {readOnly} -- static defaultMaxVelocity: float = 5.0f {readOnly} -- static defaultDelay: int = 0 {readOnly} -- static defaultHistoryLength: int = 50 {readOnly} -- static defaultFrameskip: int = 0 {readOnly} -# Track track: Track -# TimeRecordView trackView: TimeRecordView -# Worker worker: Worker -# Renderer renderer: Renderer -# LinearLayout viewStack: LinearLayout - # onCreate(savedInstanceState:Bundle): void -- static round(float number, int digits): float -# stopWorker(): void -# updateTrack(): void -- onProgressChanged(seekBar: SeekBar, progress: int, fromUser; boolean): void -- onStartTrackingTouch(seekBar: SeekBar): void -- onStopTrackingTouch(seekBar: SeekBar): void -- onStepButtonClick(view: View): void -- onPlayButtonClick(view: View): void -- onStopButtonClick(view: View): void -- onClearButtonClick(view: View): void - - - - - - - - - - - - Worker - - # frameskip: int -# renderer: Renderer -# track: Track -# stop: boolean -# gui: MainActivity -# Renderer renderer -# int frameskip; - - run(): void -- setStop(stop: boolean): void -- setFrameskip(frames): int: void - -- Worker(track: track, gui: MainActivity, renderer: Renderer, frameskip: int) - - - - - - - - - - - - - Thread - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # forerunner - - - - - - - - - - - - - - - - - - - - - - - - - - - - -