MultiLaserEngine¶
Bases: LightSource_Type
Represents the XML element MultiLaserEngine.
This element describes a Light Source device that contains multiple Lasers built into a single box. This element contains Reference(s) to individual Laser components built separately and assembled as part of this device.
fromBase(base)
staticmethod
¶
Cast a NBOBaseClass to a CMOS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base
|
NBOBaseClass
|
The base class to cast |
required |
Returns:
| Type | Description |
|---|---|
MultiLaserEngine
|
The casted element, or nullptr if the cast fails |
getTypeName()
¶
Returns the class type name.
Returns:
| Type | Description |
|---|---|
string
|
The class type name |
getXMLName()
¶
Returns the XML element name corresponding to this class.
Returns:
| Type | Description |
|---|---|
string
|
The XML element name |
getNBOType()
¶
Returns the NBO Type corresponding to this class.
Returns:
| Type | Description |
|---|---|
int
|
The NBO Type value |
getChildren()
¶
Returns a list of all classes derived from this class.
Returns:
| Type | Description |
|---|---|
List[NBOBaseClass]
|
The list of derived classes |
getSubElements()
¶
Returns a list of all child elements contained in this class.
Returns:
| Type | Description |
|---|---|
List[NBOBaseClass]
|
The list of child classes |
fromJsonFile(path, validate=True)
¶
Populates this object from a JSON file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
string
|
The path to the JSON file |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
fromJsonString(json_string, validate=True)
¶
Populates this object from a JSON string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json_string
|
string
|
The JSON content as a string |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
fromXmlFile(path, validate=True)
¶
Populates this object from a XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
string
|
The path to the XML file |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
fromXmlString(xml_string, validate=True)
¶
Populates this object from a XML string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xml_string
|
string
|
The XML content as a string |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
toXmlFile(filename, validate=True)
¶
Serializes this object to an XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
string
|
The path to the output XML file |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
toXmlString(validate=True)
¶
Serializes this object to an XML string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
Returns:
| Type | Description |
|---|---|
string
|
A string containing the XML representation of this object |
setSingleMode(value, validate=True)
¶
Sets the value of the SingleMode attribute.
Whether the output mode of this Multi Laser Engine is single-mode (True) or multi-mode (False).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
boolean
|
The value to set |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getSingleMode()
¶
Returns the value of the SingleMode attribute.
Whether the output mode of this Multi Laser Engine is single-mode (True) or multi-mode (False).
Returns:
| Type | Description |
|---|---|
boolean
|
The value of the attribute |
resetSingleMode()
¶
Resets the SingleMode attribute to an unset state.
Whether the output mode of this Multi Laser Engine is single-mode (True) or multi-mode (False).
hasSingleMode()
¶
Checks whether the SingleMode attribute is present.
Whether the output mode of this Multi Laser Engine is single-mode (True) or multi-mode (False).
Returns:
| Type | Description |
|---|---|
boolean
|
true if the attribute has been set, false otherwise |
setNumberOfLasers(value, validate=True)
¶
Sets the value of the NumberOfLasers attribute.
This field records the number of Laser lines associated with this Multi Laser Engine.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int
|
The value to set |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getNumberOfLasers()
¶
Returns the value of the NumberOfLasers attribute.
This field records the number of Laser lines associated with this Multi Laser Engine.
Returns:
| Type | Description |
|---|---|
int
|
The value of the attribute |
resetNumberOfLasers()
¶
Resets the NumberOfLasers attribute to an unset state.
This field records the number of Laser lines associated with this Multi Laser Engine.
hasNumberOfLasers()
¶
Checks whether the NumberOfLasers attribute is present.
This field records the number of Laser lines associated with this Multi Laser Engine.
Returns:
| Type | Description |
|---|---|
boolean
|
true if the attribute has been set, false otherwise |
setOutputPortNumber(value, validate=True)
¶
Sets the value of the OutputPortNumber attribute.
This field records the number of Light Guide ports used as output by this Multi Laser Engine.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int
|
The value to set |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getOutputPortNumber()
¶
Returns the value of the OutputPortNumber attribute.
This field records the number of Light Guide ports used as output by this Multi Laser Engine.
Returns:
| Type | Description |
|---|---|
int
|
The value of the attribute |
resetOutputPortNumber()
¶
Resets the OutputPortNumber attribute to an unset state.
This field records the number of Light Guide ports used as output by this Multi Laser Engine.
hasOutputPortNumber()
¶
Checks whether the OutputPortNumber attribute is present.
This field records the number of Light Guide ports used as output by this Multi Laser Engine.
Returns:
| Type | Description |
|---|---|
boolean
|
true if the attribute has been set, false otherwise |
setMultiportSwitchTime(value, validate=True)
¶
Sets the value of the MultiportSwitchTime attribute.
This field records the time it takes for this Multi Laser Engine to switch between Laser lines.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
float
|
The value to set |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getMultiportSwitchTime()
¶
Returns the value of the MultiportSwitchTime attribute.
This field records the time it takes for this Multi Laser Engine to switch between Laser lines.
Returns:
| Type | Description |
|---|---|
float
|
The value of the attribute |
resetMultiportSwitchTime()
¶
Resets the MultiportSwitchTime attribute to an unset state.
This field records the time it takes for this Multi Laser Engine to switch between Laser lines.
hasMultiportSwitchTime()
¶
Checks whether the MultiportSwitchTime attribute is present.
This field records the time it takes for this Multi Laser Engine to switch between Laser lines.
Returns:
| Type | Description |
|---|---|
boolean
|
true if the attribute has been set, false otherwise |
setMultiportSwitchTimeUnit(value, validate=True)
¶
Sets the value of the MultiportSwitchTimeUnit attribute.
No description available in the XSD standard.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
UnitsTime_Type
|
The value to set |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getMultiportSwitchTimeUnit()
¶
Returns the value of the MultiportSwitchTimeUnit attribute.
No description available in the XSD standard.
Returns:
| Type | Description |
|---|---|
UnitsTime_Type
|
The value of the attribute |
resetMultiportSwitchTimeUnit()
¶
Resets the MultiportSwitchTimeUnit attribute to an unset state.
No description available in the XSD standard.
hasMultiportSwitchTimeUnit()
¶
Checks whether the optional MultiportSwitchTimeUnit attribute is present.
No description available in the XSD standard.
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setLaserRef_List(value, validate=True)
¶
Sets the list of LaserRef elements.
No description available in the XSD standard.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
List[LaserRef]
|
The new list of LaserRef elements |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
getLaserRef_List()
¶
Returns the list of LaserRef elements.
No description available in the XSD standard.
Returns:
| Type | Description |
|---|---|
List[LaserRef]
|
The list of LaserRef elements |
addToLaserRef_List(value, validate=True)
¶
Adds a new LaserRef element to this object.
No description available in the XSD standard.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
LaserRef
|
The element to add |
required |
validate
|
(boolean, optional)
|
If true, validates constraints on value. Default is true. |
True
|
clearLaserRef_List()
¶
Clear the list of LaserRef.
No description available in the XSD standard.