Skip to content

Commit 12bd2b0

Browse files
author
Kouemapoh, Willy S
committed
actors call from main calss
1 parent c8fd8d3 commit 12bd2b0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package com.training.app
22

3+
import akka.actor.{ActorSystem, Props, TypedActor}
4+
import com.training.app.actors.GeneratePatternActor
5+
6+
37
/**
48
* @author ${user.name}
59
*/
@@ -8,7 +12,13 @@ object App {
812
def foo(x: Array[String]) = x.foldLeft("")((a, b) => a + b)
913

1014
def main(args: Array[String]) {
11-
println("Hello World!")
12-
println("concat arguments = " + foo(args))
15+
// println("Hello World!")
16+
// println("concat arguments = " + foo(args))
17+
val system = ActorSystem("HarderMazeSystem")
18+
val generatePatternActor1 = system.actorOf(Props[GeneratePatternActor], name = "generatePatternActor1")
19+
val generatePatternActor2 = system.actorOf(Props[GeneratePatternActor], name = "generatePatternActor2")
20+
generatePatternActor1 ! List(1, 2, 3, 4, 5, 6, 5, 2, 5, 6, 5, 8, 4, 8, 7)
21+
generatePatternActor2 ! List(9, 65, 4, 2, 5, 8, 7, 4, 9, 8, 7, 5, 1, 1, 6)
22+
1323
}
1424
}

0 commit comments

Comments
 (0)