Class SimpleMessagingCleanerAgent


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

      • SimpleMessagingCleanerAgent

        public SimpleMessagingCleanerAgent()
    • Method Detail

      • cleanerAdded

        public void cleanerAdded​(ICleaner 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.