예제 #1
0
 private Chain(ChainIdentity chainIdentity, Braid braid, LongitudinalEvaluators longitudinalEvaluators, LongitudinalEvaluations evaluations)
 {
     _longitudinalEvaluators = longitudinalEvaluators;
     _evaluations            = evaluations;
     ChainIdentity           = chainIdentity;
     Braid = braid;
 }
예제 #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;
 }
예제 #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));
        }
예제 #4
0
 public static ChainBuilder Build(Func <MarkovEvent, ChainIdentity> buildChainIdentity, LongitudinalEvaluators evaluators)
 {
     return(new ChainBuilder(buildChainIdentity, evaluators));
 }
예제 #5
0
 private ChainBuilder(Func <MarkovEvent, ChainIdentity> buildChainIdentity, LongitudinalEvaluators evaluators)
 {
     _buildChainIdentity = buildChainIdentity;
     _evaluators         = evaluators;
 }
예제 #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);
        }