import { ConditionData , LogicType } from "../../constant/BaseConst" ; import ParamItem from "../parameters/ParamItem" ; /**
 * 管理运行时单个条件数据
 */ export default class Condition { private _paramItem : ParamItem = null ; public get paramItem ( ) { return this . _paramItem ; } public value : number = 0 ; public logic : LogicType = LogicType . EQUAL ; constructor ( paramItem ) { this . reset ( paramItem ) ; } /**
     * 销毁
     */ public destroy ( ) { } public reset ( paramItem ) { this . _paramItem = paramItem ; this . value = 0 ; this . logic = LogicType . EQUAL ; } public getConditionData ( ) { let data = { param : this . _paramItem . paramName , value : this . value , logic : this . logic } ; return data ; } }