Class NavigationSamgarCompetency

  • All Implemented Interfaces:
    java.lang.Runnable

    public class NavigationSamgarCompetency
    extends SamgarCompetency
    • Field Summary

      • Fields inherited from class cmion.level2.Competency

        available, competencyName, competencyType, plan, running
      • Fields inherited from class cmion.architecture.CmionComponent

        architecture
    • Constructor Summary

      Constructors 
      Constructor Description
      NavigationSamgarCompetency​(cmion.architecture.IArchitecture architecture, java.lang.String configFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean competencyCode​(java.util.HashMap<java.lang.String,​java.lang.String> parameters)  
      void importConfig​(org.w3c.dom.Document doc)  
      void onRead​(yarp.Bottle b)
      every samgar competency has to implement this function in which it will receive bottles that the connected samgar module sends
      protected java.io.InputStream openConfigFile​(java.lang.String configFile)
      This method is responsible for opening the configuration file correctly.
      boolean runsInBackground()  
      • Methods inherited from class cmion.level2.Competency

        cancel, getCompetencyName, getCompetencyType, isAvailable, isRunning, registerHandlers, requestStartCompetency, run
      • Methods inherited from class cmion.architecture.CmionComponent

        getArchitecture, isConnected, onDestroy, raise
      • Methods inherited from class ion.Meta.Element

        destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
      • Methods inherited from class java.lang.Object

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

      • NavigationSamgarCompetency

        public NavigationSamgarCompetency​(cmion.architecture.IArchitecture architecture,
                                          java.lang.String configFile)
    • Method Detail

      • onRead

        public void onRead​(yarp.Bottle b)
        Description copied from class: SamgarCompetency
        every samgar competency has to implement this function in which it will receive bottles that the connected samgar module sends
        Specified by:
        onRead in class SamgarCompetency
      • competencyCode

        protected boolean competencyCode​(java.util.HashMap<java.lang.String,​java.lang.String> parameters)
        Specified by:
        competencyCode in class cmion.level2.Competency
      • runsInBackground

        public boolean runsInBackground()
        Specified by:
        runsInBackground in class cmion.level2.Competency
      • openConfigFile

        protected java.io.InputStream openConfigFile​(java.lang.String configFile)
        This method is responsible for opening the configuration file correctly. It should be different depending on the platform and the way it provides access to resources.
        Returns:
        InputStream for the configuration file of the migration competency.
      • importConfig

        public void importConfig​(org.w3c.dom.Document doc)