Package gen :: Package lib :: Module ldsordbase :: Class LdsOrdBase
[frames] | no frames]

Class LdsOrdBase

source code


Base class for lds_ord-aware objects.

Instance Methods
 
__init__(self, source=None)
Initialize a LdsOrdBase.
source code
 
serialize(self)
Convert the object to a serialized tuple of data.
source code
 
unserialize(self, data)
Convert a serialized tuple of data to an object
source code
 
add_lds_ord(self, lds_ord)
Add the LdsOrd instance to the object's list of lds_ordes.
source code
bool
remove_lds_ord(self, lds_ord)
Remove the specified LdsOrd instance from the lds_ord list.
source code
list
get_lds_ord_list(self)
Return the list of LdsOrd instances associated with the object.
source code
 
set_lds_ord_list(self, lds_ord_list)
Assign the passed list to the object's list of LdsOrd instances.
source code
Method Details

__init__(self, source=None)
(Constructor)

source code 

Initialize a LdsOrdBase.

If the source is not None, then object is initialized from values of the source object.

Parameters:
  • source (LdsOrdBase) - Object used to initialize the new object

add_lds_ord(self, lds_ord)

source code 

Add the LdsOrd instance to the object's list of lds_ordes.

Parameters:
  • lds_ord (list) - LdsOrd instance to add to the object's lds_ord list

remove_lds_ord(self, lds_ord)

source code 

Remove the specified LdsOrd instance from the lds_ord list.

If the instance does not exist in the list, the operation has no effect.

Parameters:
  • lds_ord (LdsOrd) - LdsOrd instance to remove from the list
Returns: bool
True if the lds_ord was removed, False if it was not in the list.

get_lds_ord_list(self)

source code 

Return the list of LdsOrd instances associated with the object.

Returns: list
Returns the list of LdsOrd instances

set_lds_ord_list(self, lds_ord_list)

source code 

Assign the passed list to the object's list of LdsOrd instances.

Parameters:
  • lds_ord_list (list) - List of LdsOrd instances to be associated with the object