calculator.dart 403 B

1234567891011121314151617181920
  1. import 'package:fis_common/event/event_type.dart';
  2. import 'output.dart';
  3. abstract class ICalculator<TValue> {
  4. /// 输出结果
  5. OutputItem<TValue>? get output;
  6. /// 结果记录集合
  7. List<OutputItem<TValue>> get outputs;
  8. /// 计算
  9. void calculate();
  10. /// 结束一次测算
  11. void finishOnce();
  12. /// 输出结果变化事件
  13. late FEventHandler<OutputItem<TValue>?> outputChanged;
  14. }