function Str = describe(Constr, keyword)
%DESCRIBE  Returns constraint description.

%   Authors: A. Stothert
%   Copyright 1986-2004 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $ $Date: 2004/12/26 21:51:48 $

Str = sprintf('Time Bound');

if (nargin == 2) && strcmp(keyword, 'detail')
   if strcmp(Constr.Type, 'upper')
      Str = sprintf('Upper Limit Time Bound');
   else
      Str = sprintf('Lower Limit Time Bound');
   end
   XUnits = Constr.getDisplayUnits('XUnits');
   Range = unitconv(Constr.Time(:), ...
      Constr.TimeUnits, ...
      XUnits);
   Str = sprintf('%s from %0.3g to %0.3g %s', ...
      Str, min(Range), max(Range), XUnits);
end
