BaseComponent Derived Type

type, public, abstract, extends(AbstractComponent) :: BaseComponent


Inherits

type~~basecomponent~~InheritsGraph type~basecomponent BaseComponent type~abstractcomponent AbstractComponent type~basecomponent->type~abstractcomponent

Inherited by

type~~basecomponent~~InheritedByGraph type~basecomponent BaseComponent type~maplcomponent MaplComponent type~maplcomponent->type~basecomponent type~decoratorcomponent DecoratorComponent type~decoratorcomponent->type~maplcomponent decorated type~stubcomponent StubComponent type~stubcomponent->type~maplcomponent type~usercomponent UserComponent type~usercomponent->type~maplcomponent

Type-Bound Procedures

procedure(i_Run), public, deferred :: finalize

  • subroutine i_Run(this, import_state, export_state, clock, phase, unusable, rc) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    type(ESMF_State), intent(inout) :: import_state
    type(ESMF_State), intent(inout) :: export_state
    type(ESMF_Clock), intent(inout) :: clock
    character(len=*), intent(in) :: phase
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

procedure(i_GetFramework), public, deferred :: get_framework

  • function i_GetFramework(this) result(framework) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(in) :: this

    Return Value class(SurrogateFrameworkComponent), pointer

procedure(i_GetLogger), public, deferred :: get_logger

  • function i_GetLogger(this) result(logger) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(in) :: this

    Return Value class(t_Logger), pointer

procedure, public :: get_name

  • private function get_name(this) result(name)

    Arguments

    Type IntentOptional Attributes Name
    class(BaseComponent), intent(in) :: this

    Return Value character(len=:), allocatable

procedure(i_Run), public, deferred :: initialize

  • subroutine i_Run(this, import_state, export_state, clock, phase, unusable, rc) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    type(ESMF_State), intent(inout) :: import_state
    type(ESMF_State), intent(inout) :: export_state
    type(ESMF_Clock), intent(inout) :: clock
    character(len=*), intent(in) :: phase
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

procedure(i_Run), public, deferred :: run

  • subroutine i_Run(this, import_state, export_state, clock, phase, unusable, rc) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    type(ESMF_State), intent(inout) :: import_state
    type(ESMF_State), intent(inout) :: export_state
    type(ESMF_Clock), intent(inout) :: clock
    character(len=*), intent(in) :: phase
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

procedure(i_RunChild), public, deferred :: run_child

  • subroutine i_RunChild(this, name, clock, phase, unusable, rc) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    character(len=*), intent(in) :: name
    type(ESMF_Clock), intent(inout) :: clock
    character(len=*), intent(in) :: phase
    class(KeywordEnforcer), intent(in), optional :: unusable
    integer, intent(out), optional :: rc

procedure(i_SetFramework), public, deferred :: set_framework

  • subroutine i_SetFramework(this, framework) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    class(SurrogateFrameworkComponent), target :: framework

procedure(i_SetLogger), public, deferred :: set_logger

  • subroutine i_SetLogger(this, logger) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(AbstractComponent), intent(inout) :: this
    class(t_Logger), target :: logger

procedure, public :: set_name

  • private subroutine set_name(this, name)

    Arguments

    Type IntentOptional Attributes Name
    class(BaseComponent), intent(inout) :: this
    character(len=*), intent(in) :: name

Source Code

   type, abstract, extends(AbstractComponent) :: BaseComponent
      private
      character(:), allocatable :: name
   contains
      procedure :: set_name
      procedure :: get_name
   end type BaseComponent