fun createController()

in reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/ControllerImpl.kt [381:401]


fun createController(
    supervisor: Supervisor,
    ruleIndex: RuleIndex,
    trace: EvaluationTrace = EvaluationTrace.NULL,
    profiler: Profiler? = null) : Controller
{
    val logicalState = LogicalState()
    val controller = ControllerImpl(
        supervisor,
        ConstraintsProcessing(
            Dispatcher(ruleIndex).front(),
            MatchJournalImpl(),
            logicalState,
            trace,
            profiler
        ),
        trace,
        profiler
    )
    return controller
}