public void init ( ) { if ( conv . getConversionDirection ( ) == ConversionDirectionType . REVERSIBLE && this . reverse == null ) { reverse = new ConversionWrapper ( conv , ( GraphL3 ) graph ) ; this . direction = LEFT_TO_RIGHT ; reverse . direction = RIGHT_TO_LEFT ; reverse . reverse = this ; } else if ( conv . getConversionDirection ( ) == ConversionDirectionType . RIGHT_TO_LEFT ) { this . direction = RIGHT_TO_LEFT ; } else { this . direction = LEFT_TO_RIGHT ; } }
Extracts the direction creates the reverse if necessary .