private void assignInstancesToContainers ( PackingPlanBuilder planBuilder , Map < String , Integer > parallelismMap , PolicyType policyType ) throws ConstraintViolationException { for ( String componentName : parallelismMap . keySet ( ) ) { int numInstance = parallelismMap . get ( componentName ) ; for ( int i = 0 ; i < numInstance ; ++ i ) { policyType . assignInstance ( planBuilder , componentName , this ) ; } } }
Assigns instances to containers .