public String allocate(String pathName){
  if (log.isDebugEnabled()) {
    log.debug("Allocate OBlock path \"" + pathName + "\" in block \""+ getSystemName()+ "\", state= "+ getState());
  }
  if (pathName == null) {
    log.error("allocate called with null pathName in block \"" + getDisplayName() + "\"!");
    return null;
  }
 else   if (_warrant != null) {
    return Bundle.getMessage("AllocatedToWarrant",_warrant.getDisplayName(),getDisplayName());
  }
  if (_pathName != null && !_pathName.equals(pathName)) {
    return Bundle.getMessage("AllocatedToPath",pathName,getDisplayName(),_pathName);
  }
  _pathName=pathName;
  return null;
}

public String allocate ( String pathName ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Allocate OBlock path \"" + pathName + "\" in block \"" + getSystemName ( ) + "\", state= " + getState ( ) ) ; } if ( pathName == null ) { log . error ( "allocate called with null pathName in block \"" + getDisplayName ( ) + "\"!" ) ; return null ; } else if ( _warrant != null ) { return Bundle . getMessage ( "AllocatedToWarrant" , _warrant . getDisplayName ( ) , getDisplayName ( ) ) ; } if ( _pathName != null && ! _pathName . equals ( pathName ) ) { return Bundle . getMessage ( "AllocatedToPath" , pathName , getDisplayName ( ) , _pathName ) ; } _pathName = pathName ; return null ; }
note path name may be set if block is not allocated to a warrant . for use by circuitbuilder only .
