/** * Sets whether or not this signal element is enabled. * * @param aEnabled * <code>true</code> to enable this signal element, * <code>false</code> to disable it. */ public void setEnabled( final boolean aEnabled ) { if ( this.channel != null ) { this.channel.setEnabled( aEnabled ); } else if ( this.group != null ) { if ( isGroupSummary() ) { this.group.setShowGroupSummary( aEnabled ); } else if ( isAnalogSignal() ) { this.group.setShowAnalogSignal( aEnabled ); } else { throw new InternalError( "Unknown signal element?! Type = " + this.type ); } } }