/// <summary>
        /// Add references to current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext"></param>
        /// <param name="selection"></param>
        public virtual void AddSelection(IUserContext userContext, ReferenceList selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.References.Merge(selection);
            AddSelection(userContext, newSelection);
        }
        /// <summary>
        /// Remove taxon from current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void RemoveSelectionTaxon(IUserContext userContext,
                                                 ITaxon selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Taxa.Merge(selection);
            RemoveSelection(userContext, newSelection);
        }
        /// <summary>
        /// Remove hosts from current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void RemoveSelectionHosts(IUserContext userContext,
                                                 TaxonList selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Hosts.Merge(selection);
            RemoveSelection(userContext, newSelection);
        }
        /// <summary>
        /// Remove periods from current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void RemoveSelection(IUserContext userContext,
                                            PeriodList selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Periods.Merge(selection);
            RemoveSelection(userContext, newSelection);
        }
        public virtual void RemoveSelection(IUserContext userContext,
                                            IReference selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.References.Merge(selection);
            RemoveSelection(userContext, newSelection);
        }
        /// <summary>
        /// Remove individual categories from current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void RemoveSelection(IUserContext userContext,
                                            IndividualCategoryList selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.IndividualCategories.Merge(selection);
            RemoveSelection(userContext, newSelection);
        }
        /// <summary>
        /// Add taxa to current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void AddSelectionTaxa(IUserContext userContext,
                                             TaxonList selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Taxa.Merge(selection);
            AddSelection(userContext, newSelection);
        }
        /// <summary>
        /// Add host to current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void AddSelectionHost(IUserContext userContext,
                                             ITaxon selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Hosts.Merge(selection);
            AddSelection(userContext, newSelection);
        }
        /// <summary>
        /// Add period to current species fact data set scope.
        /// The species facts in the data set are updated
        /// to the new species fact data set scope.
        /// </summary>
        /// <param name="userContext">
        /// Information about the user that makes this method call.
        /// </param>
        /// <param name="selection">Changed scope of the data set.</param>
        public virtual void AddSelection(IUserContext userContext,
                                         IPeriod selection)
        {
            ISpeciesFactDataSetSelection newSelection;

            newSelection = new SpeciesFactDataSetSelection();
            newSelection.Periods.Merge(selection);
            AddSelection(userContext, newSelection);
        }
Пример #10
0
        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>A new object that is a copy of this instance.</returns>
        public object Clone()
        {
            SpeciesFactDataSetSelection selection;

            selection         = new SpeciesFactDataSetSelection();
            selection.Factors = new FactorList(true);
            selection.Factors.Merge(Factors);
            selection.Hosts = new TaxonList(true);
            selection.Hosts.Merge(Hosts);
            selection.IndividualCategories = new IndividualCategoryList(true);
            selection.IndividualCategories.Merge(IndividualCategories);
            selection.Periods = new PeriodList(true);
            selection.Periods.Merge(Periods);
            selection.References = new ReferenceList(true);
            selection.References.Merge(References);
            selection.Taxa = new TaxonList(true);
            selection.Taxa.Merge(Taxa);

            return(selection);
        }