Skip to content

Instantly share code, notes, and snippets.

View ConnorDoyle's full-sized avatar
💫

Connor Doyle ConnorDoyle

💫
View GitHub Profile
@ConnorDoyle
ConnorDoyle / PingPong.scala
Created December 26, 2011 17:07
A very simple Ping Pong example using Akka's local actors.
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
@ConnorDoyle
ConnorDoyle / random-agent.scala
Last active September 27, 2015 14:17
EnMAS Client Example
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) =
@ConnorDoyle
ConnorDoyle / pomdp-simple-example.scala
Last active September 27, 2015 14:18
POMDP Model Example
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(