Show / Hide Table of Contents

Class PlantSpecies.CapacityConstraint

Inheritance
System.Object
PlantSpecies.CapacityConstraint
Namespace: Eco.Simulation.Types
Assembly: Eco.Simulation.dll
Syntax
public class CapacityConstraint : Object

Constructors

CapacityConstraint()

Declaration
public CapacityConstraint()

Fields

ConsumedCapacityLayerName

Declaration
public string ConsumedCapacityLayerName
Field Value
Type Description
System.String

Properties

CapacityLayerName

Declaration
public string CapacityLayerName { get; set; }
Property Value
Type Description
System.String

ConsumedCapacityPerPop

Declaration
public float ConsumedCapacityPerPop { get; set; }
Property Value
Type Description
System.Single

Methods

GrowthRate(Single, Single)

Calculates growth rate in range [0; 1]. It then can be used in formula N + N * growthRate to get new population size.

Declaration
public static float GrowthRate(float consumedCapacity, float capacity)
Parameters
Type Name Description
System.Single consumedCapacity
System.Single capacity
Returns
Type Description
System.Single

Habitability(Single)

Calculates habitability for given capacity. It is based on ConsumedCapacityPerPop. capacity is density per voxel column.

Declaration
public float Habitability(float capacity)
Parameters
Type Name Description
System.Single capacity
Returns
Type Description
System.Single

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾