Branch

abstract class Branch<S : TreeScript>(script: S, name: String) : TreeComponent<S>

Functions

execute
Link copied to clipboard
open override fun execute()

Executes either successComponent or failedComponent depending on whether validate() return true or false

toString
Link copied to clipboard
open override fun toString(): String
validate
Link copied to clipboard
abstract fun validate(): Boolean

Properties

failedComponent
Link copied to clipboard
abstract val failedComponent: TreeComponent<S>
name
Link copied to clipboard
val name: String
script
Link copied to clipboard
val script: S
successComponent
Link copied to clipboard
abstract val successComponent: TreeComponent<S>

Inheritors

SimpleBranch
Link copied to clipboard