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

pl.touk.nussknacker.engine.graph.EspProcess.scala Maven / Gradle / Ivy

There is a newer version: 1.18.0
Show newest version
package pl.touk.nussknacker.engine.graph

import cats.data.NonEmptyList
import pl.touk.nussknacker.engine.api.MetaData
import pl.touk.nussknacker.engine.canonicalgraph.CanonicalProcess
import pl.touk.nussknacker.engine.canonize.ProcessCanonizer
import pl.touk.nussknacker.engine.graph.node.SourceNode

object EspProcess {

  def apply(metaData: MetaData, root: SourceNode): EspProcess =
    EspProcess(metaData, NonEmptyList.of(root))
}

case class EspProcess(metaData: MetaData, roots: NonEmptyList[SourceNode]) {
  def toCanonicalProcess: CanonicalProcess = ProcessCanonizer.canonize(this)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy