private Circuit getCircuitOverTransition ( Circuit circuit , Tile neighbor ) { final String group = getTransitiveGroup ( circuit , neighbor ) ; final Circuit newCircuit ; if ( TileGroupType . TRANSITION == mapGroup . getType ( circuit . getIn ( ) ) ) { newCircuit = new Circuit ( circuit . getType ( ) , group , circuit . getOut ( ) ) ; } else if ( TileGroupType . TRANSITION == mapGroup . getType ( circuit . getOut ( ) ) ) { newCircuit = new Circuit ( circuit . getType ( ) , circuit . getIn ( ) , group ) ; } else { newCircuit = circuit ; } return newCircuit ; }
Get the circuit supporting over existing transition .