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

org.aiddl.common.scala.execution.dispatch.Dispatcher.scala Maven / Gradle / Ivy

Go to download

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