org.aiddl.common.scala.execution.dispatch.Dispatcher.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aiddl-common-scala Show documentation
Show all versions of aiddl-common-scala Show documentation
Provides common types and algorithm implementations for the fast prototyping integrative AI systems with the AIDDL framework.
The newest version!
package org.aiddl.common.scala.execution.dispatch
import org.aiddl.common.scala.execution.Actor
import org.aiddl.common.scala.execution.Actor.Status
import org.aiddl.common.scala.execution.clock.Tickable
import org.aiddl.core.scala.representation.Term
trait Dispatcher extends Tickable {
var actors: List[Actor] = Nil
def ignoreError(id: Term, action: Term, actor: Actor, error: Status) = {}
def printAndIgnoreError(id: Term, action: Term, actor: Actor, error: Status) = {
println(s"Failed $action (id=$id) with $error in actor $actor will be ignored.")
}
def isIdle: Boolean
var errorHandler = ignoreError
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy