Class FixedFeedPerCycleOptLimit
Represents fixed feed-per-cycle optimization limits. Provides implementation for feed-per-cycle optimization with fixed minimum and maximum values.
public class FixedFeedPerCycleOptLimit : IFeedPerToothOptLimit, IMakeXmlSource, IDuplicate, IClearCache, IToXElement
- Inheritance
-
FixedFeedPerCycleOptLimit
- Implements
- Inherited Members
- Extension Methods
Constructors
FixedFeedPerCycleOptLimit(Func<int>, double)
Initializes a new instance of the FixedFeedPerCycleOptLimit class with specified parameters.
public FixedFeedPerCycleOptLimit(Func<int> fluteNumFunc, double maxFeedPerCycle_mm)
Parameters
fluteNumFuncFunc<int>Function that returns the number of flutes
maxFeedPerCycle_mmdoubleMaximum feed per cycle in millimeters
FixedFeedPerCycleOptLimit(XElement, string, MillingCutter)
Ctor.
public FixedFeedPerCycleOptLimit(XElement src, string baseDirectory, MillingCutter cutter)
Parameters
srcXElementXML
baseDirectorystringBase directory path for resolving relative paths
cutterMillingCutterThe milling cutter to use for flute number calculation
Properties
FluteNum
Gets the number of flutes.
public int FluteNum { get; }
Property Value
MaxFeedPerCycle_mm
Gets or sets the maximum feed per cycle value in millimeters.
public double MaxFeedPerCycle_mm { get; set; }
Property Value
MinFeedPerCycle_mm
Gets or sets the minimum feed per cycle value in millimeters.
public double MinFeedPerCycle_mm { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
ClearCache()
Clears any cached data held by the implementing object.
public void ClearCache()
Duplicate(params object[])
Creates a deep copy of the object, excluding any source file references.
public object Duplicate(params object[] res)
Parameters
resobject[]Optional parameters that may be needed during the duplication process
Returns
- object
A new instance that is a deep copy of the original object
GetMaxFeedPerTooth_mm()
Gets the maximum feed per tooth value in millimeters. By the principle of conservation, if the value is different from the NcOptOption.MaxFeedPerTooth_mm, The smaller value will be applied in the optimization process.
public double GetMaxFeedPerTooth_mm()
Returns
- double
The maximum feed per tooth value in millimeters.
GetMinFeedPerTooth_mm()
Gets the minimum feed per tooth value in millimeters. By the principle of conservation, if the value is different from the NcOptOption.MinFeedPerTooth_mm, The larger value will be applied in the optimization process.
public double GetMinFeedPerTooth_mm()
Returns
- double
The minimum feed per tooth value in millimeters.
MakeXmlSource(string, string, bool)
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, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
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.
ToXElement()
Get the XElement to represent the object.
public XElement ToXElement()