Class ExampleCompetency

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ExampleCompetency
    extends Competency
    example of the implementation of a competency, with comments explaining how to define competencies, this is not actually doing anything serious
    • Constructor Detail

      • ExampleCompetency

        public ExampleCompetency​(IArchitecture architecture)
        constructor, every competency, should if possible have a constructor that receives the Architecture as an argument
    • Method Detail

      • initialize

        public void initialize()
        perform initialisations in this method
        Specified by:
        initialize in class Competency
      • runsInBackground

        public boolean runsInBackground()
        this competency is invoked directly (does not run in background)
        Specified by:
        runsInBackground in class Competency
      • competencyCode

        protected boolean competencyCode​(java.util.HashMap<java.lang.String,​java.lang.String> parameters)
        the custom code of the competence, this is already running in a thread
        Specified by:
        competencyCode in class Competency
        Parameters:
        parameters - a map including running parameters and their values
        Returns:
        the return value of this method should indicate, whether the competency execution was a success (true) or failure (false)