/// <summary> /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class. /// </summary> /// <param name="owner">The owner.</param> /// <param name="startValue">The start value.</param> /// <param name="increment">The increment.</param> /// <param name="maxValue">The max value.</param> /// <param name="minValue">The min value.</param> /// <param name="isCyclic">The is cyclic.</param> public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment, long?maxValue, long?minValue, bool?isCyclic) { StartValue = startValue; Increment = increment; this.maxValue = maxValue; this.minValue = minValue; this.isCyclic = isCyclic; }
//calls sequenceable traits that have a matching index public void CallInSequence(int order) { TraitBase[] tempTraits = GetArray(); for (int i = 0; i < tempTraits.Length; i++) { if (tempTraits[i] is ISequenceable) { ISequenceable sequenceable = (ISequenceable)tempTraits[i]; sequenceable.CallInSequence(order); } } }
/// <summary> /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class. /// </summary> /// <param name="owner">The owner.</param> /// <param name="startValue">The start value.</param> /// <param name="increment">The increment.</param> /// <param name="maxValue">The max value.</param> /// <param name="minValue">The min value.</param> public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment, long?maxValue, long?minValue) : this(owner, startValue, increment, maxValue, minValue, null) { }
/// <summary> /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class. /// </summary> /// <param name="owner">The owner.</param> /// <param name="startValue">The start value.</param> /// <param name="increment">The increment.</param> public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment) : this(owner, startValue, increment, null, null, null) { }
/// <summary> /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class. /// </summary> /// <param name="owner">The owner.</param> /// <param name="startValue">The start value.</param> public SequenceDescriptor(ISequenceable owner, long?startValue) : this(owner, startValue, null, null, null, null) { }
/// <summary> /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class. /// </summary> /// <param name="owner">The owner.</param> public SequenceDescriptor(ISequenceable owner) { this.owner = owner; }
public JoinedSequenceable(ISequenceable source) { this.source = source; }
private Sequence Append(ISequenceable sequenceable) { queue.AddLast(sequenceable); return(this); }