48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
/*
|
|
SETTINGS: (please don't move this part)
|
|
PATH=functions.EmptyNumberRule
|
|
*/
|
|
|
|
import org.warp.picalculator.math.Function;
|
|
import org.warp.picalculator.math.FunctionOperator;
|
|
import org.warp.picalculator.math.FunctionDynamic;
|
|
import org.warp.picalculator.math.FunctionSingle;
|
|
import org.warp.picalculator.math.MathContext;
|
|
|
|
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
|
import org.warp.picalculator.ScriptUtils;
|
|
import org.warp.picalculator.math.rules.Rule;
|
|
import org.warp.picalculator.math.rules.RuleType;
|
|
import org.warp.picalculator.math.rules.RulesManager;
|
|
|
|
/**
|
|
* EmptyNumber
|
|
*
|
|
*
|
|
* @author Andrea Cavalli
|
|
*
|
|
*/
|
|
public class EmptyNumberRule implements Rule {
|
|
// Rule name
|
|
@Override
|
|
public String getRuleName() {
|
|
return "EmptyNumber";
|
|
}
|
|
|
|
// Rule type
|
|
@Override
|
|
public RuleType getRuleType() {
|
|
return RuleType.CALCULATION;
|
|
}
|
|
|
|
/* Rule function
|
|
Returns:
|
|
- null if it's not executable on the function "f"
|
|
- An ObjectArrayList<Function> if it did something
|
|
*/
|
|
@Override
|
|
public ObjectArrayList<Function> execute(Function f) {
|
|
return null;
|
|
}
|
|
}
|