|
Telescience Resource Kit
TReK Python
5.4.0 ART
|
This class provides the common set of names and descriptions allowed for items in the Data API. More...
Inherited by BaseEnumerator, Calibrator, Dependency, ExpectedStateAlarm, LimitAlarm, PacketItem, Parameter, and SwitchSet.
Public Member Functions | |
def | remove_all_attributes ( -> None ) -> def |
Removes all attributes. | |
def | remove_attribute (name: str -> None ) -> def |
Removes the attribute by name. More... | |
Initialize / Finalize | |
Functions handling class initialization and destruction. | |
def | NamedItem ( Optional[NamedItem] named_item=None -> None ) -> def |
Class initializer. More... | |
def | __eq__ (named_item: object -> bool ) -> def |
Equality operator "==". More... | |
def | copy (copy_from: object -> None ) -> def |
Copies the contents of the provided 'copy_from' NamedItem into this NamedItem. More... | |
def | initialize ( -> None ) -> def |
Initializes the object. More... | |
Get Attributes | |
Functions to get the value of the NamedItem's attributes. | |
def | add_attribute (name: str, value: str -> None ) -> def |
Adds an attribute to the item. More... | |
def | get_alias ( -> str ) -> def |
Returns the alias of the item. More... | |
def | get_attribute (name: str -> str ) -> def |
Get the value of the specified attribute. More... | |
def | get_attribute_list ( -> list[str] ) -> def |
Gets a list of the attribute names. More... | |
def | get_name ( -> str ) -> def |
Returns the name of the item. More... | |
def | get_long_description ( -> str ) -> def |
Returns the long description of the item. More... | |
def | get_short_description ( -> str ) -> def |
Returns the short description of the item. More... | |
def | get_user_description ( -> str ) -> def |
Returns the user description of the item. More... | |
def | get_owner ( -> str ) -> def |
Returns the owner of the item. More... | |
def | get_path ( -> str ) -> def |
Returns the path for the item. More... | |
Set Attributes | |
Functions to set the value of the NamedItem's attributes. | |
def | set_name (name: str -> None ) -> def |
Sets the name of the item. More... | |
def | set_alias (alias: str -> None ) -> def |
Sets the alias of the item. More... | |
def | set_short_description (description: str -> None ) -> def |
Sets the short description of the item. More... | |
def | set_long_description (description: str -> None ) -> def |
Sets the long description of the item. More... | |
def | set_user_description (description: str -> None ) -> def |
Sets the user description of the item. More... | |
def | set_owner (owner: str -> None ) -> def |
Sets the owner of the item. More... | |
def | set_path (path: str -> None ) -> def |
Sets the path of the item. More... | |
This class provides the common set of names and descriptions allowed for items in the Data API.
( | named_item | : Optional[NamedItem] | ) | -> None |
Class initializer.
named_item | NamedItem to create a copy (optional). By default, initializes a new instance. |
Reimplemented in Calibrator, Dependency, SwitchSet, AndDependency, CalibratorSwitchSet, ComparisonDependency, CounterDependency, DelimitedParameterCollection, Enumerator, EnumeratorSwitchSet, ExpectedStateAlarm, ExpectedStateAlarmSwitchSet, FormatCollection, LimitAlarm, LimitAlarmSwitchSet, MathCalibrator, OrDependency, OrderedParameterCollection, Packet, Parameter, ParameterCollection, PolynomialCalibrator, RandomPacketCollection, RangeEnumerator, SignedEnumerator, and SplineCalibrator.
( | named_item | : object | ) | -> bool |
Equality operator "==".
Reimplemented in Enumerator, RangeEnumerator, and SignedEnumerator.
( | name | : str | |
value | : str | ||
) | -> None |
Adds an attribute to the item.
[in] | name | The name of the attribute. |
[in] | value | The value of the attribute. |
( | copy_from | : object | ) | -> None |
Copies the contents of the provided 'copy_from' NamedItem into this NamedItem.
[in] | copy_from | NamedItem to copy from. |
TypeError | if 'copy_from' is not a NamedItem. |
Reimplemented in AndDependency, CalibratorSwitchSet, ComparisonDependency, CounterDependency, DelimitedParameterCollection, Enumerator, EnumeratorSwitchSet, ExpectedStateAlarm, ExpectedStateAlarmSwitchSet, FormatCollection, LimitAlarm, LimitAlarmSwitchSet, MathCalibrator, OrDependency, OrderedParameterCollection, Packet, Parameter, ParameterCollection, PolynomialCalibrator, RandomPacketCollection, RangeEnumerator, SignedEnumerator, SplineCalibrator, and SwitchSet.
( | ) | -> str |
Returns the alias of the item.
( | name | : str | ) | -> str |
Get the value of the specified attribute.
[in] | name | The name of the attribute to retrieve. |
( | ) | -> list[str] |
Gets a list of the attribute names.
( | ) | -> str |
Returns the long description of the item.
( | ) | -> str |
Returns the name of the item.
( | ) | -> str |
Returns the owner of the item.
( | ) | -> str |
Returns the path for the item.
( | ) | -> str |
Returns the short description of the item.
( | ) | -> str |
Returns the user description of the item.
( | ) | -> None |
Initializes the object.
Clears any set values in the NamedItem. New instances do not need to be initialized.
Reimplemented in Calibrator, DelimitedParameterCollection, Enumerator, ExpectedStateAlarm, FormatCollection, LimitAlarm, MathCalibrator, OrderedParameterCollection, Packet, Parameter, ParameterCollection, PolynomialCalibrator, RandomPacketCollection, RangeEnumerator, SignedEnumerator, SplineCalibrator, and SwitchSet.
( | name | : str | ) | -> None |
Removes the attribute by name.
[in] | name | The name of the attribute to remove. |
TrekError | 15007 - TREK_DATA_DOES_NOT_EXIST |
( | alias | : str | ) | -> None |
Sets the alias of the item.
There is no restriction on the length of the alias. However, individual projects may impose length restrictions.
[in] | alias | The new alias for the item. |
( | description | : str | ) | -> None |
Sets the long description of the item.
There is no restriction on the length of the long description. However, individual projects may impose length restrictions.
[in] | description | The new long description for the item. |
( | name | : str | ) | -> None |
Sets the name of the item.
There is no restriction on the length of the name. However, individual projects may impose length restrictions.
[in] | name | The new name for the item. |
( | owner | : str | ) | -> None |
Sets the owner of the item.
There is no restriction on the length of the owner. However, individual projects may impose length restrictions.
( | path | : str | ) | -> None |
Sets the path of the item.
There is no restriction on the length of the path. It can be used to support a path like name for the item for informational purposes.
( | description | : str | ) | -> None |
Sets the short description of the item.
There is no restriction on the length of the short description. However, individual projects may impose length restrictions.
[in] | description | The new short description for the item. |
( | description | : str | ) | -> None |
Sets the user description of the item.
There is no restriction on the length of the user description. However, individual projects may impose length restrictions.
[in] | description | The new user description for the item. |