public boolean validateSensor(String sensorName,LayoutBlock blk,Component openFrame){
  if (sensorName.length() < 1) {
    return false;
  }
  Sensor s=blk.validateSensor(sensorName,openFrame);
  if (s == null) {
    return false;
  }
  return true;
}

public boolean validateSensor ( String sensorName , LayoutBlock blk , Component openFrame ) { if ( sensorName . length ( ) < 1 ) { return false ; } Sensor s = blk . validateSensor ( sensorName , openFrame ) ; if ( s == null ) { return false ; } return true ; }
validates that the supplied occupancy sensor name corresponds to an existing sensor and is unique among all blocks . if valid , returns true and sets the block sensor name in the block . else returns false , and does nothing to the block .
