Class SimpleMessagingCleanerAgent


  • public class SimpleMessagingCleanerAgent
    extends java.lang.Object
    Simple example of using the environment sensor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanerAdded​(jadex.quickstart.cleanerworld.environment.impl.Cleaner other, IInternalAccess agent)
      An example plan to be executed whenever a new cleaner is seen.
      • Methods inherited from class java.lang.Object

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

      • SimpleMessagingCleanerAgent

        public SimpleMessagingCleanerAgent()
    • Method Detail

      • cleanerAdded

        public void cleanerAdded​(jadex.quickstart.cleanerworld.environment.impl.Cleaner other,
                                 IInternalAccess agent)
        An example plan to be executed whenever a new cleaner is seen. Sends a message with all knows wastes to the other cleaner.
        Parameters:
        other - The other cleaner (info object provided by sensor).
        agent - Internal API object of this agent used to send a message.