Курсовая работа: Моделирование систем
FDisp : TCustTime;
FRandomType : TRandomType;
function GetRandom: TCustTime;
public
constructor Create;
property Mean : TCustTime read FMean write FMean;
property Disp : TCustTime read FDisp write FDisp;
property RandomType : TRandomType read FRandomType write FRandomType;
property Time : TCustTime read GetRandom;
end;
TShop = class(TElement)
private
FGenerator : TGenerator;
FEndWorkTime : TCustTime;
procedure Pass(SourceIndex : integer); override;
function GetProcessed: Boolean;
protected
function GetCanTake : Boolean; override;
function GetCanDrop : Boolean; override;
property EndWorkTime : TCustTime read FEndWorkTime write FEndWorkTime;
public
constructor Create; override;
destructor Destroy;override;
procedure DropParcel; override;
property Generator : TGenerator read FGenerator;
property Processed : Boolean read GetProcessed;
procedure Work; virtual;
end;
TChannel = class(TShop)