Serialization in Scala / Akka

I am writing a distributed application in Scala that uses Akka actors. I have some data structures that my remote artists happily serialize, send over the wire, and are not subjected to arithmetic without any additional help from me.

For logging, I would like to serialize the case class containing these objects. I read the serialization documents on the akka project website , but I wonder if there is an easier way to do this, since Akka seems to know how to serialize these objects already.


Edit Nov 5, 2011 in response to Victor's comment

The application is a distributed decision-making mechanism according to the Markov method.

I am trying to serialize one of the following things:

case class POMDPIteration(
  observations: Set[(AgentRef, State)],
  rewards: Set[(AgentRef, Float)],
  actions: Set[(AgentRef, Action)],
  state: State
)

AgentRef:

case class AgentRef(
  clientManagerID: Int,
  agentNumber: Int,
  agentType: AgentType
)

Action AgentType Symbol

, : https://github.com/ConnorDoyle/EnMAS/blob/master/src/main/scala/org/enmas/pomdp/State.scala

, State , . , , Akka .

Akka , , , Akka , . , - .

+5

All Articles