protected List < Control > getControlChain ( Control control , Interaction inter ) { LinkedList < Control > list = new LinkedList < Control > ( ) ; list . add ( control ) ; boolean found = search ( list , inter ) ; if ( ! found ) throw new RuntimeException ( "No link from Control to Conversion." ) ; return list ; }
Gets the chain of Control staring from the given Control leading to the given Interaction . Use this method only if you are sure that there is a link from the control to conversion . Otherwise a RuntimeException is thrown . This assumes that there is only one control chain towards the interaction . It not then one of the chains will be returned .