MaplComponent Derived Type

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


Inherits

type~~maplcomponent~~InheritsGraph type~maplcomponent MaplComponent ESMF_State ESMF_State type~maplcomponent->ESMF_State internal_state type~basecomponent BaseComponent type~maplcomponent->type~basecomponent type~logger Logger type~maplcomponent->type~logger logger type~surrogateframeworkcomponent SurrogateFrameworkComponent type~maplcomponent->type~surrogateframeworkcomponent framework type~abstractcomponent AbstractComponent type~basecomponent->type~abstractcomponent

Inherited by

type~~maplcomponent~~InheritedByGraph type~maplcomponent MaplComponent 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, public :: get_framework

  • private function get_framework(this) result(framework)

    Arguments

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

    Return Value class(SurrogateFrameworkComponent), pointer

procedure, public :: get_logger

  • private function get_logger(this) result(logger)

    Arguments

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

    Return Value class(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, public :: run_child

  • private subroutine run_child(this, name, clock, phase, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(MaplComponent), 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, public :: set_framework

procedure, public :: set_logger

  • private subroutine set_logger(this, logger)

    Arguments

    Type IntentOptional Attributes Name
    class(MaplComponent), intent(inout) :: this
    class(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(BaseComponent) :: MaplComponent
      private
      class(SurrogateFrameworkComponent), pointer :: framework => null()
      type(ESMF_State) :: internal_state
      class(t_Logger), pointer :: logger => null()
   contains
      ! Accessors
      procedure :: set_framework
      procedure :: get_framework
      procedure :: set_logger
      procedure :: get_logger

      procedure :: run_child

   end type MaplComponent