Class PojoBasicComponentPortClass

java.lang.Object
org.palladiosimulator.protocom.tech.ConceptMapping<E>
org.palladiosimulator.protocom.tech.rmi.PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
org.palladiosimulator.protocom.tech.pojo.repository.PojoBasicComponentPortClass
All Implemented Interfaces:
ICompilationUnit, IJClass, IJCompilationUnit

public class PojoBasicComponentPortClass extends PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
Provider for port classes based on provided roles. Please note that InfrastructureProvidedRoles were - to some degree - hacked into the PCM such that cumbersome case distinction for Operation and Infrastructure is necessary. Possible TODO is to split PojoBasicComponentPortClass into two classes with a common super type. Keep in mind though that InfrastructureComponents in ProtoCom are not generated, but rather calls to the real infrastructure! TODO Code stubs may also use CallVistitors like the performance prototype implementation. Note that, in this case, the ctx object might simply be removed.
  • Constructor Details

    • PojoBasicComponentPortClass

      public PojoBasicComponentPortClass(org.palladiosimulator.pcm.repository.ProvidedRole pcmEntity)
  • Method Details

    • superClass

      public String superClass()
      Description copied from interface: IJClass
      Inherited class name.
      Specified by:
      superClass in interface IJClass
      Overrides:
      superClass in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • packageName

      public String packageName()
      Description copied from interface: IJCompilationUnit
      Package name of this compilation unit.
      Specified by:
      packageName in interface IJCompilationUnit
      Overrides:
      packageName in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • compilationUnitName

      public String compilationUnitName()
      Description copied from interface: IJCompilationUnit
      Name of the compilation unit.
      Specified by:
      compilationUnitName in interface IJCompilationUnit
      Overrides:
      compilationUnitName in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • interfaces

      public Collection<String> interfaces()
      Description copied from interface: IJCompilationUnit
      Collection of interface names which are either implemented or extended.
      Specified by:
      interfaces in interface IJCompilationUnit
      Overrides:
      interfaces in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • constructors

      public Collection<? extends IJMethod> constructors()
      Description copied from interface: IJClass
      Constructors of this class. FIXME: JMethod is ok'ish, but not entirely correct.
      Specified by:
      constructors in interface IJClass
      Overrides:
      constructors in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • methods

      public Collection<? extends IJMethod> methods()
      Description copied from interface: IJCompilationUnit
      Methods (or signatures) defined by this compilation unit.
      Specified by:
      methods in interface IJCompilationUnit
      Overrides:
      methods in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • filePath

      public String filePath()
      Description copied from interface: ICompilationUnit
      Path and name of the generated file.
      Specified by:
      filePath in interface ICompilationUnit
      Overrides:
      filePath in class PojoClass<org.palladiosimulator.pcm.repository.ProvidedRole>
    • _providedRoleMethods

      protected List<JMethod> _providedRoleMethods(org.palladiosimulator.pcm.repository.OperationProvidedRole role)
    • _providedRoleMethods

      protected List<JMethod> _providedRoleMethods(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole role)
    • _providedRoleMethods

      protected List<JMethod> _providedRoleMethods(org.palladiosimulator.pcm.repository.SinkRole role)
      TODO Implement SinkRoles?
    • _providedRoleInterface

      protected String _providedRoleInterface(org.palladiosimulator.pcm.repository.OperationProvidedRole role)
    • _providedRoleInterface

      protected String _providedRoleInterface(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole role)
    • _providedRoleInterface

      protected String _providedRoleInterface(org.palladiosimulator.pcm.repository.SinkRole role)
      TODO Implement SinkRoles?
    • providedRoleMethods

      public List<JMethod> providedRoleMethods(org.palladiosimulator.pcm.repository.ProvidedRole role)
    • providedRoleInterface

      public String providedRoleInterface(org.palladiosimulator.pcm.repository.ProvidedRole role)