Курсовая работа: Моделирование систем
inherited;
Work;
end;
function TShop.GetProcessed: Boolean;
begin
Result := (TQSheme(Sheme).SysTime >= FEndWorkTime);
end;
function TShop.GetCanTake: Boolean;
begin
Result := not ParcelPresent and Processed;
end;
function TShop.GetCanDrop: Boolean;
begin
Result := ParcelPresent and Processed;
end;
procedure TShop.Work;
begin
FEndWorkTime := TQSheme(Sheme).SysTime + FGenerator.GetRandom;
end;
procedure TChannel.Pass(SourceIndex: integer);
begin
inherited;
Container.State := psWork;
end;
procedure TSource.TakeParcel(SourceIndex: integer);
begin
Container := TQSheme(Sheme).NewParcel;
end;
procedure TSource.Pass(SourceIndex : integer);