public Variable addVariable ( Group g , Variable v ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; if ( g == null ) g = rootGroup ; if ( v != null ) g . addVariable ( v ) ; return v ; }
Add a Variable to the given group .