for (int i = 0; i < branches.length; i++) {
// If the guard is false, then the branch is not enabled.
if (branches[i].getGuard()) {
// Create a thread for this enabled branch
Nameable actor = branches[i].getController()
.getParent();
String name = actor.getName() + branches[i].getID();
if (_debugging) {
_debug("** Creating branch: " + name);
}
Thread thread = new Thread((Runnable) branches[i], name);
_threadList.add(0, thread);