Class CuttingVelocityOptLimit
Represents optimization limits for cutting velocity parameters.
public class CuttingVelocityOptLimit : ICuttingVelocityOptLimit, IMakeXmlSource, IDuplicate, IToXElement
- Inheritance
-
CuttingVelocityOptLimit
- Implements
- Inherited Members
- Extension Methods
Constructors
CuttingVelocityOptLimit()
Initializes a new instance of the CuttingVelocityOptLimit class.
public CuttingVelocityOptLimit()
CuttingVelocityOptLimit(XElement, string)
Initializes a new instance of the CuttingVelocityOptLimit class from XML.
public CuttingVelocityOptLimit(XElement src, string baseDirectory)
Parameters
src
XElementThe XML source element.
baseDirectory
stringThe base directory for resolving relative paths.
Properties
MaxCuttingVelocity_mmdmin
Gets or sets the maximum cutting velocity in millimeters per minute.
public double MaxCuttingVelocity_mmdmin { get; set; }
Property Value
MaxCuttingVelocity_mmds
Gets or sets the maximum cutting velocity in millimeters per second.
public double MaxCuttingVelocity_mmds { get; set; }
Property Value
MinCuttingVelocity_mmdmin
Gets or sets the minimum cutting velocity in millimeters per minute.
public double MinCuttingVelocity_mmdmin { get; set; }
Property Value
MinCuttingVelocity_mmds
Gets or sets the minimum cutting velocity in millimeters per second.
public double MinCuttingVelocity_mmds { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
Duplicate(params object[])
Creates a deep copy of the object, excluding any source file references.
public object Duplicate(params object[] res)
Parameters
res
object[]Optional parameters that may be needed during the duplication process
Returns
- object
A new instance that is a deep copy of the original object
GetMaxCuttingVelocity_mmds()
Gets the maximum cutting velocity in millimeters per second.
public double GetMaxCuttingVelocity_mmds()
Returns
- double
The maximum cutting velocity in millimeters per second.
GetMinCuttingVelocity_mmds()
Gets the minimum cutting velocity in millimeters per second.
public double GetMinCuttingVelocity_mmds()
Returns
- double
The minimum cutting velocity in millimeters per second.
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
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
exhibitionOnly
boolif 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()