/// <summary>
        /// Constructor for Dispersal: fills the list of available implementations of dispersal
        /// </summary>
        public Dispersal(Boolean DrawRandomly, string globalModelTimeStepUnit, MadingleyModelInitialisation modelInitialisation)
        {
            // Initialise the list of dispersal implementations
            Implementations = new SortedList<string, IDispersalImplementation>();

            // Add the basic advective dispersal implementation to the list of implementations
            AdvectiveDispersal AdvectiveDispersalImplementation = new AdvectiveDispersal(globalModelTimeStepUnit, DrawRandomly);
            Implementations.Add("basic advective dispersal", AdvectiveDispersalImplementation);

            // Add the basic advective dispersal implementation to the list of implementations
            DiffusiveDispersal DiffusiveDispersalImplementation = new DiffusiveDispersal(globalModelTimeStepUnit, DrawRandomly);
            Implementations.Add("basic diffusive dispersal", DiffusiveDispersalImplementation);

            // Add the basic advective dispersal implementation to the list of implementations
            ResponsiveDispersal ResponsiveDispersalImplementation = new ResponsiveDispersal(globalModelTimeStepUnit, DrawRandomly);
            Implementations.Add("basic responsive dispersal", ResponsiveDispersalImplementation);

            // Get the weight threshold below which organisms are dispersed planktonically
            PlanktonThreshold = modelInitialisation.PlanktonDispersalThreshold;
        }
예제 #2
0
        /// <summary>
        /// Constructor for Dispersal: fills the list of available implementations of dispersal
        /// </summary>
        public Dispersal(Boolean DrawRandomly, string globalModelTimeStepUnit, MadingleyModelInitialisation modelInitialisation)
        {
            // Initialise the list of dispersal implementations
            Implementations = new SortedList <string, IDispersalImplementation>();

            // Add the basic advective dispersal implementation to the list of implementations
            AdvectiveDispersal AdvectiveDispersalImplementation = new AdvectiveDispersal(globalModelTimeStepUnit, DrawRandomly);

            Implementations.Add("basic advective dispersal", AdvectiveDispersalImplementation);

            // Add the basic advective dispersal implementation to the list of implementations
            DiffusiveDispersal DiffusiveDispersalImplementation = new DiffusiveDispersal(globalModelTimeStepUnit, DrawRandomly);

            Implementations.Add("basic diffusive dispersal", DiffusiveDispersalImplementation);

            // Add the basic advective dispersal implementation to the list of implementations
            ResponsiveDispersal ResponsiveDispersalImplementation = new ResponsiveDispersal(globalModelTimeStepUnit, DrawRandomly);

            Implementations.Add("basic responsive dispersal", ResponsiveDispersalImplementation);

            // Get the weight threshold below which organisms are dispersed planktonically
            PlanktonThreshold = modelInitialisation.PlanktonDispersalThreshold;
        }