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

commonMain.it.unibo.tuprolog.solve.streams.solver.fsm.IntermediateState.kt Maven / Gradle / Ivy

Go to download

Experimental, functional-programming-based implementation of Prolog's SLDNF resolution principle

There is a newer version: 1.0.4
Show newest version
package it.unibo.tuprolog.solve.streams.solver.fsm

import it.unibo.tuprolog.solve.ExecutionContext
import it.unibo.tuprolog.solve.primitive.Solve
import it.unibo.tuprolog.solve.primitive.Solve.Response
import it.unibo.tuprolog.solve.streams.solver.StreamsExecutionContext

/**
 * Represents an Intermediate [State] of the Prolog solver state-machine
 *
 * @author Enrico
 */
internal interface IntermediateState : State {

    /** The [Solve.Request] that drives the State behaviour towards [Response]s */
    override val solve: Solve.Request

    override val context: StreamsExecutionContext
        get() = solve.context as StreamsExecutionContext
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy