This work is licensed under Apache License 2.0
kfsmViz {
fsm('PacketReaderFSM') {
input = file('src/main/kotlin/PacketReader.kt') // (1)
isGeneratePlantUml = true // (2)
isGeneratePlantUmlSimple = null // (3)
isGenerateAsciidoc = true // (4)
output = 'packet-reader' // (5)
outputFolder = file('generated') // (6)
plantUmlName = "packet-reader-state-diagram.plantuml" // (7)
asciidocName = 'packet-reader-state-table.adoc' // (8)
}
}
-
input: File
: Required, fully qualified filename of relevant source file -
isGeneratePlantUml: Boolean
: Required default is false -
isGeneratePlantUmlSimple: Boolean
: Optional default is null -
isGenerateAsciidoc: Boolean
: Required default is false -
output: String
: Optional filename base. The default is the classname -
outputFolder: File
: Optional directory for output file. Default is$buildDir/generated
-
plantUmlName: String
: Optional filename for plantuml output. Default is$output.plantuml
-
asciidocName: String
: Optional name of Asciidoc output file. Default is$output.adoc
kfsmViz {
fsm('PacketReaderFSM') {
input = file('src/main/kotlin/PacketReader.kt')
output = 'packet-reader'
outputFolder = file('generated')
isGeneratePlantUml = true
isGenerateAsciidoc = true
}
fsm('TurnstileFSM') {
input = file('src/main/kotlin/Turnstile.kt')
output = 'turnstile'
outputFolder = file('generated')
isGeneratePlantUml = true
isGenerateAsciidoc = true
}
fsm('TimerSecureTurnstileFSM') {
input = file('TimeoutSecureTurnstile.kt')
output = 'secure-turnstile'
outputFolder = file('generated')
isGeneratePlantUml = true
isGenerateAsciidoc = true
}
}