public void initialize ( final Collection < S > states , final Function < S , Word < I > > asFunction , final Function < Word < I > , Word < O > > outputFunction ) { final FastMealyState < O > init = this . observationTree . addInitialState ( ) ; for ( final S s : states ) { final Word < I > as = asFunction . apply ( s ) ; final FastMealyState < O > treeNode = this . addTrace ( init , as , outputFunction . apply ( as ) ) ; this . nodeToObservationMap . put ( s , treeNode ) ; } }
Extended initialization method that allows to initialize the observation tree with several hypothesis states .