Class ExampleTCPCompetency

All Implemented Interfaces:
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 Details

    • ExampleTCPCompetency

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

    • runsInBackground

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

      protected void startExecution(HashMap<String,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(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