Table of Contents

Class BoundSelectorStepSectionBundle

Namespace
Hi.Numerical.StepSelectionUtils
Assembly
HiMech.dll

Represents a bundle containing a boundary selector pair and the corresponding step section range.

public class BoundSelectorStepSectionBundle : IMakeXmlSource
Inheritance
BoundSelectorStepSectionBundle
Implements
Inherited Members
Extension Methods

Constructors

BoundSelectorStepSectionBundle(BoundSelectorPair, Range<int>)

Initializes a new instance of the BoundSelectorStepSectionBundle class with the specified boundary selector pair and step section.

public BoundSelectorStepSectionBundle(BoundSelectorPair boundSelectorPair, Range<int> stepSection)

Parameters

boundSelectorPair BoundSelectorPair

The boundary selector pair.

stepSection Range<int>

The step section range.

BoundSelectorStepSectionBundle(XElement, string)

Ctor.

public BoundSelectorStepSectionBundle(XElement src, string baseDirectory)

Parameters

src XElement

XML source element

baseDirectory string

Base directory for resolving relative paths

Properties

BoundSelectorPair

Gets or sets the boundary selector pair that defines the step section.

public BoundSelectorPair BoundSelectorPair { get; set; }

Property Value

BoundSelectorPair

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

Methods

BuildStepSection(ClStrip)

Builds the step section range from the CL strip using the boundary selector pair.

public Range<int> BuildStepSection(ClStrip clStrip)

Parameters

clStrip ClStrip

The CL strip to build the step section from.

Returns

Range<int>

The built step section range.

CallStepSection(ClStrip)

Gets the existing step section or builds it if it doesn't exist.

public Range<int> CallStepSection(ClStrip clStrip)

Parameters

clStrip ClStrip

The CL strip to use for building the step section if needed.

Returns

Range<int>

The step section range.

MakeXmlSource(string, string)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.