public static Rule WHEN_L_LONG_AND_D_LONG_ACCELERATION_POSITIVE() { var variables = new List <string> { VariableConstants.L, VariableConstants.D }; var antecedent = new List <IFuzzySet> { new LongDistance(VariableConstants.L), new LongDistance(VariableConstants.D) }; var consequent = new PositiveAcceleration(VariableConstants.Acceleration); return(new Rule(antecedent, consequent, variables)); }
public static Rule WHEN_V_SLOW_THEN_ACCELERATION_POSITIVE() { var variables = new List <string> { VariableConstants.V }; var antecedent = new List <IFuzzySet> { new SlowVelocity(VariableConstants.V), // new DirectionMemberSet() }; var consequent = new PositiveAcceleration(VariableConstants.Acceleration); return(new Rule(antecedent, consequent, variables)); }