final SortModule mod = new SortModule(state); weightModules.add(mod); moduleMap.put(state.getModule().getModuleClass(), mod); sortMod.setDependSubsystems (collectSubsystemModules(sortMod.getState().getModule(), moduleMap)); if (position != mod.getPosition()) mod.setPosition(position); doneWork = true; for (int i = 0; i < weigths.length; i++) modules.add(weigths[i].getState());
(final SortModule smodule, final HashMap moduleMap) final Module module = smodule.getState().getModule(); int position = 0; if (reqMod.getPosition() >= position) position = reqMod.getPosition() + 1; continue; if (reqMod.getPosition() >= position) position = reqMod.getPosition() + 1; if (mod.getState().getModule() == module) final Module subSysMod = mod.getState().getModule(); if (smodule.getDependSubsystems().contains(subSysMod.getSubSystem())) if (mod.getPosition() >= position) position = mod.getPosition() + 1;
final Module module = smodule.getState().getModule(); int position = 0; continue; if ( reqMod.getPosition() >= position ) { position = reqMod.getPosition() + 1; continue; if ( reqMod.getPosition() >= position ) { position = reqMod.getPosition() + 1; final SortModule mod = (SortModule) it.next(); if ( mod.getState().getModule() == module ) { final Module subSysMod = mod.getState().getModule(); if ( smodule.getDependSubsystems().contains( subSysMod.getSubSystem() ) ) { if ( mod.getPosition() >= position ) { position = mod.getPosition() + 1;
errorModules.add( state ); } else { final SortModule mod = new SortModule( state ); weightModules.add( mod ); moduleMap.put( state.getModule().getModuleClass(), mod ); sortMod.setDependSubsystems ( collectSubsystemModules( sortMod.getState().getModule(), moduleMap ) ); final SortModule mod = weigths[ i ]; final int position = searchModulePosition( mod, moduleMap ); if ( position != mod.getPosition() ) { mod.setPosition( position ); doneWork = true; modules.clear(); for ( int i = 0; i < weigths.length; i++ ) { modules.add( weigths[ i ].getState() );