itb-poo

所属分类:编程语言基础
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2024-02-01 21:36:24
上 传 者sh-1993
说明:  面向对象编程(OOP)Kotlin项目
(Object-oriented programming (OOP) Kotlin Project)

文件列表:
.idea/
gradle/wrapper/
src/main/kotlin/
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

# ITB Project: Object-oriented programming (OOP)

Banner

GitHub code size in bytes GitHub last commit wakatime

## Table of Contents - [ Project Summary](https://github.com/Picuu/itb-poo/blob/master/#project-summary) - [ Activities](https://github.com/Picuu/itb-poo/blob/master/#activities) ## Project Summary - [**.idea**](https://github.com/Picuu/itb-poo/blob/master/.idea): Contains configuration files for the IntelliJ IDEA IDE. - [**gradle**](https://github.com/Picuu/itb-poo/blob/master/gradle): Holds the Gradle build system configuration files. - [**gradle/wrapper**](https://github.com/Picuu/itb-poo/blob/master/gradle/wrapper): Contains the Gradle wrapper files used for building and managing the project's dependencies. - [**src**](https://github.com/Picuu/itb-poo/blob/master/src): The root source directory that holds all the project's source code. - [**src/main/kotlin/controllers**](https://github.com/Picuu/itb-poo/blob/master/src/main/kotlin/controllers): Contains the controllers to instance and execute the classes and their methods. - [**src/main/kotlin/models**](https://github.com/Picuu/itb-poo/blob/master/src/main/kotlin/models): Holds the data models and classes used in the project. - [**src/main/kotlin/utilities**](https://github.com/Picuu/itb-poo/blob/master/src/main/kotlin/utilities): Provides utility classes or functions that can be reused across the project. ## Activities - [Activity 6 - Bakery](https://github.com/Picuu/itb-poo/blob/master/#activity-6-bakery) - [Activity 7 - Lamp](https://github.com/Picuu/itb-poo/blob/master/#activity-7-Lamp) ### Activity 6 - Bakery #### Files of this activity: - [**MainPastisseria.kt**](https://github.com/Picuu/itb-poo/blob/master//src/main/kotlin/controllers/MainPastisseria.kt) - [**Pasta.kt**](https://github.com/Picuu/itb-poo/blob/master//src/main/kotlin/models/Pasta.kt) - [**Beguda.kt**](https://github.com/Picuu/itb-poo/blob/master//src/main/kotlin/models/Beguda.kt) #### UML diagram ![UML-Pastisseria](https://github.com/Picuu/itb-poo/blob/master/https://github.com/Picuu/itb-poo/assets/93738423/f1c85b92-ac62-4ebb-81b4-820ff869d6ba) ### Activity 7 - Lamp #### Files of this activity: - [**Lamp.kt**](https://github.com/Picuu/itb-poo/blob/master/src/main/kotlin/models/Lamp.kt) - [**MainLamp.kt**](https://github.com/Picuu/itb-poo/blob/master/src/main/kotlin/controllers/MainLamp.kt) #### UML diagram ![lamp-uml](https://github.com/Picuu/itb-poo/blob/master/https://github.com/Picuu/itb-poo/assets/93738423/0979b934-9cb5-4566-8fd3-08ed8a8aace2) Create your own UML diagrams at [plantuml.com](https://github.com/Picuu/itb-poo/blob/master/https://www.plantuml.com/) This is the UML code for the showed diagram: ```uml @startuml class lamp { -- attributes -- - id: String - isOn: Boolean - colors: Array - currentColor: String - maxIntensity: Int - currentIntensity: Int -- methods -- + constructor(String, Array, Int) + getId(): String + turnOn() + turnOff() + toggleStatus() + getStatus(): Boolean + setStatus(Boolean) + getColors(): Array + getCurrentColor(): String + setColor(String) + toggleColor(): String + getMaxIntensity(): Int + getCurrentIntensity(): Int + setIntensity(Int) + toggleIntensity(): Int - error(String) - info() + override toString(): String } @enduml ```

近期下载者

相关文件


收藏者