Cos
+ Computer(int falgIndex) :Decimal
资源匹配对象
+ Input :String+ InputSplit :String + RegularMatch : Boolen + Display : String+ Output : String+ ComputeType : Enum+ OptionType :Enum+ Level : Int32
普通分割
解析工厂类
{ Input : \
元素
+ Input :String + Display : String+ Output : String+ ComputeType : Enum+ OptionType :Add+ Level : Int32
+
1+2*3/4+(5%6-1)
OptionType : Enum
Sin
正则分割
Add
+ Computer(int falgIndex) :Decimal
解释展示
请求输入
解析映射处理
接口:计算
+ Computer(int falgIndex) :Decimal
出结果
接口:分割
组合计算
+ Input :String + Display : String+ Output : String+ ComputeType : Enum+ OptionType :Sin+ Level : Int32
+ Input :String + Display : String+ Output : String+ ComputeType : Enum+ OptionType :Enum+ Level : Int32
ComputeType : Enum
计算策略工厂类
+ static CreateComputer(Enum option) : IComputer+ static Do(int falgIndex) : Decimal