DecoratorComponent Derived Type

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


Inherits

type~~decoratorcomponent~~InheritsGraph type~decoratorcomponent DecoratorComponent type~abstractcomponent AbstractComponent type~decoratorcomponent->type~abstractcomponent type~maplcomponent MaplComponent type~decoratorcomponent->type~maplcomponent decorated 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~basecomponent->type~abstractcomponent

Type-Bound Procedures

procedure, public :: finalize

  • private subroutine finalize(this, import_state, export_state, clock, phase, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(DecoratorComponent), 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_decorated

  • private function get_decorated(this) result(decorated)

    Arguments

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

    Return Value class(MaplComponent), pointer

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(DecoratorComponent), intent(in) :: this

    Return Value character(len=:), allocatable

procedure, public :: initialize

  • private subroutine initialize(this, import_state, export_state, clock, phase, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(DecoratorComponent), 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

  • private subroutine run(this, import_state, export_state, clock, phase, unusable, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(DecoratorComponent), 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(DecoratorComponent), 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_decorated

  • private subroutine set_decorated(this, decorated)

    Arguments

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

procedure, public :: set_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(DecoratorComponent), intent(inout) :: this
    character(len=*), intent(in) :: name

Source Code

   type, abstract, extends(AbstractComponent) :: DecoratorComponent
      private
      class(MaplComponent), allocatable :: decorated
   contains
      procedure :: get_decorated
      procedure :: set_decorated

      procedure :: initialize
      procedure :: run
      procedure :: finalize

      procedure :: run_child

      procedure :: set_name
      procedure :: get_name
      procedure :: set_framework
   end type DecoratorComponent