main.com.enniovisco.dsl.Dsl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webmonitor Show documentation
Show all versions of webmonitor Show documentation
A formal approach to monitoring web pages as spatio-temporal traces.
The newest version!
package com.enniovisco.dsl
import com.enniovisco.Spec
import com.enniovisco.WebSource
import com.enniovisco.main
class WebMonitor {
var toFile = true
var toConsole = false
fun webSource(init: WebSource.() -> Unit): WebSource {
WebSource.init()
return WebSource
}
fun spec(init: Spec.() -> Unit): Spec {
Spec.init()
return Spec
}
}
fun monitor(init: WebMonitor.()-> Unit) {
val webmonitor = WebMonitor()
webmonitor.init()
println("Starting WebMonitor...")
main(emptyArray(), preloaded = true, toFile = webmonitor.toFile, toConsole = webmonitor.toConsole)
}