title: Dynamically(programmatically) generate Actors in Akka
body: <p>Actor system is stunning. I wonder if I can make it more flexible to use.</p>
  
  <p>Saying I have a series of related node pairs (may in form of a file) like:</p>
  
  <ul>
  <li>A --> B </li>
  <li>B --> C </li>
  <li>C --> [D, E] </li>
  <li>D --> E </li>
  <li>E --> F</li>
  </ul>
  
  <p>I want to generate a system containing 6 kinds of actors namely A~F programmatically when the server starts up. And they have supervisor-children relationship just like the pairs above tell.</p>
  
  <p>Does this possible to Akka?</p>
  
  <p><strong>EDIT 2014-05-28</strong></p>
  
  <p>Sorry for the confuse.</p>
  
  <p>I'm new to Akka, and some of the concept I learned so far might not be so accurate.</p>
  
  <p>The real use case is that I want to generate an actor system using a config file which contains the relationship between actors. And each kind of actors have their strategy to deal receiving message.
  As @cmbaxter put here, given actor can only have one supervisor, so let's just simplify the problem, saying I have a file contain actor relations such as </p>
  
  <ul>
  <li>A --> [B, C]</li>
  <li>B --> D</li>
  <li>C --> [E, F]</li>
  </ul>
  
  <p>Based on this, I want to generate a system programmatically as:</p>
  
  <pre><code>      A
       / \
      B   C
     /   / \
    D   E   F
  </code></pre>
  
  <p>And I want each of A~F to have routers so that I am able to not create actors after this system is built. I know router might create actors under the hood, but I surely don't want any actor is created by mistake.</p>
  
  <p>Does this sound possible with Akka? Thanks in advance!</p>