public VarConfig getSubset ( VarSet subsetVars ) { if ( ! vars . isSuperset ( subsetVars ) ) { throw new IllegalStateException ( "This config does not contain all the given variables." ) ; } return getIntersection ( subsetVars ) ; }
Gets a new variable configuration that contains only a subset of the variables .