PlasticNodeTermination[] pnts = new PlasticNodeTermination[components.length];
for (int i=0; i < components.length; i++) {
pnts[i] = (PlasticNodeTermination) components[i];
}
result = new BCMTermination(this, name, pnts, theta);
// Set the number of tasks equal to the number of threads
int numTasks = ca.nengo.util.impl.NodeThreadPool.getNumJavaThreads();
numTasks = numTasks < 1 ? 1 : numTasks;