@ Override public void initUpstream ( ) { if ( direction == LEFT_TO_RIGHT ) { for ( PhysicalEntity pe : conv . getLeft ( ) ) { addToUpstream ( pe , getGraph ( ) ) ; } } else { for ( PhysicalEntity pe : conv . getRight ( ) ) { addToUpstream ( pe , getGraph ( ) ) ; } } for ( Control cont : conv . getControlledOf ( ) ) { if ( cont instanceof Catalysis ) { Catalysis cat = ( Catalysis ) cont ; if ( ( cat . getCatalysisDirection ( ) == CatalysisDirectionType . LEFT_TO_RIGHT && direction == RIGHT_TO_LEFT ) || ( cat . getCatalysisDirection ( ) == CatalysisDirectionType . RIGHT_TO_LEFT && direction == LEFT_TO_RIGHT ) ) { continue ; } } addToUpstream ( cont , graph ) ; } }
Binds inputs and controllers .