SimonConfiguration getConfig ( String name ) { SimonState state = null ; for ( SimonPattern pattern : configs . keySet ( ) ) { if ( pattern . matches ( name ) ) { SimonConfiguration config = configs . get ( pattern ) ; if ( config . getState ( ) != null ) { state = config . getState ( ) ; } } } return new SimonConfiguration ( state ) ; }
Returns configuration for the Simon with the specified name .