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
BoundSelectorPairThe boundary selector pair.
stepSection
Range<int>The step section range.
BoundSelectorStepSectionBundle(XElement, string)
Ctor.
public BoundSelectorStepSectionBundle(XElement src, string baseDirectory)
Parameters
Properties
BoundSelectorPair
Gets or sets the boundary selector pair that defines the step section.
public BoundSelectorPair BoundSelectorPair { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
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
ClStripThe CL strip to build the step section from.
Returns
CallStepSection(ClStrip)
Gets the existing step section or builds it if it doesn't exist.
public Range<int> CallStepSection(ClStrip clStrip)
Parameters
clStrip
ClStripThe CL strip to use for building the step section if needed.
Returns
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
stringThe base directory for resolving relative paths
relFile
stringThe 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.