Action

interface Action : Step

An Action is a step that does something, and hence may have a cost as well as a value.

Inheritors

Properties

Link copied to clipboard
abstract val cost: CostComputation

Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable.

Link copied to clipboard
abstract val name: String

Unique name of the step

Link copied to clipboard
abstract val value: CostComputation

Function to compute the value of completing this step. From 0 (least valuable) to 1 (most valuable) Steps with 0 value will still be planned if necessary to achieve a result

Functions

Link copied to clipboard
open fun netValue(state: WorldState): Double

Net value of performing this action in the given world state