sample

fsm

package fsm

Visibility
  1. Public
  2. All

Type Members

  1. case class Busy(chopstick: ActorRef) extends ChopstickMessage with Product with Serializable

  2. class Chopstick extends Actor with FSM[ChopstickState, TakenBy]

  3. sealed trait ChopstickMessage extends AnyRef

  4. sealed trait ChopstickState extends AnyRef

    Some states the chopstick can be in

  5. class FSMHakker extends Actor with FSM[FSMHakkerState, TakenChopsticks]

  6. sealed trait FSMHakkerMessage extends AnyRef

    Some fsm hakker messages

  7. sealed trait FSMHakkerState extends AnyRef

    Some fsm hakker states

  8. case class Taken(chopstick: ActorRef) extends ChopstickMessage with Product with Serializable

  9. case class TakenBy(hakker: ActorRef) extends Product with Serializable

    Some state container for the chopstick

  10. case class TakenChopsticks(left: Option[ActorRef], right: Option[ActorRef]) extends Product with Serializable

    Some state container to keep track of which chopsticks we have

Value Members

  1. object Available extends ChopstickState with Product with Serializable

  2. object DiningHakkersOnFsm

  3. object Eating extends FSMHakkerState with Product with Serializable

  4. object FirstChopstickDenied extends FSMHakkerState with Product with Serializable

  5. object Hungry extends FSMHakkerState with Product with Serializable

  6. object Put extends ChopstickMessage

  7. object Take extends ChopstickMessage

  8. object Taken extends ChopstickState with Product with Serializable

  9. object Think extends FSMHakkerMessage

  10. object Thinking extends FSMHakkerState with Product with Serializable

  11. object WaitForOtherChopstick extends FSMHakkerState with Product with Serializable

  12. object Waiting extends FSMHakkerState with Product with Serializable

Ungrouped