예제 #1
0
        protected TallyAction(TallyPopulation population)
        {
            if (population == null)
            {
                throw new ArgumentNullException(nameof(population));
            }

            StratumCode     = population.StratumCode;
            SampleGroupCode = population.SampleGroupCode;
            SpeciesCode     = population.SpeciesCode;
            LiveDead        = population.LiveDead;
        }
예제 #2
0
        public TallyLedger(string unitCode, TallyPopulation tallyPopulation)
        {
            if (string.IsNullOrEmpty(unitCode))
            {
                throw new ArgumentException($"'{nameof(unitCode)}' cannot be null or empty", nameof(unitCode));
            }
            if (tallyPopulation is null)
            {
                throw new ArgumentNullException(nameof(tallyPopulation));
            }

            CuttingUnitCode = unitCode;
            StratumCode     = tallyPopulation.StratumCode;
            SampleGroupCode = tallyPopulation.SampleGroupCode;
            SpeciesCode     = tallyPopulation.SpeciesCode;
            LiveDead        = tallyPopulation.LiveDead;
        }
예제 #3
0
 public TallyAction(string unitCode, int plotNumber, TallyPopulation population) : this(unitCode, population)
 {
     PlotNumber = plotNumber;
 }
예제 #4
0
 public TallyAction(string unitCode, TallyPopulation population) : this(population)
 {
     CuttingUnitCode = unitCode;
 }