Esempio n. 1
0
 private Chain(ChainIdentity chainIdentity, Braid braid, LongitudinalEvaluators longitudinalEvaluators, LongitudinalEvaluations evaluations)
 {
     _longitudinalEvaluators = longitudinalEvaluators;
     _evaluations            = evaluations;
     ChainIdentity           = chainIdentity;
     Braid = braid;
 }
Esempio n. 2
0
 private BraidBuilder(string name, BraidLinkDiscriminators discriminators, ChainBuilder chainBuilder, LongitudinalEvaluators evaluators, int addThreshold)
 {
     Name = name;
     this._discriminators = discriminators;
     this._chainBuilder   = chainBuilder;
     _evaluators          = evaluators;
     this._addThreshold   = addThreshold;
 }
Esempio n. 3
0
        public static Chain Build(ChainIdentity chainIdentity, Braid braid, LongitudinalEvaluators longitudinalEvaluators)
        {
            var evaluations = new LongitudinalEvaluations();

            longitudinalEvaluators.SetEvaluationDestination(evaluations);

            return(new Chain(chainIdentity, braid, longitudinalEvaluators, evaluations));
        }
Esempio n. 4
0
 public static ChainBuilder Build(Func <MarkovEvent, ChainIdentity> buildChainIdentity, LongitudinalEvaluators evaluators)
 {
     return(new ChainBuilder(buildChainIdentity, evaluators));
 }
Esempio n. 5
0
 private ChainBuilder(Func <MarkovEvent, ChainIdentity> buildChainIdentity, LongitudinalEvaluators evaluators)
 {
     _buildChainIdentity = buildChainIdentity;
     _evaluators         = evaluators;
 }
Esempio n. 6
0
        public static BraidBuilder Build(string name, BraidLinkDiscriminators discriminators, ChainBuilder chainBuilder, LongitudinalEvaluators evaluators, int addThreshold = 1)
        {
            var braidBuilder = new BraidBuilder(name, discriminators, chainBuilder, evaluators, addThreshold);

            return(braidBuilder);
        }