public void removeSensorAssignment(Sensor sensor){
  if (sensor == null) {
    return;
  }
  for (  PositionablePoint po : layoutEditor.pointList) {
    if ((po.getEastBoundSensor() != null) && po.getEastBoundSensor() == sensor) {
      po.setEastBoundSensor(null);
    }
    if ((po.getWestBoundSensor() != null) && po.getWestBoundSensor() == sensor) {
      po.setWestBoundSensor(null);
    }
  }
  for (  LayoutTurnout to : layoutEditor.turnoutList) {
    if ((to.getSensorA() != null) && to.getSensorA() == sensor) {
      to.setSensorA(null);
    }
    if ((to.getSensorB() != null) && to.getSensorB() == sensor) {
      to.setSensorB(null);
    }
    if ((to.getSensorC() != null) && to.getSensorC() == sensor) {
      to.setSensorC(null);
    }
    if ((to.getSensorD() != null) && to.getSensorD() == sensor) {
      to.setSensorD(null);
    }
  }
  for (  LayoutSlip to : layoutEditor.slipList) {
    if ((to.getSensorA() != null) && to.getSensorA() == sensor) {
      to.setSensorA(null);
    }
    if ((to.getSensorB() != null) && to.getSensorB() == sensor) {
      to.setSensorB(null);
    }
    if ((to.getSensorC() != null) && to.getSensorC() == sensor) {
      to.setSensorC(null);
    }
    if ((to.getSensorD() != null) && to.getSensorD() == sensor) {
      to.setSensorD(null);
    }
  }
  for (  LevelXing x : layoutEditor.xingList) {
    if ((x.getSensorA() != null) && x.getSensorA() == sensor) {
      x.setSensorAName(null);
    }
    if ((x.getSensorB() != null) && x.getSensorB() == sensor) {
      x.setSensorBName(null);
    }
    if ((x.getSensorC() != null) && x.getSensorC() == sensor) {
      x.setSensorCName(null);
    }
    if ((x.getSensorD() != null) && x.getSensorD() == sensor) {
      x.setSensorDName(null);
    }
  }
}

public void removeSensorAssignment ( Sensor sensor ) { if ( sensor == null ) { return ; } for ( PositionablePoint po : layoutEditor . pointList ) { if ( ( po . getEastBoundSensor ( ) != null ) && po . getEastBoundSensor ( ) == sensor ) { po . setEastBoundSensor ( null ) ; } if ( ( po . getWestBoundSensor ( ) != null ) && po . getWestBoundSensor ( ) == sensor ) { po . setWestBoundSensor ( null ) ; } } for ( LayoutTurnout to : layoutEditor . turnoutList ) { if ( ( to . getSensorA ( ) != null ) && to . getSensorA ( ) == sensor ) { to . setSensorA ( null ) ; } if ( ( to . getSensorB ( ) != null ) && to . getSensorB ( ) == sensor ) { to . setSensorB ( null ) ; } if ( ( to . getSensorC ( ) != null ) && to . getSensorC ( ) == sensor ) { to . setSensorC ( null ) ; } if ( ( to . getSensorD ( ) != null ) && to . getSensorD ( ) == sensor ) { to . setSensorD ( null ) ; } } for ( LayoutSlip to : layoutEditor . slipList ) { if ( ( to . getSensorA ( ) != null ) && to . getSensorA ( ) == sensor ) { to . setSensorA ( null ) ; } if ( ( to . getSensorB ( ) != null ) && to . getSensorB ( ) == sensor ) { to . setSensorB ( null ) ; } if ( ( to . getSensorC ( ) != null ) && to . getSensorC ( ) == sensor ) { to . setSensorC ( null ) ; } if ( ( to . getSensorD ( ) != null ) && to . getSensorD ( ) == sensor ) { to . setSensorD ( null ) ; } } for ( LevelXing x : layoutEditor . xingList ) { if ( ( x . getSensorA ( ) != null ) && x . getSensorA ( ) == sensor ) { x . setSensorAName ( null ) ; } if ( ( x . getSensorB ( ) != null ) && x . getSensorB ( ) == sensor ) { x . setSensorBName ( null ) ; } if ( ( x . getSensorC ( ) != null ) && x . getSensorC ( ) == sensor ) { x . setSensorCName ( null ) ; } if ( ( x . getSensorD ( ) != null ) && x . getSensorD ( ) == sensor ) { x . setSensorDName ( null ) ; } } }
removes the assignment of the specified sensor to either a turnout , a positionable point , or a level crossing wherever it is assigned
