mirror of
https://github.com/ZhigalskiiIvan/TextStatisticsProject.git
synced 2024-11-24 16:11:52 +03:00
create classes skeleton
This commit is contained in:
parent
d55ec328ce
commit
39ac71d76d
@ -1,7 +1,60 @@
|
||||
fun main(args: Array<String>) {
|
||||
println("Hello World!")
|
||||
object StatisticBuilder {
|
||||
|
||||
// Try adding program arguments via Run/Debug configuration.
|
||||
// Learn more about running applications: https://www.jetbrains.com/help/idea/running-applications.html.
|
||||
println("Program arguments: ${args.joinToString()}")
|
||||
fun buildGraphic() {}
|
||||
|
||||
fun printStatisticsInConsole() {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
object TextReader {
|
||||
fun readFromConsole(): String {
|
||||
TODO()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class TextData() {
|
||||
private val textsList = mutableListOf<Text>()
|
||||
|
||||
fun addNewText(textName: String, content: String) {}
|
||||
|
||||
object TextAnalyzer {
|
||||
private val DELIMITERS = listOf('.', '!', '?')
|
||||
|
||||
fun returnListOfSentences(text: Text): List<Text.Sentence> { TODO() }
|
||||
|
||||
}
|
||||
|
||||
class Text(private val name: String, private val sentencesCount: Int) {
|
||||
|
||||
val sentencesList = listOf<Sentence>()
|
||||
|
||||
fun getSentencesCount() {}
|
||||
|
||||
class Sentence(val words_count: Int) {}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
object CommandCenter {
|
||||
|
||||
enum class Commands(val commandName: String, val executingFun: (Any) -> Any) {
|
||||
Exit("exit", TODO()),
|
||||
Add("add", TODO())
|
||||
}
|
||||
|
||||
fun readCommandFromConsole() {}
|
||||
|
||||
fun executeCommand() {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
mainCycle@ while (true) {
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user