public override bool CanStopEarly() { if (Metric == null) { return(false); } return(Metric.CanStopEarly()); }
public ObjectiveSuccessTrigger( ObjectiveSuccessLevel SuccessLevel, int Threshold, bool Invert, Objective Objective) { this.SuccessLevel = SuccessLevel; this.Threshold = Threshold; this.Invert = Invert; this.Objective = Objective; CanStopEarly = Objective.CanStopEarly(); }
public ObjectiveSuccessTrigger(ParseBlock Block) { var attributes = Block.BreakToAttributes <object>(typeof(Attribute)); SuccessLevel = (ObjectiveSuccessLevel)attributes[(int)Attribute.SUCCESS_LEVEL]; Threshold = (int)(attributes[(int)Attribute.THRESHOLD] ?? 1); Invert = (bool)(attributes[(int)Attribute.INVERT] ?? false); Objective = (Objective)attributes[(int)Attribute.OBJECTIVE]; CanStopEarly = Objective.CanStopEarly(); }
public override bool CanStopEarly() { return(Numerator.CanStopEarly() || Denominator.CanStopEarly()); }
public override bool CanStopEarly() { return(Objective.CanStopEarly()); }