Slu.Heureka.HeurekaAPI.Data Namespace > ApiCompartment Class > ApiCompartment Constructor : ApiCompartment Constructor(DateTime,AgeType,SoilMoistureType,VegetationType,Double,Double,Double,SpeciesGroupCode,Double,ProjectionInfo,Nullable<GroundLayerType>,Nullable<SoilDepth>,Boolean,Boolean,Nullable<TextureType>,IList<ApiSpeciesInputData>) |
'Declaration
Public Function New( _ ByVal startDate As Date, _ ByVal evenAgedClass As AgeType, _ ByVal soilMoistureCode As SoilMoistureType, _ ByVal vegetationType As VegetationType, _ ByVal eastCoordinate As Double, _ ByVal northCoordinate As Double, _ ByVal altitude As Double, _ ByVal siSpecies As SpeciesGroupCode, _ ByVal siteIndex As Double, _ Optional ByVal projection As DotSpatial.Projections.ProjectionInfo, _ Optional ByVal bottomFieldLayer As Nullable(Of GroundLayerType), _ Optional ByVal soilDepth As Nullable(Of SoilDepth), _ Optional ByVal ditch As Boolean, _ Optional ByVal peat As Boolean, _ Optional ByVal soilTexture As Nullable(Of TextureType), _ Optional ByVal speciesData As IList(Of ApiSpeciesInputData) _ )
'Usage
Dim startDate As Date Dim evenAgedClass As AgeType Dim soilMoistureCode As SoilMoistureType Dim vegetationType As VegetationType Dim eastCoordinate As Double Dim northCoordinate As Double Dim altitude As Double Dim siSpecies As SpeciesGroupCode Dim siteIndex As Double Dim projection As DotSpatial.Projections.ProjectionInfo Dim bottomFieldLayer As Nullable(Of GroundLayerType) Dim soilDepth As Nullable(Of SoilDepth) Dim ditch As Boolean Dim peat As Boolean Dim soilTexture As Nullable(Of TextureType) Dim speciesData As IList(Of ApiSpeciesInputData) Dim instance As New ApiCompartment(startDate, evenAgedClass, soilMoistureCode, vegetationType, eastCoordinate, northCoordinate, altitude, siSpecies, siteIndex, projection, bottomFieldLayer, soilDepth, ditch, peat, soilTexture, speciesData)
public ApiCompartment( DateTime startDate, AgeType evenAgedClass, SoilMoistureType soilMoistureCode, VegetationType vegetationType, double eastCoordinate, double northCoordinate, double altitude, SpeciesGroupCode siSpecies, double siteIndex, DotSpatial.Projections.ProjectionInfo projection, Nullable<GroundLayerType> bottomFieldLayer, Nullable<SoilDepth> soilDepth, bool ditch, bool peat, Nullable<TextureType> soilTexture, IList<ApiSpeciesInputData> speciesData )
public: ApiCompartment( DateTime startDate, AgeType evenAgedClass, SoilMoistureType soilMoistureCode, VegetationType vegetationType, double eastCoordinate, double northCoordinate, double altitude, SpeciesGroupCode siSpecies, double siteIndex, DotSpatial.Projections.ProjectionInfo^ projection, Nullable<GroundLayerType> bottomFieldLayer, Nullable<SoilDepth> soilDepth, bool ditch, bool peat, Nullable<TextureType> soilTexture, IList<ApiSpeciesInputData^>^ speciesData )
var compartment = new ApiCompartment(startDate:2015-06-10, meanAge:62.0, basalAreaHa:25.0, meanHeightAllSpecies:18.5, evenAgedClass:AgeType.EvenAged, soilMoistureCode:SoilMoistureType.Mesic, vegetationType:VegetationType.Bilberry, eastCoordinate:717400.0, northCoordinate:7165154.0, altitude:100.0, siSpecies:SpeciesGroupCode.Pine, siteIndex:24.0, projection:KnownCoordinateSystems.Projected.NationalGridsSweden.SWEREF99TM);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2