public MultivariantVotingQCumulativeRule(QCumulative question, BulletinAdditionalMarks additionalMarks, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks) { Question = question; AdditionalMarks = additionalMarks; _numberOfChecks = numberOfChecks; _additionalChecks = additionalChecks; }
public MultivariantVotingPointRule(BaseYesNoAbsPoint point, BulletinAdditionalMarks additionalMarks, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks) { _numberOfChecks = numberOfChecks; _additionalChecks = additionalChecks; Point = point; AdditionalMarks = additionalMarks; }
public QCumulativeTableRule(QCumulative qCumulative, BulletinAdditionalMarks additionalMarks, Func <PackStatus> packStatus, Func <bool> trustExists, Func <AmountOfStockSubmited> amountOfStockSubmited, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks, Func <CumYesIs> cumChecks) { _packStatus = packStatus; _trustExists = trustExists; _amountOfStockSubmited = amountOfStockSubmited; _numberOfChecks = numberOfChecks; _additionalChecks = additionalChecks; _cumChecks = cumChecks; Question = qCumulative; AdditionalMarks = additionalMarks; }
public InCaseOfSimplePackPointWithNoAdditionalMarksAlwaysPassesRule(BaseYesNoAbsPoint point, BulletinAdditionalMarks additionalMarks, Func <PackStatus> packStatus, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks, Func <bool> isQSimpWithPrivDividends) { Point = point; AdditionalMarks = additionalMarks; _status = packStatus; _numberOfChecks = numberOfChecks; _additionalChecks = additionalChecks; _isQSimpWithPrivDividends = isQSimpWithPrivDividends; }
public static RuleNode GetQCumulativeTableRule(QCumulative qCumulative, BulletinAdditionalMarks additionalMarks, Func <PackStatus> packStatus, Func <bool> trustExists, Func <AmountOfStockSubmited> amountOfStockSubmited, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks, Func <CumYesIs> cumChecks) { return(RuleBuilder .RootRule(new InCaseOfSimplePackQCumulativeWithNoAdditionalMarksAlwaysPassesRule(qCumulative, additionalMarks, packStatus, amountOfStockSubmited, numberOfChecks, additionalChecks, cumChecks)) .AddRule(new MultivariantVotingQCumulativeRule(qCumulative, additionalMarks, numberOfChecks, additionalChecks)) .AddRule(new QCumulativeTableRule(qCumulative, additionalMarks, packStatus, trustExists, amountOfStockSubmited, numberOfChecks, additionalChecks, cumChecks)) .GetRoot()); }
public InCaseOfSimplePackQCumulativeWithNoAdditionalMarksAlwaysPassesRule(QCumulative qCumulative, BulletinAdditionalMarks additionalMarks, Func <PackStatus> packStatus, Func <AmountOfStockSubmited> amountOfStockSubmited, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks, Func <CumYesIs> cumChecks) { _packStatus = packStatus; _amountOfStockSubmited = amountOfStockSubmited; _numberOfChecks = numberOfChecks; _additionalChecks = additionalChecks; _cumChecks = cumChecks; Question = qCumulative; AdditionalMarks = additionalMarks; }
public QSimpleQSepAndHierSubQTableRule(BaseYesNoAbsPoint point, BulletinAdditionalMarks bulletinAdditionalMarks, Func <PackStatus> packStatus, Func <bool> trustExists, Func <AmountOfStockSubmited> amountOfStockSubmited, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks) { Point = point; AdditionalMarks = bulletinAdditionalMarks; PackStatus = packStatus; TrustExists = trustExists; AmountOfStockSubmited = amountOfStockSubmited; NumberOfChecks = numberOfChecks; AddtitionalChecks = additionalChecks; }
public static RuleNode GetQSimpleQSepAndHierSubQTableRuleChain(BaseYesNoAbsPoint point, BulletinAdditionalMarks additionalMarks, Func <PackStatus> packStatus, Func <bool> trustExists, Func <AmountOfStockSubmited> amountOfStockSubmited, Func <NumberOfChecks> numberOfChecks, Func <AdditionalChecks> additionalChecks, Func <bool> isQSimpWithPrivDividends) { return(RuleBuilder .RootRule(new InCaseOfSimplePackPointWithNoAdditionalMarksAlwaysPassesRule(point, additionalMarks, packStatus, numberOfChecks, additionalChecks, isQSimpWithPrivDividends)) .AddRule(new MultivariantVotingPointRule(point, additionalMarks, numberOfChecks, additionalChecks)) .AddRule(new QSimpleQSepAndHierSubQTableRule(point, additionalMarks, packStatus, trustExists, amountOfStockSubmited, numberOfChecks, additionalChecks)) .GetRoot()); }
public QCumulativeWarningRule(QCumulative question, BulletinAdditionalMarks additionalMarks, Func <FractionLong> allowedVotesAmount) { _allowedVotesAmount = allowedVotesAmount; Question = question; AdditionalMarks = additionalMarks; }
public QSeparateYesChecksShouldNotExceedPlacesCountRule(QSeparate question, BulletinAdditionalMarks additionalMarks, Func <FractionLong> allowedVotesAmount) { Question = question; AdditionalMarks = additionalMarks; AllowedVotesAmount = allowedVotesAmount; }
public QSimpleQSepAndHierSubQWarningRule(BaseYesNoAbsPoint point, BulletinAdditionalMarks additionalMarks, Func <FractionLong> allowedVotesAmount) { _point = point; AdditionalMarks = additionalMarks; _allowedVotesAmount = allowedVotesAmount; }