private static boolean isConnectionSpecific ( ConnectionNotation connectionNotation ) { String connection = connectionNotation . getSourceUnit ( ) + ":" + connectionNotation . getrGroupSource ( ) + "-" + connectionNotation . getTargetUnit ( ) + ":" + connectionNotation . getrGroupTarget ( ) ; /* check for specific interaction */ if ( connection . matches ( "\\d+:R\\d-\\d+:R\\d|\\d+:pair-\\d+:pair" ) ) { return true ; } return false ; }
method to check if the given connection is specific