This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor._, akka.actor.Actor._ | |
case object Ping | |
case object Pong | |
class PongActor extends Actor { | |
def receive = { | |
case Ping ⇒ { | |
println(self.path + ": Received Ping!") | |
sender ! Pong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.enmas.pomdp.{Agent, Action, State} | |
import scala.util.Random | |
class RandomAgent extends Agent { | |
val random = new scala.util.Random | |
def name = "Random Agent" | |
def policy(observation: State, reward: Float) = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.enmas.pomdp._ | |
import org.enmas.pomdp.State.Implicits._ | |
case class SimplePOMDP extends POMDP ( | |
name = "Example POMDP", | |
description = "Just a simple POMDP", | |
agentConstraints = List( |
NewerOlder