void checkTurnout(int newState,int oldState,Turnout t){
  if (isVetoed()) {
    return;
  }
switch (mControlTurnoutState) {
case ONCLOSED:
    if (newState == Turnout.CLOSED) {
      setRoute();
    }
  return;
case ONTHROWN:
if (newState == Turnout.THROWN) {
  setRoute();
}
return;
case ONCHANGE:
if (newState != oldState) {
setRoute();
}
return;
default :
return;
}
}

void checkTurnout ( int newState , int oldState , Turnout t ) { if ( isVetoed ( ) ) { return ; } switch ( mControlTurnoutState ) { case ONCLOSED : if ( newState == Turnout . CLOSED ) { setRoute ( ) ; } return ; case ONTHROWN : if ( newState == Turnout . THROWN ) { setRoute ( ) ; } return ; case ONCHANGE : if ( newState != oldState ) { setRoute ( ) ; } return ; default : return ; } }
turnout has changed , check to see if this fires . will fire route if appropriate
