Class ExampleTCPCompetency

  • All Implemented Interfaces:
    java.lang.Runnable

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

      • ExampleTCPCompetency

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

      • runsInBackground

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

        protected void startExecution​(java.util.HashMap<java.lang.String,​java.lang.String> parameters)
        we must implement this method. It will be invoked whenever the competency is started.
        Specified by:
        startExecution in class RemoteCompetency
      • processMessage

        protected void processMessage​(java.lang.String message)
        we must also implement this method, it will be invoked, whenever we receive a message from the remote program
        Specified by:
        processMessage in class RemoteCompetency