Class TChildDiscretizationCollection

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TChildDiscretizationCollection = class(TOrderedCollection)

Description

no description available, TOrderedCollection description follows

TOrderedCollection is a base class for collections that avoid deleting their collection items during assign whenever they can. TOrderedCollection is typically used to allow editing of the collection in a GUI. The model owns (directly or indirectly) one copy of the TOrderedCollection. Another copy will be created in the GUI in which Model will be Nil. The user will edit this latter copy in the GUI. The copy then gets assigned back to the original copy.

See also
Assign
Assign copies the source TOrderedCollection to itself.

Hierarchy

Overview

Fields

Private FBottomUnitName: string;
Private FBottomLayerInUnit: integer;
Private FBottomLayerGroup: TLayerGroup;
Private FChanged: Boolean;

Methods

Private function GetBottomUnitName: string;
Private procedure SetBottomLayerGroup(const Value: TLayerGroup);
Private procedure SetBottomLayerInUnit(const Value: integer);
Private procedure SetBottomUnitName(const Value: string);
Private function GetItem(Index: integer): TChildDiscretization;
Private procedure SetItem(Index: integer; const Value: TChildDiscretization);
Private procedure Sort;
Private function GetBottomLayerGroup: TLayerGroup;
Protected procedure Loaded;
Protected procedure Update(Item: TCollectionItem); override;
Public function IsSame(AnOrderedCollection: TOrderedCollection): boolean; override;
Public constructor Create(Model: TBaseModel);
Public procedure Assign(Source: TPersistent); override;
Public function GetAnItemByGroupAndLayer(LayerGroup: TLayerGroup; SubLayer: integer): TChildDiscretization;
Public procedure SortAndDeleteExtraItems;
Public function BottomModflowParentLayerNumber: integer;
Public function BottomLayerIndex: integer;
Public function ModflowLayerCount: integer;
Public function ModflowConfiningBedCount: integer;
Public procedure WriteLAYCB(const DiscretizationWriter: TObject); virtual;

Properties

Public property BottomLayerGroup: TLayerGroup read GetBottomLayerGroup write SetBottomLayerGroup;
Public property Items[Index:integer]: TChildDiscretization read GetItem write SetItem;
Published property BottomUnitName: string read GetBottomUnitName write SetBottomUnitName;
Published property BottomLayerInUnit: integer read FBottomLayerInUnit write SetBottomLayerInUnit;

Description

Fields

Private FBottomUnitName: string;
 
Private FBottomLayerInUnit: integer;
 
Private FBottomLayerGroup: TLayerGroup;
 
Private FChanged: Boolean;
 

Methods

Private function GetBottomUnitName: string;
 
Private procedure SetBottomLayerGroup(const Value: TLayerGroup);
 
Private procedure SetBottomLayerInUnit(const Value: integer);
 
Private procedure SetBottomUnitName(const Value: string);
 
Private function GetItem(Index: integer): TChildDiscretization;
 
Private procedure SetItem(Index: integer; const Value: TChildDiscretization);
 
Private procedure Sort;
 
Private function GetBottomLayerGroup: TLayerGroup;
 
Protected procedure Loaded;
 
Protected procedure Update(Item: TCollectionItem); override;
 
Public function IsSame(AnOrderedCollection: TOrderedCollection): boolean; override;
 
Public constructor Create(Model: TBaseModel);
 
Public procedure Assign(Source: TPersistent); override;
 
Public function GetAnItemByGroupAndLayer(LayerGroup: TLayerGroup; SubLayer: integer): TChildDiscretization;

SubLayer starts at zero.

Public procedure SortAndDeleteExtraItems;
 
Public function BottomModflowParentLayerNumber: integer;

BottomModflowParentLayerNumber treats the top layer as layer 1 and only counts simulated layers. This is a MODFLOW layer number.

Public function BottomLayerIndex: integer;

BottomLayerIndex returns the index of the parent layer at the bottom of the local grid. The first layer is treated as zero.

Public function ModflowLayerCount: integer;
 
Public function ModflowConfiningBedCount: integer;
 
Public procedure WriteLAYCB(const DiscretizationWriter: TObject); virtual;
 

Properties

Public property BottomLayerGroup: TLayerGroup read GetBottomLayerGroup write SetBottomLayerGroup;
 
Public property Items[Index:integer]: TChildDiscretization read GetItem write SetItem;
 
Published property BottomUnitName: string read GetBottomUnitName write SetBottomUnitName;
 
Published property BottomLayerInUnit: integer read FBottomLayerInUnit write SetBottomLayerInUnit;

BottomLayerInUnit indicates the lowermost layer in BottomLayerGroup that will be part of the child model. BottomLayerInUnit starts as 0.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:57