public FilterNodeSurrogate(ISequenceFilterNode filterNode) { StartTime = filterNode.StartTime; TypeId = filterNode.Filter.Descriptor.TypeId; InstanceId = filterNode.Filter.InstanceId; TimeSpan = filterNode.Filter.TimeSpan; TargetNodes = filterNode.Filter.TargetNodes.Select(x => new ChannelNodeReferenceSurrogate(x)).ToArray(); }
public FilterNodeSurrogate(ISequenceFilterNode filterNode) { StartTime = filterNode.StartTime; TypeId = filterNode.Filter.Descriptor.TypeId; InstanceId = filterNode.Filter.InstanceId; TimeSpan = filterNode.Filter.TimeSpan; TargetNodes = filterNode.Filter.TargetNodes.Select(x => new ChannelNodeReferenceSurrogate(x)).ToArray(); }
public void ApplyFilter(ISequenceFilterNode sequenceFilterNode, TimeSpan contextAbsoluteIntentStartTime) { FractureAt(sequenceFilterNode.StartTime - contextAbsoluteIntentStartTime); FractureAt(sequenceFilterNode.EndTime - contextAbsoluteIntentStartTime); var segmentNodes = _GetIntersectingSegments(sequenceFilterNode); foreach (var segmentNode in segmentNodes) { sequenceFilterNode.AffectIntent(segmentNode.Segment, contextAbsoluteIntentStartTime + segmentNode.StartTime, contextAbsoluteIntentStartTime + segmentNode.EndTime); } }
public bool RemoveSequenceFilter(ISequenceFilterNode sequenceFilterNode) { SequenceData.LocalDataSet.RemoveModuleInstanceData(sequenceFilterNode.Filter); return(SequenceData.SequenceFilterData.RemoveData(sequenceFilterNode)); }
public void AddSequenceFilter(ISequenceFilterNode sequenceFilterNode) { SequenceData.LocalDataSet.AssignModuleInstanceData(sequenceFilterNode.Filter); SequenceData.SequenceFilterData.AddData(sequenceFilterNode); }
public void ApplyFilter(ISequenceFilterNode sequenceFilterNode, TimeSpan contextAbsoluteIntentStartTime) { throw new NotImplementedException(); }
public bool RemoveSequenceFilter(ISequenceFilterNode sequenceFilterNode) { SequenceData.LocalDataSet.RemoveModuleInstanceData(sequenceFilterNode.Filter); return SequenceData.SequenceFilterData.RemoveData(sequenceFilterNode); }
public void AddSequenceFilter(ISequenceFilterNode sequenceFilterNode) { SequenceData.LocalDataSet.AssignModuleInstanceData(sequenceFilterNode.Filter); SequenceData.SequenceFilterData.AddData(sequenceFilterNode); }
public int CompareTo(ISequenceFilterNode other) { return(DataNode.Compare(this, other)); }
private bool _FilterQualifies(ISequenceFilterNode sequenceFilterNode, ITimeNode timeNode) { return(TimeNode.IntersectsExclusively(timeNode, sequenceFilterNode)); }
private bool _FilterQualifies(ISequenceFilterNode sequenceFilterNode, TimeSpan currentTime) { return(currentTime >= sequenceFilterNode.StartTime && currentTime < sequenceFilterNode.EndTime); }
//contextAbsoluteEffectStartTime = effectNode.StartTime public void ApplyFilter(ISequenceFilterNode sequenceFilterNode, TimeSpan contextAbsoluteEffectStartTime) { // Pre-filters have context-absolute timing, so the intent needs to be told // where in context-absolute time it is. Intent.ApplyFilter(sequenceFilterNode, contextAbsoluteEffectStartTime + StartTime); }
public void ApplyFilter(ISequenceFilterNode sequenceFilterNode, TimeSpan contextAbsoluteIntentStartTime) { _segments.ApplyFilter(sequenceFilterNode, contextAbsoluteIntentStartTime); }
public void AddSequenceFilter(ISequenceFilterNode sequenceFilterNode) { ModuleDataSet.AssignModuleInstanceData(sequenceFilterNode.Filter); Data.AddData(_sequenceFilterStreamId, sequenceFilterNode); }
public void AddSequenceFilter(ISequenceFilterNode sequenceFilterNode) { ModuleDataSet.AssignModuleInstanceData(sequenceFilterNode.Filter); Data.AddData(_sequenceFilterStreamId, sequenceFilterNode); }