Курсовая работа: Моделирование систем
end;
function TGenerator.GetRandom: TCustTime;
var R : single;
begin
case FRandomType of
rtPlane: R := PlaneRND;
rtNormal: R := NormRND;
rtExponent: R := ExpRND
else
R := Random;
end;
Result := FMean - FDisp + Round(R * 2 * FDisp);
end;
constructor TShop.Create;
begin
inherited;
FGenerator := TGenerator.Create;
end;
destructor TShop.Destroy;
begin
FGenerator.Free;
inherited;
end;
procedure TShop.DropParcel;
begin
inherited;
FEndWorkTime := 0;
end;
procedure TShop.Pass(SourceIndex : integer);