Source code for RCAIDE.Framework.Core.ContainerOrdered

# ContainerOrdered.py
#
# Created:  Jan 2015, T. Lukacyzk
# Modified: Feb 2016, T. MacDonald
#           Jun 2016, E. Botero
#           May 2020, E. Botero



# ----------------------------------------------------------------------
#   Imports
# ----------------------------------------------------------------------        

from .DataOrdered import DataOrdered

# ----------------------------------------------------------------------
#   Data Container Base Class
# ----------------------------------------------------------------------        

[docs] class ContainerOrdered(DataOrdered): """ A dict-type container with attribute, item and index style access intended to hold a attribute-accessible list of DataOrdered(). This is ordered. Assumptions: N/A Source: N/A """ def __defaults__(self): """Defaults function Assumptions: None Source: N/A Inputs: N/A Outputs: N/A Properties Used: N/A """ pass
[docs] def __init__(self,*args,**kwarg): """Initialization that builds the container Assumptions: None Source: N/A Inputs: self Outputs: N/A Properties Used: N/A """ super(ContainerOrdered,self).__init__(*args,**kwarg) self.__defaults__()
[docs] def append(self,val): """Appends the value to the containers Assumptions: None Source: N/A Inputs: self Outputs: N/A Properties Used: N/A """ #val = self.check_new_val(val) DataOrdered.append(self,val)
[docs] def get_children(self): """ Returns the components that can go inside Assumptions: None Source: N/A Inputs: None Outputs: None Properties Used: N/A """ return []