All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibo.jakta.agents.fsm.impl.ActivityImpl.kt Maven / Gradle / Ivy

There is a newer version: 0.11.106
Show newest version
package it.unibo.jakta.agents.fsm.impl

import it.unibo.jakta.agents.fsm.Activity
import it.unibo.jakta.agents.fsm.Activity.Controller

internal data class ActivityImpl(
    val onBeginProcedure: (controller: Controller) -> Unit = {},
    val onStepProcedure: (controller: Controller) -> Unit = {},
    val onEndProcedure: (controller: Controller) -> Unit = {},
) : Activity {
    override fun onBegin(controller: Controller) = onBeginProcedure(controller)

    override fun onStep(controller: Controller) = onStepProcedure(controller)

    override fun onEnd(controller: Controller) = onEndProcedure(controller)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy