/// <summary> /// Initializes a new instance of the <see cref="Orchestration.Directive"/> class. /// </summary> /// <param name="directive"> /// The directive. /// </param> public Directive(Resolution.Directive directive) { if (directive != null) { this.directive = directive; } }
/// <summary> /// Move to the next directive in the collection. /// </summary> /// <returns> /// True if the next directive exists; otherwise false. /// </returns> public bool MoveNext() { // Avoids going beyond the end of the collection. if (++this.currentIndex >= this.directives.Count) { return(false); } // Set current box to next item in collection. this.currentDirective = this.directives[this.currentIndex]; return(true); }
/// <summary> /// Initializes a new instance of the <see cref="DirectivesEnumerator"/> class. /// </summary> /// <param name="directives"> /// The resolution directives to be enumerated. /// </param> public DirectivesEnumerator(Resolution.Directives directives) { this.directives = directives; this.currentIndex = -1; this.currentDirective = default(Resolution.Directive); }
/// <summary> /// Initializes a new instance of the <see cref="OesTrackpointEventStream"/> class. /// </summary> /// <param name="directive"> /// The directive. /// </param> /// <param name="data">Additional data for the current step.</param> public OesTrackpointEventStream(Resolution.Directive directive, Resolution.BamStepData data) : base(directive, new OesEventStream(), data) { }
/// <summary> /// Initializes a new instance of the <see cref="OesTrackpointEventStream"/> class. /// </summary> /// <param name="directive"> /// The directive. /// </param> public OesTrackpointEventStream(Resolution.Directive directive) : base(directive, new OesEventStream()) { }