public List <DataModel> lstShortDataModel; //需补充的数据list public OutputInfo() { oTriggeringEvent = new TriggeringEvent(); oInference = new Inference(); oExplanation = new Explanation(); lstShortDataModel = new List <DataModel>(); }
public DirectInputBinding(string callback, int buttonIndex, CallbackInvocationBehavior callbackInvocationBehavior, TriggeringEvent triggeringEvent, int soundId, string description = null) { Callback = callback != null?callback.Trim() : null; ButtonIndex = buttonIndex; CallbackInvocationBehavior = callbackInvocationBehavior; BindingType = DirectInputBindingType.Button; PovDirection = PovDirections.None; TriggeringEvent = triggeringEvent; SoundId = soundId; Description = description; }
public override string ToString() { var sb = new StringBuilder(); sb.Append(Callback ?? "SimDoNothing"); sb.Append(" "); sb.Append(BindingType == DirectInputBindingType.POVDirection ? POVHatNumber : ButtonIndex); sb.Append(" "); sb.Append((int)CallbackInvocationBehavior); sb.Append(" "); sb.Append((int)BindingType); sb.Append(" "); if (BindingType == DirectInputBindingType.Button) { if (TriggeringEvent != 0) { sb.Append("0x"); sb.Append(TriggeringEvent.ToString("x").TrimStart('0')); } else { sb.Append("0"); } } else { sb.Append((int)PovDirection); } sb.Append(" "); sb.Append("0x0"); sb.Append(" "); sb.Append(SoundId); if (Description == null) { return(sb.ToString()); } sb.Append(" "); sb.Append(Description); return(sb.ToString()); }
public List <DataModel> lstDataModel; //数据模型list public InputDataModel() { oTriggeringEvent = new TriggeringEvent(); lstDataModel = new List <DataModel>(); }
public TriggeringEvent oTriggeringEvent; //输出结论与触发事件相关 #endregion Fields #region Constructors public OutputInfo() { oTriggeringEvent = new TriggeringEvent(); oInference = new Inference(); oExplanation = new Explanation(); lstShortDataModel = new List<DataModel>(); }
public TriggeringEvent oTriggeringEvent; //数据与触发事件相关 #endregion Fields #region Constructors public InputDataModel() { oTriggeringEvent = new TriggeringEvent(); lstDataModel = new List<DataModel>(); }