Курсовая работа: Моделирование систем
FOrder : array [0..MaxElementCount-1] of integer;
FDiagram : TPaintBox;
protected
function GetElement(Index : integer): TElement;
function GetElementCount: integer;
procedure InitAnalize;
procedure FreeAnalize;
procedure InitEmulation;
procedure FreeEmulation;
procedure FindFinishElements;
procedure GetRecipientsOrder;
procedure Step;
procedure TakeParcelsFromFinishElements;
function IsFinishElement(Element : TElement): Boolean;
function FastestStepPeriod : TCustTime;
procedure ClearParcelList;
procedure ClearEventQueue;
function GetCounts(Index : integer): integer;
function GetParcelCount: integer;
procedure DrawElementLines;
procedure DisplayEvents;
public
function NewParcel: Pointer;
procedure NewEvent(AEvent : integer; ASender, ASource : TObject; AInfo : TInfo);
procedure RedrawDiagram;
procedure Emulation;
procedure Analize;
constructor Create;
destructor Destroy; override;