/// <summary> /// set the state of the rule /// </summary> /// <param name="newState"></param> protected void SetState(otRuleState newState) { _state = newState; }
private otRuleState _state; // state of the rule #endregion Fields #region Constructors /// <summary> /// constructor /// </summary> /// <param name="handle"></param> public Rule( string id = null, Engine engine = null) : base(engine: engine) { this.NodeType = otXPTNodeType.Rule; if (id == null) { _id = Guid.NewGuid().ToString(); } else { _id = id; } _state = otRuleState.created; _engine = engine; _handle = Guid.NewGuid().ToString(); }