Esempio n. 1
0
        public override void Setup(IEvolutionState state, IParameter paramBase)
        {
            base.Setup(state, paramBase);
            IParameter def = DefaultBase;

            _generateMax = state.Parameters.GetBoolean(paramBase.Push(P_GEN_MAX), def.Push(P_GEN_MAX), false);

            if (!Likelihood.Equals(1.0))
            {
                state.Output.Warning(
                    "UniquePipeline given a likelihood other than 1.0.  This is nonsensical and will be ignored.",
                    paramBase.Push(P_LIKELIHOOD),
                    def.Push(P_LIKELIHOOD));
            }

            // How often do we retry if we find a duplicate?
            NumDuplicateRetries = state.Parameters.GetInt(
                paramBase.Push(P_RETRIES), def.Push(P_RETRIES), 0);
            if (NumDuplicateRetries < 0)
            {
                state.Output.Fatal(
                    "The number of retries for duplicates must be an integer >= 0.\n",
                    paramBase.Push(P_RETRIES), def.Push(P_RETRIES));
            }
        }
Esempio n. 2
0
        public override void Setup(IEvolutionState state, IParameter paramBase)
        {
            base.Setup(state, paramBase);
            IParameter def = DefaultBase;

            if (!Likelihood.Equals(1.0))
            {
                state.Output.Warning("ReproductionPipeline given a likelihood other than 1.0.  This is nonsensical and will be ignored.",
                                     paramBase.Push(P_LIKELIHOOD),
                                     def.Push(P_LIKELIHOOD));
            }
        }
Esempio n. 3
0
        public override void Setup(IEvolutionState state, IParameter paramBase)
        {
            base.Setup(state, paramBase);
            IParameter def = DefaultBase;

            _numTimes = state.Parameters.GetInt(paramBase.Push(P_NUMTIMES), def.Push(P_NUMTIMES), 1);
            if (_numTimes < 1)
            {
                state.Output.Fatal("CheckingPipeline must have a num-times value >= 1.",
                                   paramBase.Push(P_NUMTIMES),
                                   def.Push(P_NUMTIMES));
            }
            if (!Likelihood.Equals(1.0))
            {
                state.Output.Warning(
                    "CheckingPipeline given a likelihood other than 1.0.  This is nonsensical and will be ignored.",
                    paramBase.Push(P_LIKELIHOOD),
                    def.Push(P_LIKELIHOOD));
            }
        }