Companion

object Companion

Functions

Link copied to clipboard
fun createInstance(description: String, type: Class<*>, name: String = "Create ", tags: Set<String> = emptySet(), examples: Set<String> = emptySet()): Goal

Convenient method to create a goal requiring creating an instance of this type.

Link copied to clipboard
operator fun invoke(name: String, description: String, satisfiedBy: Class<*>? = null, requires: Set<Class<*>> = if (satisfiedBy != null) { setOf(satisfiedBy) } else { emptySet() }, inputs: Set<IoBinding> = requires.map { IoBinding( type = it, ) }.toSet(), pre: List<Condition> = emptyList(), value: Double = 0.0, tags: Set<String> = emptySet(), examples: Set<String> = emptySet()): Goal