Package cmion.level2

Class SamgarCompetencyInfo


  • public class SamgarCompetencyInfo
    extends java.lang.Object
    stores information about a Samgar competency that is necessary to build the competency dynamically and to chose it (e.g. class name, constructor parameters, category and sub category)
    • Constructor Summary

      Constructors 
      Constructor Description
      SamgarCompetencyInfo​(java.lang.String className, java.lang.String port, java.util.ArrayList<java.lang.Object> constructorParameters, java.util.ArrayList<java.lang.Class<?>> constructorParameterClasses)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Competency construct()
      constructs the competency that this info represents and returns it, throws an exception if class does not exist, parameters do not match, constructor does not exist or class is not subclass of Competency
      java.lang.String getClassName()
      returns the class name of the competency this info represents
      java.lang.String getPortName()
      returns the port name of the competency this info represents
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SamgarCompetencyInfo

        public SamgarCompetencyInfo​(java.lang.String className,
                                    java.lang.String port,
                                    java.util.ArrayList<java.lang.Object> constructorParameters,
                                    java.util.ArrayList<java.lang.Class<?>> constructorParameterClasses)
    • Method Detail

      • construct

        public Competency construct()
                             throws java.lang.Exception
        constructs the competency that this info represents and returns it, throws an exception if class does not exist, parameters do not match, constructor does not exist or class is not subclass of Competency
        Throws:
        java.lang.Exception
      • getClassName

        public java.lang.String getClassName()
        returns the class name of the competency this info represents
      • getPortName

        public java.lang.String getPortName()
        returns the port name of the competency this info represents