public void setTechSet ( TechSet techSet ) { Set < Tech > includedTech = techSet . getIncludeTech ( ) ; Iterator < Entry < Tech , DefaultMutableTreeNode > > iter = techToNodeMap . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Entry < Tech , DefaultMutableTreeNode > node = iter . next ( ) ; TreePath tp = this . getPath ( node . getValue ( ) ) ; Tech tech = node . getKey ( ) ; if ( ArrayUtils . contains ( Tech . builtInTopLevelTech , tech ) ) { techTree . check ( tp , containsAnyOfTopLevelTech ( includedTech , tech ) ) ; } else { techTree . check ( tp , techSet . includes ( tech ) ) ; } } }
Sets the technologies that should be selected if included and not if excluded .